/* ==== liq-plus.css ==== */
/* Math LiQ plus: Shukla, Family Honorary Collection, rank crest */
:root{ --chalk:#1F3D2C; --chalk2:#264A36; --chalk-ink:#F6F1E3; --chalk-gold:#E8C25A; }
.chalkcard{ background:var(--chalk); background-image:radial-gradient(circle at 20% 15%,rgba(255,255,255,.06),transparent 45%),radial-gradient(circle at 85% 80%,rgba(255,255,255,.05),transparent 40%); color:var(--chalk-ink); border:6px solid #8A6A3F; border-radius:20px; padding:16px; box-shadow:inset 0 0 30px rgba(0,0,0,.35); }
.chalkh{ color:var(--chalk-ink); font-family:var(--display); margin:0; }
.chalksub{ color:#E9E4D4; margin:.2em 0 1em; font-weight:700; }
.chalkk{ font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--chalk-gold); }

/* Shukla */
.shkbox{ display:flex; align-items:center; gap:10px; background:var(--chalk); border-radius:18px; padding:8px 12px; color:var(--chalk-ink); }
.shkbox .shk{ flex:none; }
.shkbub{ background:rgba(255,255,255,.08); border:2px dashed rgba(246,241,227,.45); border-radius:14px; padding:8px 12px; font-weight:700; line-height:1.4; }
.shkbub b{ color:var(--chalk-gold); }
.shkline{ display:flex; align-items:center; gap:8px; background:var(--chalk); color:var(--chalk-ink); border-radius:14px; padding:4px 10px 4px 4px; margin-bottom:8px; font-weight:800; }
.shkline .shk{ flex:none; }
.shkwel{ position:relative; grid-column:1/-1; }
.shkx{ position:absolute; top:6px; right:8px; border:0; background:none; color:var(--chalk-ink); font-size:16px; opacity:.7; }
.shkgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:8px; }
.shkgrid figure{ margin:0; text-align:center; } .shkgrid figcaption{ font-size:12px; font-weight:800; color:#E9E4D4; }

/* Honorary home card */
.honorhome{ grid-column:1/-1; }
.hhrow{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.hhtext{ flex:1 1 220px; min-width:0; }
.hhtext p{ margin:.3em 0 .7em; font-weight:700; font-size:17px; line-height:1.45; }
.btn.honbtn{ background:linear-gradient(#F3D27A,#D9A41E); color:#3A2A00; box-shadow:0 3px 0 rgba(0,0,0,.25); }
.envl{ flex:none; }

/* Reveal modal */
#honorM{ position:fixed; inset:0; z-index:300; background:rgba(10,24,16,.72); display:flex; align-items:flex-start; justify-content:center; overflow:auto; padding:24px 16px; }
#honorM[hidden]{ display:none; }
.honwrap{ position:relative; width:min(560px,100%); }
.honenv{ position:absolute; left:50%; top:30px; transform:translateX(-50%); z-index:2; animation:envOut .9s ease forwards; }
@keyframes envOut{ 0%{ transform:translateX(-50%) scale(1); opacity:1 } 55%{ transform:translateX(-50%) translateY(-10px) scale(1.06); opacity:1 } 100%{ transform:translateX(-50%) translateY(-40px) scale(.7); opacity:0 } }
.honcard{ background:#FBF4E0; color:#2B2414; border:5px solid #D9B45A; border-radius:22px; padding:22px 20px; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.35); position:relative; overflow:hidden; }
.honwrap.fresh .honcard{ animation:cardIn .6s .6s ease both; }
@keyframes cardIn{ from{ opacity:0; transform:translateY(16px) scale(.96) } to{ opacity:1; transform:none } }
.honcard .emblem{ display:block; margin:0 auto 4px; background:var(--chalk); border-radius:50%; padding:6px; }
.honcard .chalkk{ color:#9A7418; }
.honcard h2{ font-size:28px; margin:.15em 0; color:#1F3D2C; }
.honfrom{ font-weight:800; color:#7A5A12; margin-bottom:10px; }
.honmsg{ text-align:left; font-size:17px; line-height:1.6; background:#fff; border-radius:14px; padding:14px 16px; border:2px solid #EADBB0; }
.honwhy{ margin-top:8px; color:#6B5A33; font-weight:700; }
.honcard .honbtn{ margin-top:12px; }
.honsp i{ position:absolute; width:6px; height:6px; border-radius:50%; background:#E8C25A; opacity:0; animation:spark 1.6s ease-out .9s; }
.honsp i:nth-child(1){ left:10%; top:20% } .honsp i:nth-child(2){ left:85%; top:15% } .honsp i:nth-child(3){ left:20%; top:60% } .honsp i:nth-child(4){ left:75%; top:55% } .honsp i:nth-child(5){ left:50%; top:8% }
.honsp i:nth-child(6){ left:35%; top:30% } .honsp i:nth-child(7){ left:65%; top:35% } .honsp i:nth-child(8){ left:8%; top:85% } .honsp i:nth-child(9){ left:92%; top:80% } .honsp i:nth-child(10){ left:50%; top:92% }
@keyframes spark{ 0%{ opacity:0; transform:scale(.3) } 30%{ opacity:1; transform:scale(1.4) } 100%{ opacity:0; transform:scale(.6) translateY(-14px) } }
@media (prefers-reduced-motion: reduce){ .honenv,.honwrap.fresh .honcard,.honsp i{ animation:none !important } .honenv{ display:none } }

/* Archive */
.pgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-bottom:14px; }
.pcell{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; border:2px dashed rgba(246,241,227,.35); border-radius:16px; padding:12px 8px; background:rgba(255,255,255,.04); color:var(--chalk-ink); font:inherit; }
.pcell span{ font-weight:700; opacity:.85; }
.pcell.ready{ border-style:solid; border-color:var(--chalk-gold); cursor:pointer; }
.pcell.ready span{ color:var(--chalk-gold); opacity:1; font-weight:800; }
.pcell.on{ border-style:solid; border-color:rgba(232,194,90,.7); cursor:pointer; }
.pcell b{ font-family:var(--display); font-size:17px; line-height:1.2; color:var(--chalk-gold); }
.shkbox.dark{ background:rgba(0,0,0,.18); }
.pridelink{ grid-column:1/-1; }

/* Rank crest: photo inside the rank badge */
.rankcard.withcrest{ flex-direction:column; text-align:center; }
.rankcard.withcrest .rk-info{ width:100%; text-align:left; }
.crest{ position:relative; width:min(260px,78vw); aspect-ratio:1; margin:0 auto; flex:none; }
.crest-svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.crest-photo{ position:absolute; left:50%; top:47.7%; width:56%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; overflow:hidden; background:radial-gradient(circle,#5CC06A,#2E8B3E); display:flex; align-items:center; justify-content:center; }
.crest-photo img{ width:100%; height:100%; object-fit:cover; }
.crest-ph{ font-size:56px; }
.crest-med{ position:absolute; left:50%; top:80%; width:18%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:26px; }
.crest-med .rkimg{ width:100%; height:100%; object-fit:cover; }

/* Dashboard Family Pride panel: very light green, matches the other dashboard panels */
.fampanel{ padding:14px 16px; }
.fampanel .shk{ color:#2B5A3C; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .fampanel .shk{ color:#CFE8D4; } }
:root[data-theme="dark"] .fampanel .shk{ color:#CFE8D4; }
.dash .p.fampanel{ background:var(--good-soft); border:2px solid color-mix(in srgb,var(--good) 35%,var(--line)); color:var(--ink); }
.dash .p.fampanel .chalkk{ color:var(--good); }
.dash .p.fampanel.plain{ background:var(--card); border-color:var(--line); }
.dash .p.fampanel.ready{ border-color:var(--sun); box-shadow:0 0 0 3px color-mix(in srgb,var(--sun) 35%,transparent); }
.famrow{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:4px; position:relative; }
.famtext{ flex:1 1 180px; min-width:0; }
.famtext h3{ color:var(--ink); font-size:20px; line-height:1.2; margin:0 0 4px; font-family:var(--display); }
.famtext p{ margin:0 0 8px; font-weight:700; line-height:1.4; color:var(--muted); }
.famlink{ border:0; background:none; color:var(--blue); font:inherit; font-weight:800; padding:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.fampanel .envl{ order:3; margin-left:auto; }
@media (max-width:520px){ .fampanel .envl{ position:absolute; right:0; bottom:0; width:70px; height:auto; } }

.shkbox.light{ background:var(--good-soft); border:2px solid color-mix(in srgb,var(--good) 35%,var(--line)); color:var(--ink); }
.shkbox.light .shk{ color:#2B5A3C; }
.shkbox.light .shkbub{ background:transparent; border:2px dashed color-mix(in srgb,var(--good) 45%,var(--line)); }
.shkbox.light .shkbub b{ color:var(--good); }
.shkwel .shkx{ color:var(--muted); }
:root[data-theme="dark"] .shkbox.light .shk{ color:#CFE8D4; }


/* ===== Message Board: cork board with a light frame, pinned notes ===== */
.dash .p.mboard{ cursor:default; background-color:#C79F68; border:8px solid #E3E6E9; border-radius:20px; padding:14px 12px 14px; position:relative; overflow:hidden;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='9'/><feColorMatrix values='0 0 0 0 .38  0 0 0 0 .24  0 0 0 0 .1  0 0 0 .8 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),inset 0 3px 8px rgba(70,40,10,.35),var(--shadow); }
.mpin{ position:absolute; top:-7px; left:50%; width:16px; height:16px; margin-left:-8px; border-radius:50%; z-index:2; background:radial-gradient(circle at 35% 30%,#fff 0 12%,var(--pin,#E5533D) 13% 62%,color-mix(in srgb,var(--pin,#E5533D) 60%,#000) 100%); box-shadow:0 3px 3px rgba(0,0,0,.4); }
.mnote{ position:relative; display:block; width:100%; text-align:left; font:inherit; border:0; cursor:default; background:#FFFEF8; color:#26304F; border-radius:3px; padding:16px 13px 11px; box-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 12px -5px rgba(0,0,0,.35); margin-bottom:12px; }
button.mnote{ cursor:pointer; }
.mnote.sticky{ background-color:#FFF3A8; background-image:repeating-linear-gradient(transparent 0 21px,rgba(70,110,190,.2) 21px 22px); }
.mnote.blue{ background:#E3EEFF; } .mnote.pink{ background:#FFE3E8; } .mnote.mint{ background:#DDF4E8; } .mnote.cream{ background:#FFF7E3; } .mnote.env{ background:#F6ECD2; }
.mnote h3{ margin:0 0 3px; font-family:var(--display); font-size:19px; line-height:1.2; color:#1F2747; }
.mnote p{ margin:0 0 5px; font-weight:700; font-size:14.5px; line-height:1.4; color:#46507A; }
.mnote .mk{ font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#8A6A2B; margin-bottom:2px; }
.mnote .mbig{ font-family:var(--display); font-weight:700; font-size:19px; line-height:1.3; color:#1F2747; margin:2px 0 4px; overflow-wrap:anywhere; }
.mnote .mrow{ display:flex; gap:10px; align-items:center; }
.mnote .mtx{ flex:1; min-width:0; }
.mnote .shk{ flex:none; color:#2B5A3C; }
.mnote .famlink{ color:#1F57C8; font-size:14.5px; }
.mnote.main{ transform:rotate(-.8deg); } .mnote.s1{ transform:rotate(1.3deg); } .mnote.s2{ transform:rotate(-1.4deg); }
.mnotes2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; } .mnotes2.one{ grid-template-columns:1fr; }
.mnotes2 .mnote{ margin-bottom:0; padding:15px 10px 9px; } .mnotes2 .mnote h3{ font-size:15.5px; } .mnotes2 .mnote p{ font-size:12.5px; margin:0; overflow-wrap:anywhere; }
.mnote .menv{ display:flex; justify-content:center; margin:6px 0 4px; } .mnote .menv .envl{ position:static !important; width:104px !important; height:auto !important; transform:rotate(-3deg); filter:drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.mnote .btn.honbtn{ display:block; margin:4px auto 0; }
@media (max-width:900px){ .dash .p.mboard{ grid-column:1/-1; } }

/* Rank crest */
.crest-med{ background-size:158%; background-position:50% 29%; background-repeat:no-repeat; border-radius:50%; width:17% !important; }
.crest-med span{ font-size:24px; }

/* Keep the subject button clear of the "Powered by Netlify" badge in the bottom-right corner */
.mlfoot .wrap.frow{ padding-right:max(176px, env(safe-area-inset-right,0px)); }
@media (max-width:560px){ .mlfoot .wrap.frow{ padding-right:150px; } .mlfoot .fsin{ display:none; } }

/* ==== liq-bilcho.css ==== */
/* ===== Math LiQ · Bilcho, reports, banners ===== */
/* Bilcho feedback card: light green, consistent artwork size */
.bilbox{display:flex;gap:14px;align-items:center;background:#DDF3E4;border:2px solid #B5DEC3;border-radius:22px;padding:10px 16px 10px 10px;color:#17391F;margin:0 0 10px;text-align:left}
.bilbox .bil{flex:none;height:104px!important;width:auto;object-fit:contain}
.bilbox.done .bil{height:128px!important}
.bilt{min-width:0}
.bilk{font:800 12px/1.2 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#17803F;margin-bottom:2px}
.bilh{margin:0;font-weight:800;font-size:18px;line-height:1.35;color:#17391F}
.bils,.bilp{display:block;font-weight:700;font-size:16px;line-height:1.45;color:#2F5A3A;margin-top:4px}
.bilp b,.bils b{color:#17803F}
.bilacts{margin-top:10px}
.bilbtn{background:#17803F;color:#fff;border:0;border-radius:14px;padding:10px 16px;font-weight:800;font-size:16px;line-height:1.2;font-family:inherit;cursor:pointer}
.bilchip{display:inline-block;background:#fff;border:2px solid #B5DEC3;border-radius:12px;padding:7px 12px;font-weight:800;color:#17803F}
.bilgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.bilgrid figure{margin:0;text-align:center}.bilgrid figcaption{font-size:12px;font-weight:800;color:#17391F}
.mnote .bil{flex:none}
@media(min-width:700px){.bilbox .bil{height:124px!important}.bilbox.done .bil{height:150px!important}.bilh{font-size:20px}}
.fb .bilbox{margin:0 0 8px}

/* report building blocks */
.lrw{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;color:#14224F;min-width:0;max-width:100%}.lrw>*{min-width:0}
.lrcard{background:#fff;border:2px solid #E3EAFB;border-radius:22px;padding:16px 18px;box-shadow:0 3px 12px rgba(30,60,140,.06);color:#14224F}
.lrhd{display:grid;grid-template-columns:48px 1fr;gap:4px 12px;align-items:center}
.lrico{width:48px;height:48px;border-radius:14px;background:#E4EBFC;display:grid;place-items:center;font-size:24px}
.lrh1{margin:0;font-size:24px;font-weight:800;line-height:1.1;color:#14224F}
.lrsub{color:#5A6A99;font-weight:700;font-size:15px;margin-top:3px}
.lrp{grid-column:1/-1;margin:8px 0 0;color:#5A6A99;font-weight:700;font-size:16px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.lrtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lrtile{padding:14px}.lrtile b{display:block;font-size:32px;font-weight:800;line-height:1.2;margin-top:6px}.lrtile span{font-weight:700;color:#5A6A99;font-size:15px;line-height:1.25}
.lrh2{margin:0 0 6px;font-size:21px;font-weight:800;color:#14224F}.lrh2 small{font-weight:700;font-size:14px;color:#4A5A85}
.lrrow{display:grid;grid-template-columns:44px 1fr 18px;gap:12px;align-items:center;padding:12px 0;font-weight:800;font-size:17px;line-height:1.25;width:100%;background:none;border:0;border-top:1px solid #E6EBF7;text-align:left;color:#14224F;font-family:inherit;cursor:pointer}
.lrh2+.lrrow{border-top:0}
.lrrow small{display:block;font-weight:700;color:#5A6A99;font-size:14.5px;margin-top:2px}
.lrri{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:22px}.lrgo{font-size:20px;color:#14224F}
.lrbil{background:#E3F2E7;border-color:#B5DEC3;position:relative;overflow:hidden;min-height:200px;padding-right:130px}
.lrbil h3{margin:0 0 6px;color:#17803F;font-size:21px}.lrbil p{margin:0 0 12px;font-weight:700;font-size:17px;line-height:1.45;color:#17391F}
.lrbil .bil{position:absolute;right:6px;bottom:0;height:180px!important;width:auto}
.lrlink{display:block;width:100%;text-align:center;background:#fff;border:2px solid #B9CDF5;color:#1F57C8;font-weight:800;font-size:17px;line-height:1.2;font-family:inherit;padding:14px;border-radius:16px;cursor:pointer}
.lrback{justify-self:start;background:none;border:0;color:#1F57C8;font-weight:800;font-size:16px;line-height:1.2;font-family:inherit;cursor:pointer;padding:4px 0}
.lrhero{position:relative;overflow:hidden;border-radius:26px;border:2px solid #E3EAFB;background:linear-gradient(180deg,#EAF4FF,#F6FBF3);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px 20px 12px 12px;color:#14224F}
.lrhero::after{content:'';position:absolute;right:0;bottom:0;width:46%;height:70%;background:radial-gradient(ellipse at 70% 120%,#CFE8C9 0 40%,transparent 41%),radial-gradient(ellipse at 100% 120%,#BBD9F2 0 45%,transparent 46%);opacity:.8}
.lrhero>*{position:relative;z-index:1}.lrhero .bil{height:136px!important;width:auto}
.lreb{font:800 12px/1 system-ui;letter-spacing:.2em;color:#17803F;text-transform:uppercase}
.lrhero h1{margin:6px 0 4px;font-size:clamp(26px,calc(5.4 * var(--uxvw,1vw)),46px);line-height:1.05;font-weight:800;color:#14224F}
.lrhero p{margin:0;font-weight:700;color:#4A5A85;font-size:17px}.lrbar{width:58px;height:6px;border-radius:4px;background:#F7B500;margin-top:10px}
.hl{color:#D98200;background:linear-gradient(transparent 58%,#FFE59A 58%);padding:0 .1em;border-radius:8px}
.lrrange{background:#fff;border:2px solid #E3EAFB;border-radius:16px;padding:8px 14px;font-weight:800;font-size:14px;line-height:1.3;white-space:nowrap}.lrrange span{display:block;font-weight:700;color:#4A5A85}
.lrkpis{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(min-width:1400px){.lrkpis{grid-template-columns:repeat(4,1fr)}}
.lrkpi{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:center}
.lrkic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:22px;color:#fff;font-weight:800}
.lrkpi b{font-size:15.5px}.lrpct{font-size:34px;font-weight:800;line-height:1}.lrcnt{color:#4A5A85;font-weight:700;font-size:14.5px}
.lrmeter{grid-column:1/-1;height:12px;border-radius:8px;background:#E8ECF5;overflow:hidden;margin-top:6px}.lrmeter i{display:block;height:100%;border-radius:8px}
.lrmid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;align-items:start}
.lrmid>.lrins{grid-column:1/-1;min-height:220px}
.lrtop{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.lrtrow{display:grid;grid-template-columns:28px 1fr 80px 44px 12px;gap:10px;align-items:center;padding:7px 8px;border-radius:12px;font-weight:700;font-size:15.5px;width:100%;background:none;border:0;text-align:left;color:#14224F;font-family:inherit;cursor:pointer}
.lrtrow.y{background:#FFF6DA}.lrtrow.r{background:#FFE8E5}.lrtrow b{text-align:right}
.lrn{width:26px;height:26px;border-radius:50%;color:#fff;font:800 13px system-ui;display:grid;place-items:center}
.lrm{height:10px;border-radius:6px;background:#E8ECF5;overflow:hidden}.lrm i{display:block;height:100%;border-radius:6px}
.lrkinds{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.lrkd{border-radius:16px;padding:10px 12px;font-weight:800;font-size:14.5px}.lrkd b{display:block;font-size:28px;line-height:1.1}.lrkd small{display:block;font-weight:700;font-size:12.5px;color:#4A5A85}
.k1{background:#FFE3E1}.k2{background:#FFF1CC}.k3{background:#EDE6FF}.k4{background:#E9EDF6}
.lrins{background:linear-gradient(180deg,#E6F6E8,#DDF1E2);border-color:#B5DEC3;position:relative;overflow:hidden;min-height:300px}
.lrbub{background:#fff;border:2px solid #7CC594;border-radius:20px;padding:12px 14px;font-weight:700;font-size:16px;line-height:1.45;margin:10px 150px 0 0;color:#17391F;max-width:640px}
.lrins .bil{position:absolute;right:-6px;bottom:-4px;height:190px!important;width:auto}
.lrbot{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}
.lrstr{background:#EDF8EF;border-color:#CBE7D2}.lrneed{background:#FFEFEC;border-color:#F4CFC8}
.lrli{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.75);border-radius:12px;padding:9px 12px;margin-top:8px;font-weight:700;font-size:15.5px;color:#14224F}
.lrdot{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:13px;font-weight:800;color:#fff}
.lrnx{display:flex;gap:10px;align-items:center;border:0;border-bottom:1px solid #E6ECF7;padding:9px 0;font-weight:700;font-size:15.5px;width:100%;background:none;text-align:left;color:#14224F;font-family:inherit;cursor:pointer}
.lrnx:last-child{border-bottom:0}.lrnx>span:nth-child(2){flex:1}
.lrnum{width:28px;height:28px;border-radius:50%;background:#E4EEFF;color:#2A47B0;font:800 14px system-ui;display:grid;place-items:center;flex:none}
#lrDetail{display:grid;gap:8px}
/* weekly skills */
.skmid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;align-items:start}
.sk{border-top:1px solid #E6ECF7;padding:12px 4px}.lrh2+.sk{border-top:0}
.skh{display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:800;font-size:16.5px}
.sk p{margin:6px 0 0;font-weight:600;font-size:15px;line-height:1.45;color:#33406A}
.sktr{font:800 13px system-ui;color:#4A5A85;margin-top:4px}
.skpill{display:inline-block;font:800 13px system-ui;padding:5px 11px;border-radius:999px;white-space:nowrap}
.pc{background:#DDF3E4;color:#17803F}.pd{background:#FFF1CC;color:#9A6A00}.pn{background:#FFE3E1;color:#B5352A}.pi{background:#E9EDF6;color:#4A5A85}
.skpick{font-weight:700;font-size:14px;font-family:inherit;padding:6px 10px;border-radius:10px;border:2px solid #E3EAFB;background:#fff;color:#14224F}
@media(max-width:1000px){.lrhero{grid-template-columns:auto 1fr}.lrrange{grid-column:1/-1;justify-self:start}.lrhero .bil{height:96px!important}}
@media(max-width:520px){.lrkpis{grid-template-columns:1fr 1fr}.lrkpi{grid-template-columns:1fr}.lrkic{display:none}.lrtrow{grid-template-columns:26px 1fr 50px 40px 10px;font-size:14.5px}.lrins .bil{height:150px!important}.lrbub{margin-right:80px}.lrpct{font-size:28px}.lrkic{width:44px;height:44px}.lrbil{padding-right:110px}.lrbil .bil{height:150px!important}.lrtile b{font-size:26px}.lrkpi{gap:4px 10px}}
@media(min-width:900px){.lrs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lrs>.lrhd,.lrs>.lrtiles,.lrs>.lrbil,.lrs>.lrlink,.lrs>p{grid-column:1/-1}}

/* chapter review */
.rv .rvprog{background:#F4F8FF;border:2px solid #E3EAFB;border-radius:16px;padding:10px 12px;color:#14224F}
.rvsteps{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.rvsteps span{font:800 13px system-ui;padding:6px 10px;border-radius:999px;background:#E9EDF6;color:#4A5A85}
.rvsteps span.ok{background:#DDF3E4;color:#17803F}.rvsteps span.now{background:#2F6BDE;color:#fff}
.rv .qtext{font-weight:700;font-size:18px;line-height:1.5;margin-bottom:8px}
.rvbtn{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;background:#DDF3E4;border:2px solid #B5DEC3;border-radius:18px;padding:8px 14px 8px 8px;text-align:left;color:#17391F;font-family:inherit;cursor:pointer}
.rvbtn .bil{height:62px!important;width:auto}.rvbtn span{flex:1}.rvbtn b{display:block;font-size:17px}.rvbtn small{display:block;font-weight:700;color:#2F5A3A}.rvbtn em{font-style:normal;font-weight:800;color:#17803F}
.rvbtn.wait{opacity:.7;cursor:default}

/* page title banners */
.phero{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(180deg,#fff,#F7FAFF);border:2px solid #E3EAFB;box-shadow:0 6px 18px rgba(30,60,140,.08);display:grid;grid-template-columns:1fr auto;align-items:center;min-height:128px;padding:16px 8px 16px 20px;margin:0 0 12px;color:#0F1F5C}
.phero::after{content:'';position:absolute;right:-40px;top:-20px;bottom:-20px;width:46%;background:var(--tint,#E4EEFF);border-radius:60% 0 0 60%/100% 0 0 100%;opacity:.9;z-index:0}
.pht{position:relative;z-index:1;min-width:0}
.pheb{position:relative;display:inline-block;margin-left:22px;font:800 13px/1 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--acc)}
.pheb::before,.pheb::after{content:'';position:absolute;top:-7px;width:16px;height:4px;border-radius:3px;background:#F7B500}.pheb::before{left:-22px;transform:rotate(-35deg)}.pheb::after{right:-22px;transform:rotate(35deg)}
.phero h1{margin:6px 0 4px;font-size:clamp(26px,calc(7 * var(--uxvw,1vw)),46px);line-height:1.02;font-weight:800;letter-spacing:-.01em;color:#0F1F5C}
.phero p{margin:0;font:600 15px/1.35 'Nunito',system-ui,sans-serif;color:#4A5A85;max-width:30ch}
.phbar{width:58px;height:6px;border-radius:4px;background:#F7B500;margin-top:10px}
.phart{position:relative;z-index:1;width:min(36vw,210px);height:112px;display:flex;align-items:center;justify-content:center}.phart svg{width:100%;height:100%}
@media(min-width:700px){.phero{min-height:160px;padding:20px 16px 20px 34px}.phart{width:280px;height:140px}.phero p{font-size:18px;max-width:none}}

/* cash out */
.cashp{margin-top:12px}
.cashrow{display:flex;gap:10px;flex-wrap:wrap}
.cashb{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:88px;padding:10px 12px;border-radius:16px;border:2px solid #2E8B3E;background:#E8F5EC;color:#14531F;font-family:inherit;cursor:pointer}
.cashb b{font-size:22px}.cashb span{font-weight:800;font-size:14px}.cashb em{font-style:normal;font-size:12px;font-weight:700;color:#5A6A99}
.cashb.lock{border-color:#D5DCEB;background:#F3F5FA;color:#7A86A6;cursor:default}

/* Hall of Fame: rank number in Ge'ez inside the crest circle (faded emblem behind) + centered text */
.crest-med.cm-num{background:var(--rkd,#1B3F94)!important;box-shadow:0 0 0 2px #E7B53B;overflow:hidden}
.crest-med.cm-num i{position:absolute;inset:0;background-size:158%;background-position:50% 29%;background-repeat:no-repeat;opacity:.35}
.crest-gz{position:relative;z-index:1;font-family:'Noto Sans Ethiopic','Abyssinica SIL','Nyala',serif;font-weight:700;font-size:clamp(20px,calc(6.4 * var(--uxvw,1vw)),30px);line-height:1;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.rankcard.withcrest{align-items:center;text-align:center}
.rankcard.withcrest .rk-info{width:100%;max-width:560px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center}
.rankcard.withcrest .rk-info .pbar{width:100%}

/* ===== dashboard order, Join Today's Class, banner, savanna strip ===== */
.dash .chp{display:flex;flex-direction:column}
.dash .chp .icons{flex:1;display:grid;grid-template-columns:repeat(3,1fr);align-items:stretch;gap:10px;margin-top:8px}
.dash .chp .ic{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:12px 8px}
.dash .chp .ic>span{font-size:40px}.dash .chp .ic em{font-size:15px;line-height:1.35}
.dash .botrow{grid-column:1/-1;display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:14px}
.dash .botrow>*{margin:0;grid-column:auto!important}
@media(max-width:900px){.dash .botrow{grid-template-columns:1fr 1fr}.dash .botrow .unitp{grid-column:1/-1!important}}
@media(max-width:560px){.dash .botrow{grid-template-columns:1fr}}
.classtab{display:flex;flex-direction:column;gap:8px}
.ctrow{display:flex;gap:10px;align-items:center}.cti{width:44px;height:44px;border-radius:12px;background:#EEF3FF;display:grid;place-items:center;flex:none}
.ctt b{display:block;font-size:16px}
.joinbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#1A73E8;color:#fff;border:0;border-radius:16px;padding:12px 18px;font-weight:800;font-size:17px;font-family:inherit;white-space:nowrap;box-shadow:0 3px 0 #0F4FB0;cursor:pointer;text-decoration:none}
.joinbtn.sm{font-size:16px;padding:10px 14px;border-radius:14px;width:100%}
.classtab.off .joinbtn{background:#C9D1E3;box-shadow:none;cursor:default}
.mhelp{position:fixed;inset:0;background:rgba(15,25,60,.45);display:grid;place-items:center;padding:16px;z-index:9999}
.mhelp .box{background:#fff;border-radius:22px;padding:18px;max-width:440px;width:100%;color:#14224F;max-height:92vh;overflow:auto}
.mhelp h3{margin:6px 0 4px}.mhelp .mtop{font-weight:700;margin:0}
.mhelp ol{padding-left:20px;font-weight:700;line-height:1.6;margin:8px 0}
.codebig{font:800 26px/1.2 ui-monospace,monospace;letter-spacing:.06em;background:#EEF3FF;border:2px dashed #7FA6FF;border-radius:14px;padding:8px;text-align:center;margin:6px 0}
#hud #bigBanner:not(.lab){position:relative;overflow:hidden;border-radius:18px;padding:0 !important;margin-bottom:6px;background:#FBF6EA}
#hud #bigBanner:not(.lab)::before{content:'';position:absolute;inset:-20px;background:url(../banner-home-53.webp) center/cover;filter:blur(18px) saturate(.9);opacity:.55;pointer-events:none}
#hud #bigBanner:not(.lab) .banner{position:relative;width:88%;margin:0 auto;height:auto;aspect-ratio:2048/367;object-fit:cover;object-position:50% 46%;border-radius:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
#hud #bigBanner:not(.lab) .corner{z-index:1}
.appsav{display:block;width:100%;height:34px;object-fit:cover;object-position:center 70%;border-radius:12px;margin:14px 0 2px;opacity:.95;box-shadow:0 2px 8px rgba(80,60,20,.12)}
@media(max-width:600px){.appsav{height:26px;border-radius:10px}}
body[data-view="session"] .appsav{display:none}

/* ===== Explorer Journal inner pages ===== */
body:not([data-view="home"]):not([data-labhome="1"]) #hud #bigBanner{display:none!important}
body:not([data-view="home"]):not([data-view="session"]):not([data-view="lesson"]) main.wrap{padding-top:4px!important}
body:not([data-view="home"]) #view:has(> .pg){max-width:none!important}
.pg{position:relative;margin:0 0 10px}
.pg>section.card,.pg>section.bankdash{background:transparent;border:0;box-shadow:none;padding:4px 0 0}
.pg .phero{box-shadow:none;margin-bottom:14px}
.pg.journal{background:radial-gradient(ellipse at top left,#FBF1D6,#F4E2B8 70%,#EBD29C);border-radius:6px 26px 8px 22px;padding:22px;box-shadow:0 10px 24px rgba(90,60,10,.22),inset 0 0 40px rgba(150,100,30,.18);border:1px solid #D9B977;color:#14224F}
.pg.journal::before{content:'';position:absolute;inset:8px;border:2px dashed rgba(140,95,30,.35);border-radius:4px 20px 6px 18px;pointer-events:none}
.pg.journal .phero{background:rgba(255,253,245,.8)}
.pg .stk{position:absolute;z-index:2;right:10px;top:-12px;transform:rotate(14deg);font-size:42px;filter:drop-shadow(0 3px 3px rgba(0,0,0,.18));pointer-events:none}
.pg.journal .jc{display:block;margin:10px 0 0 auto;width:56px;height:56px;opacity:.5}
.homebar{display:flex;align-items:center;gap:14px;width:100%;border:0;border-radius:20px;padding:14px 18px;background:linear-gradient(90deg,#1B3A8A,#2152B8 60%,#17897A);color:#fff;font-family:inherit;cursor:pointer;text-align:left;margin:4px 0 6px;box-shadow:0 4px 0 rgba(18,50,112,.25)}
.homebar .hi{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:26px;flex:none}
.homebar b{display:block;font-size:20px;color:#FFD86B}.homebar small{display:block;font-weight:700;font-size:13.5px;color:#DCE6FF;letter-spacing:.04em}
.homebar.labbar{background:linear-gradient(90deg,#14532D,#17803F 60%,#17897A)}.homebar.labbar b{color:#FFE27A}
.labp .lpgo{display:none!important}
/* Lab inner pages: every list in the Game Zone tile style */
.pg .labsets{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.pg .labset{position:relative;display:flex;gap:12px;align-items:center;border-radius:18px;padding:30px 14px 14px;background:linear-gradient(160deg,#E2F4F1,#fff);min-height:96px;text-align:left}
.pg .labset .lsi{font-size:40px}.pg .labset .lsb{flex:1;min-width:0}.pg .labset .lsb b{display:block;font-size:17px}.pg .labset .lsr{position:absolute;top:8px;right:10px}
/* Parent area tabs */
.phead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.phead h1{margin:0;font-size:26px}
.punit{display:inline-flex;background:#FFFDF5;border:2px solid #E3CF9E;border-radius:999px;padding:3px}
.punit button{border:0;background:none;border-radius:999px;padding:6px 12px;font-family:inherit;font-weight:800;font-size:14px;color:#5A4520;cursor:pointer}.punit button[aria-current=true]{background:#14224F;color:#fff}
.pgrp{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:rgba(255,253,245,.7);border:2px solid #E3CF9E;border-radius:18px;padding:6px;margin:6px 0 8px}
.pgrp button{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-radius:13px;padding:10px 6px;background:transparent;font-family:inherit;font-weight:800;font-size:15px;color:#5A4520;cursor:pointer;position:relative}
.pgrp button span{font-size:22px}.pgrp button[aria-current=true]{background:#fff;color:#14224F;box-shadow:0 2px 6px rgba(90,60,10,.15)}
.pgrp .dot{position:absolute;top:6px;right:10px;width:10px;height:10px;border-radius:50%;background:#E5533D}
.psub{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px;padding:0 2px}
.psub button{border:2px solid #E3CF9E;background:#FFFDF5;border-radius:999px;padding:7px 14px;font-family:inherit;font-weight:800;font-size:14px;color:#5A4520;cursor:pointer}
.psub button[aria-current=true]{background:#2F6BDE;border-color:#2F6BDE;color:#fff}
@media(max-width:600px){.pg.journal{padding:14px 10px}.pg .phero{padding:12px 6px 12px 14px;min-height:0}.pg .phero .phart{width:34vw;height:84px}.pg .pheb{font-size:11px;letter-spacing:.12em}.pg .phero h1{font-size:26px}.pg .phero p{font-size:14px}.pg .stk{font-size:30px}
 .pgrp button{font-size:12.5px;padding:8px 2px}.pgrp button span{font-size:20px}.psub button{font-size:13px;padding:6px 11px}.phead h1{font-size:22px}.homebar b{font-size:18px}}
main.wrap:has(> #view > .pg){padding-left:0!important;padding-right:0!important}

/* ===== banner watermark (Math LiQ logo as a soft shadow) ===== */
.phero{grid-template-columns:1fr auto auto!important;column-gap:0!important}
.phero .pht{z-index:2;position:relative}
.phero .phart{z-index:2!important;width:150px!important;height:90px!important;margin:0 -6px 0 0}
.phero .phwm{position:relative;z-index:2;width:250px;aspect-ratio:520/244;margin-right:10px;pointer-events:none;background:var(--wm,var(--acc,#3558D6));opacity:.26;-webkit-mask:url(../logo.png) center/contain no-repeat;mask:url(../logo.png) center/contain no-repeat}
@media(max-width:600px){.phero{grid-template-columns:1fr auto!important;padding:12px 8px 12px 14px!important}.phero .phart{grid-column:2;grid-row:1;width:92px!important;height:52px!important;align-self:start;margin:4px 0 0}.phero .phwm{grid-column:2;grid-row:1;align-self:end;width:88px;margin:0 0 6px}}
/* green Math Lab box */
.pg.labg{background:linear-gradient(180deg,#E6F6E8,#DDF1E2)!important;border:2px solid #B5DEC3!important;border-radius:24px!important;box-shadow:0 8px 22px rgba(23,128,63,.12)!important}
.pg.labg::before{border-color:rgba(23,128,63,.28)!important;border-radius:18px!important}
.pg.labg .jc{display:none}
.pg.labg .labhtabs{display:none!important}
.pg.labg>.labsav{display:none}
/* light red Parent / report box */
.pg.redg{background:linear-gradient(180deg,#FFF3F1,#FFE9E6)!important;border:2px solid #F4CFC8!important;border-radius:24px!important;box-shadow:0 8px 22px rgba(194,69,58,.12)!important}
.pg.redg::before{border-color:rgba(194,69,58,.25)!important;border-radius:18px!important}
.pg.redg .jc{display:none}
.pg.redg .phead{justify-content:flex-end}.pg.redg .phsub{display:none}
.pg.redg .pgrp{background:rgba(255,255,255,.6);border-color:#F4CFC8}.pg.redg .pgrp button{color:#7A2E26}.pg.redg .pgrp button[aria-current=true]{color:#14224F}
.pg.redg .psub button{border-color:#F4CFC8;color:#7A2E26}.pg.redg .psub button[aria-current=true]{background:#C2453A;border-color:#C2453A;color:#fff}
.pg.redg .punit{border-color:#F4CFC8}
/* green Lab bar with Activities / My Progress links */
.labbar2{display:flex;align-items:center;gap:14px;width:100%;border-radius:20px;padding:14px 18px;background:linear-gradient(90deg,#14532D,#17803F 60%,#17897A);color:#fff;margin:4px 0 6px;box-shadow:0 4px 0 rgba(20,83,45,.25)}
.labbar2 .hi{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:26px;flex:none}
.labbar2 .lbl small{display:block;font-weight:700;font-size:13.5px;color:#DCF5E3;letter-spacing:.04em}.labbar2 .lbl b{display:block;font-size:20px;color:#FFE27A}
.labbar2 nav{flex:1;display:flex;justify-content:center;gap:26px}
.labbar2 .lnk{background:none;border:0;color:#fff;font-family:inherit;font-weight:800;font-size:18px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;cursor:pointer;padding:4px}
.labbar2 .lnk[aria-current=true]{color:#FFE27A}
.labbar2 .lnk.home{font-size:15px;opacity:.9}
@media(max-width:600px){.labbar2{flex-wrap:wrap;gap:10px}.labbar2 nav{order:3;flex-basis:100%;gap:20px}.labbar2 .lnk.home{margin-left:auto}}
/* inside the Parent area the page banner is the only banner: report headers become one line */
.lrline{display:none}
.pg.redg .lrhero,.pg.redg .lrhd{display:none}
.pg.redg .lrline{display:block;font-weight:700;color:#5A3A35;background:rgba(255,255,255,.65);border:2px solid #F4CFC8;border-radius:14px;padding:10px 14px}
.pg.redg .lrs .lrhd{display:none}
/* the big Math LiQ / Marmar banners show on the Home dashboard only */
body:not([data-view="home"]) #hud #bigBanner{display:none!important}
.homebar.redbar{background:linear-gradient(90deg,#8E2A22,#C2453A 60%,#D9705F);box-shadow:0 4px 0 rgba(142,42,34,.25)}.homebar.redbar b{color:#FFE1A8}.homebar.redbar small{color:#FFE3DF}
/* light bottom bars: light blue (learning), light green (Math Lab), light red (Parent area) */
.homebar{background:linear-gradient(90deg,#DCE8FF,#E8F0FF)!important;border:2px solid #B9CDF5!important;color:#14224F!important;box-shadow:0 3px 0 rgba(53,88,214,.15)!important}
.homebar .hi{background:#fff!important}.homebar b{color:#1F3FA8!important}.homebar small{color:#4A5A85!important}
.homebar.labbar,.labbar2{background:linear-gradient(90deg,#D5F0DC,#E6F6E8)!important;border:2px solid #B5DEC3!important;color:#14532D!important;box-shadow:0 3px 0 rgba(23,128,63,.15)!important}
.homebar.labbar b,.labbar2 .lbl b{color:#17803F!important}.homebar.labbar small,.labbar2 .lbl small{color:#2F5A3A!important}.labbar2 .hi{background:#fff!important}
.labbar2 .lnk{color:#14532D!important}.labbar2 .lnk[aria-current=true]{color:#17803F!important;text-decoration-color:#F2A900}
.homebar.redbar{background:linear-gradient(90deg,#FFE3DF,#FFEFEC)!important;border:2px solid #F4CFC8!important;color:#7A2E26!important;box-shadow:0 3px 0 rgba(194,69,58,.15)!important}
.homebar.redbar b{color:#C2453A!important}.homebar.redbar small{color:#7A2E26!important}

/* special pinned message */
.mspecial{position:relative;display:block;width:100%;text-align:center;border-radius:6px;padding:26px 14px 14px;margin:2px 0 14px;color:#4A1F12;
 background:linear-gradient(180deg,#FFF6D6,#FFE7B8);box-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 14px -6px rgba(0,0,0,.4);transform:rotate(-.5deg)}
.mspecial .bunt{position:absolute;left:8px;right:8px;top:6px;height:18px;background:
 conic-gradient(from 135deg at 50% 0,#E5533D 0 90deg,transparent 0) 0 0/36px 18px repeat-x,
 conic-gradient(from 135deg at 50% 0,#F2C200 0 90deg,transparent 0) 12px 0/36px 18px repeat-x,
 conic-gradient(from 135deg at 50% 0,#1E9E5A 0 90deg,transparent 0) 24px 0/36px 18px repeat-x}
.mspecial .pin2{position:absolute;top:-8px;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 12%,#E5533D 13% 62%,#8E2A22 100%);box-shadow:0 3px 3px rgba(0,0,0,.4)}
.mspecial .em{font-size:44px;line-height:1;margin-top:4px}
.mspecial .k{font:800 11px system-ui;letter-spacing:.14em;text-transform:uppercase;color:#B5442F;margin-top:4px}
.mspecial h3{margin:4px 0 4px;font-family:var(--display);font-size:26px;line-height:1.15;color:#3A1A10}
.mspecial p{margin:0;font-weight:700;font-size:15px;line-height:1.45;color:#6A3A2A}
.mspecial .fr{margin-top:8px;font-weight:800;font-size:13px;color:#B5442F}
.mspecial .conf{position:absolute;font-size:18px;opacity:.85}
.spf{background:#fff;border:2px solid #F4CFC8;border-radius:18px;padding:14px;margin:0 0 12px}
.spf h3{margin:0 0 4px;color:#C2453A}.spf .row{gap:8px;flex-wrap:wrap}
.spf .th{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.spf .th button{border:2px solid #F4CFC8;background:#FFF7F5;border-radius:999px;padding:6px 12px;font:800 14px inherit;font-family:inherit;color:#7A2E26}.spf .th button[aria-current=true]{background:#C2453A;color:#fff;border-color:#C2453A}
.spf input,.spf textarea{width:100%;font:inherit;padding:10px;border-radius:12px;border:2px solid #F4CFC8;background:#FFFDFC}
.spf .live{margin-top:10px;background:#FFF1EE;border-radius:14px;padding:10px 12px;font-weight:700;color:#7A2E26}
.spprev{margin-top:10px;max-width:460px}
.pg.redg .spf{background:rgba(255,255,255,.75)}

/* ===== website 10: light yellow learning area, bolder bars, coloured groups, Safari tiles ===== */
body .pg.journal:not(.labg):not(.redg){background:linear-gradient(180deg,#FFFBE3,#FFF4C7)!important;border-color:#F0D98A!important;box-shadow:0 10px 24px rgba(160,120,10,.16)!important}
body .pg.journal:not(.labg):not(.redg)::before{border-color:rgba(190,150,30,.35)!important}
body .homebar{background:linear-gradient(90deg,#BFD3FF,#D6E3FF)!important;border:3px solid #6F95F0!important;box-shadow:0 4px 0 #6F95F0!important}
body .homebar b{color:#1B3A8A!important;font-size:21px!important} body .homebar small{color:#1F3FA8!important;font-weight:800!important}
body .homebar.labbar,body .labbar2{background:linear-gradient(90deg,#BCE7C9,#D3F0DB)!important;border:3px solid #4FB06E!important;box-shadow:0 4px 0 #4FB06E!important}
body .homebar.labbar b,body .labbar2 .lbl b{color:#0F5A2A!important;font-size:21px!important} body .homebar.labbar small,body .labbar2 .lbl small{color:#17803F!important;font-weight:800!important} body .labbar2 .lnk{font-size:19px!important}
body .homebar.redbar{background:linear-gradient(90deg,#FFCFC8,#FFE0DB)!important;border:3px solid #E07B6E!important;box-shadow:0 4px 0 #E07B6E!important}
body .homebar.redbar b{color:#9E2F24!important;font-size:21px!important} body .homebar.redbar small{color:#9E2F24!important;font-weight:800!important}
.hofg{border:2px solid;border-radius:20px;padding:14px 16px;margin:4px 0 8px}.hofg>h2{margin-top:0}
.pg .safgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.pg.labg .safcard{border-radius:18px;background:linear-gradient(160deg,#E2F4F1,#fff);border:2px solid #CFE9DA}
.pg.labg .safhead{background:rgba(255,255,255,.75);border-radius:16px;padding:12px 14px;margin-bottom:12px}
.gxtop{flex-wrap:wrap}.gxtop .gxstop{margin-left:auto;font-size:14px;padding:6px 12px}
/* test46: Trade Stars for Cash card (Prizes page) */
.cashtx .cashrate{margin:.2em 0}.cashtx .cashrate b{font-size:20px;color:#1E8B3C}.cashtx .cashrules{margin:.2em 0 .4em;padding-left:18px;font-size:14px}.cashtx .cashkeep{margin:0 0 .6em;font-weight:700;color:#1E6B33}
.cashfree{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px;font-weight:700}.cashfree input{width:90px;font:inherit;padding:8px;border-radius:10px;border:2px solid #2E8B3E;min-height:40px}.cashout{font-weight:800;color:#1E8B3C}

/* ==== liq-w12.css ==== */
/* ================= Math LiQ · website 12 styles ================= */
/* 1. one Bilcho feedback card */

.bil1{display:flex;gap:14px;align-items:flex-start;background:#DDF3E4;border:2px solid #B5DEC3;border-radius:22px;padding:12px 16px 12px 10px;color:#17391F}
.bil1.bad{background:#FFF4E5;border-color:#F2CFA0}
.bil1 .bil{height:104px!important;width:auto;flex:none}
.bil1 .bt{flex:1;min-width:0}
.bil1 .bk{font:800 12px system-ui;letter-spacing:.08em;text-transform:uppercase;color:#17803F}
.bil1.bad .bk{color:#A05A10}
.bil1 h4{margin:2px 0 4px;font-size:19px;font-weight:800;color:#17391F;line-height:1.3}
.bil1 .bs{font-weight:700;font-size:16px;line-height:1.45;color:#2F5A3A}
.bil1 .star{display:inline-block;margin-top:8px;background:#fff;border:2px solid #F2C200;border-radius:999px;padding:4px 12px;font-weight:800;color:#9A6A00}
.bil1 .how{margin-top:8px;background:#fff;border-radius:14px;padding:10px 12px;font-weight:600;font-size:15px;line-height:1.5;color:#33406A;border-left:4px solid #7CC594}
.bil1.bad .how{border-left-color:#F2A900}
.bil1 .how b{color:#17391F}

.bil1{margin-top:10px} .bil1 .bs.nx{margin-top:8px;font-size:15px}
@media(max-width:600px){.bil1 .bil{height:76px!important}.bil1 h4{font-size:17px}.bil1 .bs{font-size:15px}}
/* 2. answer buttons under the notebook */

.qnav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.qnav .qprog{font-weight:800;color:#5A6A99;font-size:14px}
.qnav .qbtns{display:flex;gap:8px;flex-wrap:nowrap;margin:0}
.qnav .qbtns .btn{min-width:96px;justify-content:center;font-size:16px;padding:10px 16px}
@media(max-width:600px){.qnav .qbtns .btn{min-width:0;font-size:15px;padding:9px 13px}}

/* 3. Lab Stars note inside My Badges */
.mybadges2 .lsnote{margin:12px 0 0;padding-top:10px;border-top:1px dashed #CFE0D6;text-align:center;font-size:13px;line-height:1.45;color:#4A5A85;font-weight:600}
/* 4. Home banner: the original banner, whole, uncropped */
body #hud #bigBanner:not(.lab)::before{display:none!important}
body #hud #bigBanner:not(.lab){margin-bottom:0!important;padding-bottom:0!important;background:#F4F1EA!important}
body #hud #bigBanner:not(.lab){background:transparent!important}
body #hud #bigBanner:not(.lab) .banner{width:100%!important;height:auto!important;max-width:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;-webkit-mask-image:none!important;mask-image:none!important;margin:0!important;display:block}
body[data-view="home"] main.wrap{padding-top:6px!important}
body[data-view="home"] .hduo{margin-bottom:-6px!important}
/* 5. page banners on phones; no compass anywhere */
.pg .jc{display:none!important}@media(max-width:600px){.phero .phart{display:none!important}.phero{grid-template-columns:1fr!important;position:relative}.phero::after{width:40%!important;right:-30px!important}.phero .pht{padding-right:0!important;max-width:56%;min-width:0}.phero h1{font-size:clamp(16px,calc(5 * var(--uxvw,1vw)),22px)!important;overflow-wrap:break-word;hyphens:auto}.phero p{font-size:clamp(12px,calc(3.4 * var(--uxvw,1vw)),14px)!important}.phero .pheb{font-size:10px!important;letter-spacing:.1em!important}.phero .phwm{position:absolute!important;right:10px;top:50%;transform:translateY(-50%);width:clamp(76px,calc(24 * var(--uxvw,1vw)),100px)!important;margin:0!important}}
/* 6. corner stickers clearly visible */
.pg .stk{z-index:5!important;right:-8px!important;top:-18px!important;width:66px;height:66px;display:grid!important;place-items:center;font-size:40px!important;line-height:1;background:#fff;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px rgba(31,63,168,.18),0 6px 12px rgba(0,0,0,.22);transform:rotate(12deg)!important;filter:none!important}.pg.redg .stk{box-shadow:0 0 0 2px rgba(194,69,58,.25),0 6px 12px rgba(0,0,0,.22)}@media(max-width:600px){.pg .stk{width:50px;height:50px;font-size:30px!important;right:4px!important;top:-14px!important}}

/* 7. bottom bars: one label */
.homebar>span:not(.hi) b{font-size:21px}
.labbar2 .lblbtn{display:flex;align-items:center;gap:14px;background:none;border:0;padding:0;color:inherit;font-family:inherit;text-align:left;cursor:pointer}
.labbar2 .lblbtn:hover .lbl b{text-decoration:underline}
/* 8. Trophies: stats panel colour */
body[data-view="achieve"] .pstats{background:#E6F6FA!important;border:2px solid #A9DCE8;border-radius:20px;padding:12px!important}body[data-view="achieve"] .pstats > div{background:#fff!important;border-color:#CDEAF1!important}

/* 9. Medals page panels */
.medbox{border-radius:20px;padding:14px 14px 16px;margin-top:6px}
.medbox h2{font-size:20px;margin:0 0 4px;display:flex;align-items:center;gap:8px}.medbox .mini{margin:0 0 10px}
.medbox.won{background:#FFF4D6;border:2px solid #F1D27A}.medbox.won h2{color:#8A5A00}
.medbox.todo{background:#EAF4FF;border:2px solid #BFD8F5}.medbox.todo h2{color:#1F4F8A}
.medbox.todo .medal{background:#fff}
.medbox.won .awards{margin-top:4px}
/* 10. Star Bank: cash + Investment Academy side by side */

.cxwrap{display:flex;gap:12px;margin-top:12px;align-items:stretch}
.cxp{border-radius:20px;min-width:0}
.cxp.cash{flex:0 0 auto;background:#FFF0DF;border:2px solid #F2C38F}
.cxp .cashp,.cxp .p{margin:0;border:0!important;background:transparent!important;box-shadow:none!important}
.cxp.cash .cashrow{display:grid!important;grid-template-columns:repeat(4,120px)}
.cxp.cash .cashp>p.mini{max-width:510px}
.cxp.inv{flex:1;min-width:120px;background:#F1F2F5;border:2px solid #D6D9E0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 10px;text-align:center;font-family:inherit;color:#3D4560}
.cxp.inv .ic{flex:none;width:60px;height:60px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:32px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.cxp.inv b{font-size:19px;color:#2F3650;line-height:1.2}.cxp.inv small{font-size:13px;font-weight:600;color:#5E6680}
.cxp.inv .soon{font-size:12.5px;font-weight:800;background:#fff;border:1.5px solid #D6D9E0;border-radius:999px;padding:4px 12px;color:#4B2FA8}
@media(max-width:600px){.cxwrap{gap:8px}.cxp.cash .cashrow{grid-template-columns:repeat(2,minmax(0,100px))}.cxp.cash .cashp>p.mini{max-width:210px}.cxp .cashb{min-width:0;padding:8px 4px}.cxp .cashb b{font-size:18px}.cxp.cash .cashp{padding:12px 10px}.cxp.inv{min-width:0;padding:10px 6px}.cxp.inv .ic{width:44px;height:44px;font-size:24px}.cxp.inv b{font-size:14px}.cxp.inv small{display:none}.cxp.cash{flex:0 1 auto;min-width:0}.cxp.cash .cashp .row{flex-direction:column;align-items:flex-start!important;gap:2px}.cxp.cash .k{font-size:12.5px;letter-spacing:.06em}.cxp.cash .mini{font-size:12px!important;line-height:1.35}.cxp .cashb span{font-size:12.5px}.cxp .cashb em{font-size:11px}}

/* --- new tab on the Star Bank --- */
.cxp.inv{flex-direction:row!important;gap:12px!important;justify-content:flex-start!important;text-align:left!important;background:linear-gradient(120deg,#F4F5F7,#ECEEF1)!important;padding:10px 14px!important;position:relative;overflow:hidden}
.cxp.inv .owl{height:150px;width:auto;flex:none;margin:-4px 0 -14px -6px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.12))}
.cxp.inv .itx{flex:1;min-width:0}
.cxp.inv .itx small{display:block;font-size:13px;font-weight:800;color:#3D4A5C}
.cxp.inv .itx .t1{display:block;font-size:24px;font-weight:800;line-height:1.05;color:#12513D}.cxp.inv .itx .t2{display:block;font-size:24px;font-weight:800;line-height:1.1;color:#C9971F}
.cxp.inv .itx .sub{display:block;margin-top:6px;font-size:13.5px;font-weight:700;color:#5E6680}
.cxp.inv .arr{flex:none;width:44px;height:44px;border-radius:50%;background:#12513D;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800}
.cxp.inv .spark{position:absolute;right:66px;top:10px;font-size:18px}
@media(max-width:600px){ .cxp.inv{flex-direction:column!important;align-items:center!important;text-align:center!important;padding:10px 6px!important;gap:4px!important}.cxp.inv .owl{height:92px;margin:0}.cxp.inv .itx .t1,.cxp.inv .itx .t2{font-size:15px}.cxp.inv .itx small{font-size:11px}.cxp.inv .itx .sub{font-size:11px}.cxp.inv .arr{width:34px;height:34px;font-size:18px}.cxp.inv .spark{display:none}}

.slide .sl-l .sl-pic.chalk{background:transparent!important;padding:6px 0 0;border:0}
.sl-pic.chalk .cksvg{width:100%;max-width:440px;height:auto;max-height:min(300px,calc(var(--avail,640px) - 300px));display:block;margin:0 auto}
.ckopts{list-style:none;padding:0;margin:.6em 0 .2em;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
.ckopts li{display:flex;align-items:center;gap:10px;color:#F4F1E8;font-family:var(--display);font-weight:700;font-size:clamp(17px,calc(2 * var(--uxvw,1vw)),21px)}
.ckl{width:30px;height:30px;border-radius:50%;border:2px solid #FFE08A;color:#FFE08A;display:grid;place-items:center;font-size:15px;flex:none}
.ansbox{background:#E3F6E8;border:2px solid #9ED7AE;border-radius:16px;padding:12px 14px}
.ansh{font-size:18px;color:#17803F;font-weight:800;margin-bottom:6px}.ansh b{font-size:21px;color:#0F5C2C}
.ansteps{margin:0;padding-left:22px;color:#1F2747;font-size:16px;line-height:1.5}.ansteps li{margin:.25em 0}
@media(max-width:600px){.ckopts{grid-template-columns:1fr}.sl-pic.chalk .cksvg{max-height:240px}}
.slide .sl-l .sl-pic.chalk{margin-top:8px}
.ckopts.long{grid-template-columns:1fr}
.ckopts li span:last-child{min-width:0}
.ckhint{color:#FFE08A;font-weight:800;font-size:15px;margin:.2em 0}
.slide .sl-l .ckclues{color:#F4F1E8;font-weight:700;font-size:clamp(15px,calc(1.7 * var(--uxvw,1vw)),18px);margin:.4em 0 .2em;padding-left:22px}
.slide .sl-l .ckclues li{margin:.2em 0}
.qleft .diagram:has(.cksvg){background:transparent!important;padding:4px 0}
.qleft .diagram .cksvg{width:100%;max-width:440px;height:auto;max-height:280px;display:block;margin:0 auto}
.ckopts.long li{font-size:clamp(15px,calc(1.6 * var(--uxvw,1vw)),18px)}

/* ---- chalk style for every generated diagram on the green board (practice, guided, exit, tests, Lab) ---- */
:is(.qleft .diagram,.sl-l .sl-pic){background:transparent!important;box-shadow:none!important;border:0!important;padding:4px 0!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg){filter:drop-shadow(0 0 .6px rgba(244,241,230,.6));overflow:visible;min-width:min(240px,100%)}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-bg{fill:transparent!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-line{stroke:#F4F1E6!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-thin{stroke:rgba(244,241,230,.6)!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-fill{fill:#8EC5FF!important;opacity:.9!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-fill2{fill:#FFE08A!important;opacity:.8!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .g-txt,:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) text{fill:#FFE7A0!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-front{fill:rgba(255,224,138,.32)!important;stroke:#F4F1E6!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-top{fill:rgba(255,224,138,.55)!important;stroke:#F4F1E6!important}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-side{fill:rgba(255,224,138,.18)!important;stroke:#F4F1E6!important}
/* Lab pictures drawn with fixed colours (rectangles, coordinate grid, fraction bars) */
.qleft .diagram svg:not(.cksvg) rect[fill="#CFE0FF"],.qleft .diagram svg:not(.cksvg) rect[fill="#8DB4F7"]{fill:rgba(255,224,138,.45)!important}
.qleft .diagram svg:not(.cksvg) rect[fill="#fff"]{fill:transparent!important}
.qleft .diagram svg:not(.cksvg) [stroke="#123270"]{stroke:#F4F1E6!important}
.qleft .diagram svg:not(.cksvg) [stroke="#C9D6EE"]{stroke:rgba(244,241,230,.35)!important}
.qleft .diagram svg:not(.cksvg) g[stroke="#123270"]{stroke:#F4F1E6!important}
.qleft .diagram svg:not(.cksvg) text[fill="#5E6584"],.qleft .diagram svg:not(.cksvg) text[fill="#123270"]{fill:#FFE7A0!important}
.qleft .diagram img{background:#fff;border-radius:10px;padding:6px}
/* v14: Bilcho's answer box stays green for every response (colour only) */
.bil1.bad{background:#DDF3E4!important;border-color:#B5DEC3!important}
.bil1.bad .bk{color:#17803F!important}
/* v14: keep the MathLiQ logo clear of the round corner sticker */
@media(min-width:601px){.pg .phero .phwm{margin-right:66px!important;width:230px!important}}
@media(max-width:600px){.pg .phero .phwm{margin-right:30px!important}}

/* ==== liq-academy.css ==== */
/* ===== Investment LiQ (Investment Academy) · light gray, emerald, muted gold ===== */
body .pg.journal.grayg:not(.labg):not(.redg){background:linear-gradient(180deg,#F3F5F4,#EBEFED)!important;border:2px solid #DDE4E0!important;border-radius:24px!important;box-shadow:0 8px 22px rgba(38,51,46,.10)!important}
body .pg.journal.grayg:not(.labg):not(.redg)::before{border-color:rgba(38,51,46,.18)!important;border-radius:18px!important}
.pg.grayg .phero{background:#FFFFFF!important;border-color:#DDE4E0!important}
.phero.acad .hl{color:#B08A3A;background:linear-gradient(transparent 60%,#F1E2B8 60%)}
.phero.acad h1{color:#16845B}.phero.acad .pheb{color:#26332E}.phero.acad .phbar{background:#C7A65B}
.homebar.graybar{background:linear-gradient(90deg,#E7ECEA,#F3F5F4)!important;border:2px solid #C9D3CE!important;box-shadow:0 3px 0 rgba(38,51,46,.12)!important}
.homebar.graybar b{color:#16845B!important}
.acbody{display:grid;gap:14px;color:#26332E}
.acbody .k{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#16845B}
.acbody .mini{color:#66736D}
.acnav{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 12px}
.acnav button{flex:1 1 110px;display:flex;gap:6px;align-items:center;justify-content:center;font:inherit;font-weight:800;font-size:15px;padding:10px 12px;border-radius:14px;border:2px solid #DDE4E0;background:#fff;color:#26332E;cursor:pointer}
.acnav button[aria-current="true"]{background:#16845B;border-color:#16845B;color:#fff}
.shsay{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid #DDE4E0;border-radius:20px;padding:12px 16px}
.shsay .owlimg{flex:none;width:auto;filter:drop-shadow(0 3px 4px rgba(0,0,0,.12))}
.shsay .shb{flex:1;min-width:0;background:#EEF5F1;border:2px solid #CFE3D8;border-radius:16px;padding:10px 14px}
.shsay .shk{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#B08A3A}
.shsay h3{margin:2px 0 4px;font-size:19px;color:#16845B}.shsay p{margin:.2em 0;font-weight:600;line-height:1.45}
.acbal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.acbal .b{background:#fff;border:2px solid #DDE4E0;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.acbal .b span{font-weight:800;font-size:13px;color:#66736D}.acbal .b b{font-size:28px;color:#26332E}.acbal .b em{font-style:normal;font-size:12px;color:#66736D}
.acbal .avail{border-color:#B9DCC9}.acbal .comm{border-color:#E3D3A8}
.acgrid2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.acc{background:#fff;border:2px solid #DDE4E0;border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.acc h4{margin:0;font-size:18px}.acc p{margin:0}
.acbiz{display:grid;gap:10px}
.bzc{display:flex;gap:12px;align-items:center;background:#fff;border:2px solid #DDE4E0;border-radius:18px;padding:12px 14px}
.bzc.soon{opacity:.7}.bzt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.bzt b{font-size:18px}
.bztags{display:flex;gap:6px;flex-wrap:wrap}.bztags span{font-size:12px;font-weight:700;background:#F3F5F4;border:1px solid #DDE4E0;border-radius:999px;padding:2px 8px}
.bztags .dif{background:#FBF4E2;border-color:#E9D7A6}
.soonb{font-size:12px;font-weight:800;color:#8A6A12;background:#FBF1D2;border-radius:999px;padding:4px 10px}
.bzart{display:grid;place-items:center;width:1.6em;height:1.6em;background:#F3F5F4;border-radius:50%;flex:none}
.acmove{background:#fff;border:2px dashed #C9D3CE;border-radius:18px;padding:12px 14px;display:grid;gap:8px}
.acmove form{gap:8px;align-items:flex-end;flex-wrap:wrap}.acmove .field{flex:1 1 180px}
.acbizhead{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid #DDE4E0;border-radius:18px;padding:12px 16px}
.acbizhead h2{margin:2px 0;font-size:24px;color:#16845B}.acbizhead p{margin:0;font-weight:600}
.acclues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.clue{background:#fff;border:2px solid #DDE4E0;border-radius:14px;padding:8px 10px;min-height:52px;display:flex;flex-direction:column;justify-content:center}
.clue.open{border-color:#B9DCC9;background:#F6FBF8}.clue p{margin:.2em 0 0}.clue .btn{width:100%;justify-content:flex-start}
.acq{background:#FBF7EC;border:2px solid #E9D7A6;border-radius:18px;padding:12px 14px}.acq.ok{background:#EEF7F1;border-color:#B9DCC9}
.acq form{gap:8px;align-items:center}.hintb{background:#fff;border-left:4px solid #C7A65B;border-radius:10px;padding:8px 10px;margin:6px 0;font-weight:600}
.acdec{background:#fff;border:2px solid #16845B;border-radius:18px;padding:12px 14px}
.acconf{display:grid;gap:12px;background:#fff;border:2px solid #DDE4E0;border-radius:20px;padding:16px}
.acconf h2{margin:0;color:#16845B}.acconf .amt{display:flex;gap:14px;justify-content:center;align-items:center}.acconf .amt output{font-size:34px}
.acconf .amt .btn{font-size:24px;min-width:56px;justify-content:center}
.deal{background:#FBF7EC;border:2px solid #E9D7A6;border-radius:16px;padding:10px 14px}.deal ul{margin:.3em 0 0;padding-left:20px;line-height:1.55}
.acrow{display:flex;gap:10px;align-items:center;background:#fff;border:2px solid #DDE4E0;border-radius:14px;padding:8px 12px;margin:6px 0;width:100%;text-align:left;font:inherit;color:inherit}
.acrow>div{flex:1;min-width:0;display:flex;flex-direction:column}.btnrow{cursor:pointer}
.tagw{font-size:12px;font-weight:800;background:#FBF1D2;color:#8A6A12;border-radius:999px;padding:4px 10px}
.newb{font-size:11px;font-weight:800;background:#16845B;color:#fff;border-radius:999px;padding:2px 8px}
.pl{font-weight:800;white-space:nowrap}.pl.up{color:#16845B}.pl.down{color:#B4473B}.pl.zero{color:#66736D}
.acout{display:grid;gap:12px}.acout h2{margin:0;color:#16845B}
.acnums,.acpay,.acsum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.acnums>div,.acpay>div,.acsum>div{background:#fff;border:2px solid #DDE4E0;border-radius:14px;padding:8px 10px;display:flex;flex-direction:column}
.acnums span,.acpay span,.acsum span{font-size:12px;font-weight:800;color:#66736D}.acnums b,.acpay b,.acsum b{font-size:22px}.acnums em,.acpay em,.acsum em{font-style:normal;font-size:12px;color:#66736D}
.acpay>div{border-color:#E9D7A6;background:#FFFCF4}.acsum{grid-template-columns:repeat(3,minmax(0,1fr))}
.aclesson{background:#EEF5F1;border:2px solid #CFE3D8;border-radius:16px;padding:10px 14px}.aclesson p{margin:.3em 0}
.acstage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stg{background:#fff;border:2px solid #DDE4E0;border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;opacity:.6}.stg.on{opacity:1;border-color:#16845B;background:#EEF7F1}.stg.done{opacity:1}
.stg span{font-size:13px;font-weight:600}
.acskills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.skc{background:#fff;border:2px solid #DDE4E0;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.skbar{height:10px;background:#EEF1EF;border-radius:999px;overflow:hidden}.skbar i{display:block;height:100%;background:#16845B;border-radius:999px}
.skb{font-weight:800;color:#16845B;font-size:14px}
.achab{display:flex;flex-wrap:wrap;gap:8px}.hab{display:flex;gap:6px;align-items:center;background:#fff;border:2px dashed #DDE4E0;border-radius:999px;padding:6px 12px;font-weight:700;color:#99A39E}
.hab.got{border-style:solid;border-color:#C7A65B;background:#FFFCF4;color:#26332E}
.acfilt{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.acfilt label{display:flex;flex-direction:column;font-weight:800;font-size:13px;color:#66736D}
.acfilt select{font:inherit;padding:6px 8px;border-radius:10px;border:2px solid #DDE4E0;background:#fff}
.actab th{background:#F3F5F4}.actab .tot td{background:#FBF7EC;font-weight:700}
.albar{display:grid;grid-template-columns:160px 1fr 120px;gap:10px;align-items:center;margin:6px 0}.albar>div{height:14px;background:#EEF1EF;border-radius:999px;overflow:hidden}.albar i{display:block;height:100%;background:#C7A65B}
.acgate{display:grid;gap:12px}.acpin{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.acpin input{font:inherit;font-size:24px;letter-spacing:.3em;text-align:center;width:130px;padding:8px;border-radius:14px;border:2px solid #DDE4E0}
.acnews{display:flex;gap:14px;align-items:center;width:100%;margin:10px 0 0;text-align:left;font:inherit;cursor:pointer;background:linear-gradient(110deg,#F3F5F4,#E8EFEB);border:2px solid #C9D3CE;border-radius:20px;padding:8px 16px;color:#26332E}
.acnews>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}.acnews small{font-weight:800;color:#B08A3A;letter-spacing:.06em}
.acnews b{font-size:19px;color:#16845B}.acnews em{font-style:normal;font-weight:600;color:#66736D}
.acnews .arr{width:40px;height:40px;border-radius:50%;background:#16845B;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800;flex:none}
@media(max-width:600px){.acbal,.acgrid2,.acskills{grid-template-columns:1fr}.acnums,.acpay,.acsum{grid-template-columns:repeat(2,minmax(0,1fr))}.acclues{grid-template-columns:1fr}.acstage{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shsay{flex-direction:column;align-items:flex-start}.shsay .owlimg{height:70px!important}.albar{grid-template-columns:1fr;gap:4px}.bzc{flex-wrap:wrap}.acnews .owlimg{height:54px!important}}
@media print{.acnav,.acfilt,.homebar,#hud,#mlfoot{display:none!important}}

/* ---- investor ranks + heritage badges ---- */
.am{font-family:"Noto Sans Ethiopic","Abyssinica SIL","Nyala",var(--body,system-ui),sans-serif;font-weight:800}
.irank{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:6px 0 8px}
.irk{background:#fff;border:2px solid #DDE4E0;border-radius:16px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;opacity:.62}
.irk .irn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#E7EEEA;color:#16845B;font-weight:900}
.irk .am{font-size:20px;color:#16845B}.irk b:not(.am){font-size:15px;color:#1E2B26}.irk.done{opacity:.9}.irk.done .irn{background:#16845B;color:#fff}
.irk.on{opacity:1;border-color:#C7A65B;background:linear-gradient(180deg,#FFFBEF,#F6EED6);box-shadow:0 4px 12px rgba(199,166,91,.35)}.irk.on .irn{background:#C7A65B;color:#fff}
.inext{background:#fff;border:2px dashed #C9D3CE;border-radius:16px;padding:10px 14px}.inext ul{margin:6px 0 0;padding-left:4px;list-style:none;display:grid;gap:4px}.inext li{font-weight:600}.inext li.ok{color:#16845B}
.ibgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:6px 0 10px}
.ibc{background:#fff;border:2px solid #DDE4E0;border-radius:18px;padding:12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}
.ibc.got{border-color:#C7A65B;background:linear-gradient(180deg,#FFFFFF,#F7F1DF)}.ibc.top{grid-column:1/-1;max-width:420px;justify-self:center;width:100%}
.ibc .am{font-size:18px;color:#16845B}.ibc b:not(.am){color:#1E2B26}.ibc .okt{color:#16845B;font-weight:800}
.iemb{display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 40% 35%,#EAF5EF,#CFE3D8);border:4px solid #C9D3CE;filter:grayscale(1);opacity:.7}
.iemb.got{background:radial-gradient(circle at 40% 35%,#1FA46F,#11704C);border-color:#D9B65E;box-shadow:0 0 0 3px #F3E3B3,0 6px 14px rgba(17,112,76,.3);filter:none;opacity:1}
.iemb.top.got{border-width:5px;box-shadow:0 0 0 4px #F3E3B3,0 0 18px rgba(217,182,94,.8)}
.srcl{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.04em;border-radius:999px;padding:2px 9px;margin-left:6px;vertical-align:middle;text-transform:none}
.srcl.math{background:#FFF3C4;color:#7A5A00;border:1px solid #E8C766}.srcl.eng{background:#FCE4EE;color:#9B2C5E;border:1px solid #F2B5CD}.srcl.inv{background:#E3F2EA;color:#0F6B47;border:1px solid #A9D6BE}.srcl.lab{background:#E5F6E3;color:#2E6B1F;border:1px solid #B7DFB0}
@media(max-width:700px){.irank{grid-template-columns:repeat(2,minmax(0,1fr))}.irank .irk:last-child{grid-column:1/-1}.ibgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* test46 (Unified Star Bank): Star History sources and filter chips */
.srcl.safari{background:#E9F5DC;color:#3D6B12;border:1px solid #B9DB8E}.srcl.move{background:#EEF1F6;color:#46546B;border:1px solid #CBD3E1}
.hsf{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.hsfb{font:700 13px/1.2 inherit;border:1.5px solid #CBD3E1;background:#fff;color:#1F2747;border-radius:999px;padding:7px 12px;min-height:36px;cursor:pointer}
.hsfb.on{background:#1B4FA8;border-color:#1B4FA8;color:#fff}
.hsfb:focus-visible{outline:3px solid #F5B800;outline-offset:2px}
.htm{display:block;font-size:11px;color:#66708A}

/* ==== liq-english.css ==== */
/* ===== English LiQ · light pink ===== */
body .pg.journal.pinkg:not(.labg):not(.redg){background:linear-gradient(180deg,#FFF3F7,#FDE8F0)!important;border:2px solid #F5C9DA!important;border-radius:24px!important;box-shadow:0 8px 22px rgba(194,69,122,.12)!important}
body .pg.journal.pinkg:not(.labg):not(.redg)::before{border-color:rgba(194,69,122,.25)!important;border-radius:18px!important}
.pg.pinkg .phero{background:#FFFDFE!important;border-color:#F5D3E1!important}
.phero.eng .hl{color:#C2457A;background:linear-gradient(transparent 60%,#FAD3E2 60%)}.phero.eng h1{color:#3A1F4F}.phero.eng .phbar{background:#E07A9F}
.homebar.pinkbar{background:linear-gradient(90deg,#FCDDE9,#FFF0F6)!important;border:2px solid #F0B6CC!important;box-shadow:0 3px 0 rgba(194,69,122,.15)!important}.homebar.pinkbar b{color:#A8336A!important}
.enbody{display:grid;gap:14px;color:#2B2140}.enbody .k{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#C2457A}.enbody .mini{color:#6E6280}
.ennav{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 12px}
.ennav button{flex:1 1 120px;display:flex;gap:6px;align-items:center;justify-content:center;font:inherit;font-weight:800;font-size:14.5px;padding:9px 10px;border-radius:14px;border:2px solid #F5D3E1;background:#fff;color:#2B2140;cursor:pointer}
.ennav button[aria-current="true"]{background:#C2457A;border-color:#C2457A;color:#fff}
.fsay{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid #F5D3E1;border-radius:20px;padding:12px 16px}
.fsay .ferimg{flex:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.15))}
.fsay .fsb{flex:1;min-width:0;background:#FFF0F6;border:2px solid #F7CADB;border-radius:16px;padding:10px 14px}
.fsay .fsk{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7A5AC8}
.fsay h3{margin:2px 0 4px;font-size:19px;color:#A8336A}.fsay p{margin:.2em 0;font-weight:600;line-height:1.45}
.engrid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.enc{background:#fff;border:2px solid #F5D3E1;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}.enc b{font-size:17px}
.enareas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ena{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;font:inherit;cursor:pointer;background:#fff;border:2px solid #F5D3E1;border-radius:18px;padding:12px 14px;color:#2B2140}
.ena:hover{border-color:#E07A9F}.ena .ei{font-size:28px}.ena b{font-size:17px;color:#A8336A}.ena span:last-child{font-size:13.5px;font-weight:600;color:#6E6280}
.ena.coach{background:#F7F2FF;border-color:#DCCDF6}
.enfun{display:flex;gap:12px;align-items:center;background:#FFFBEA;border:2px dashed #F2D27A;border-radius:18px;padding:10px 14px}.enfun p{margin:.2em 0;font-weight:600}
.enset{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fff;border:2px solid #F5D3E1;border-radius:16px;padding:10px 14px}.enset>div{display:flex;flex-direction:column}
.enstory{background:#fff;border:2px solid #F5D3E1;border-radius:16px;padding:10px 14px}.enstory summary{cursor:pointer}
.enpass{background:#FFFDF8;border:2px solid #F0E1C8;border-radius:14px;padding:10px 14px;line-height:1.7;font-size:17px}.enpass p{margin:.4em 0}
.enpass .pn{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#FCE4EE;color:#A8336A;font-size:11px;font-weight:800;margin-right:6px;vertical-align:2px}
.encards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.encard{background:#fff;border:2px solid #F5D3E1;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.encard.due{border-color:#E07A9F}.encard b{font-size:19px;color:#A8336A}.encard p{margin:0}
.enrun{background:#fff;border:2px solid #F5D3E1;border-radius:20px;padding:14px}
.engrid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}.engrid2:has(.enright:only-child){grid-template-columns:1fr}
.enq{font-size:20px;font-weight:800;line-height:1.4;margin:.2em 0 .6em}
.enchoices{display:grid;gap:8px}
.enchoice{display:flex;gap:10px;align-items:center;text-align:left;font:inherit;font-size:17px;font-weight:600;padding:10px 12px;border-radius:14px;border:2px solid #F5D3E1;background:#fff;cursor:pointer;color:#2B2140}
.enchoice .L{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#FCE4EE;color:#A8336A;font-weight:800;flex:none}
.enchoice.on{border-color:#C2457A;background:#FFF0F6}.enchoice.wrong{opacity:.55;text-decoration:line-through}
.enin{font:inherit;font-size:20px;padding:10px 12px;border-radius:12px;border:2px solid #F5D3E1;width:min(100%,320px)}
.enorder .slots{min-height:52px;display:flex;gap:6px;flex-wrap:wrap;align-items:center;border:2px dashed #E07A9F;border-radius:14px;padding:8px;margin-bottom:8px}
.enorder .pool,.frames{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tok{font:inherit;font-weight:700;font-size:16px;padding:8px 12px;border-radius:12px;border:2px solid #DCCDF6;background:#F7F2FF;cursor:pointer;color:#2B2140}.tok.on{background:#FFF0F6;border-color:#E07A9F}
.enhelp{margin:10px 0;border-radius:14px;padding:10px 12px;font-weight:600;line-height:1.45;background:#F7F2FF;border-left:5px solid #7A5AC8}.enhelp.l4{background:#FFF4E5;border-left-color:#F2A900}
.enam{margin-top:6px;background:#fff;border-radius:10px;padding:8px 10px;font-family:'Noto Sans Ethiopic',Nunito,sans-serif}
.enfb{display:flex;gap:10px;align-items:center;border-radius:16px;padding:8px 12px;margin:10px 0}.enfb p{margin:.2em 0}
.enfb.good{background:#E9F7EE;border:2px solid #A9DDBB}.enfb.try{background:#FFF4E5;border:2px solid #F2CFA0}.enfb.bad{background:#FFF0F0;border:2px solid #F3C2C2}
.enbtns{gap:8px;margin-top:10px}
.endone{display:grid;gap:12px}
.entab th{background:#FFF0F6}
.stb{font-size:12px;font-weight:800;border-radius:999px;padding:3px 9px;background:#F1EEF6;color:#6E6280;white-space:nowrap}.stb.s-secure{background:#E9F7EE;color:#1E7A43}.stb.s-developing{background:#FFF6DB;color:#8A6A12}.stb.s-needssupport{background:#FFE9E4;color:#A8442F}.stb.s-reviewdue{background:#E8F0FF;color:#2F55B8}
.ennext{background:#fff;border:2px solid #C2457A;border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;align-items:flex-start}.ennext p{margin:0}
.ensum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ensum>div{background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:8px 10px;display:flex;flex-direction:column}.ensum span{font-size:12px;font-weight:800;color:#6E6280}.ensum b{font-size:24px}
.enunits{display:flex;flex-wrap:wrap;gap:6px}.enunits span{font-size:13px;font-weight:700;background:#fff;border:1.5px solid #F5D3E1;border-radius:999px;padding:4px 10px}.enunits .on{background:#C2457A;color:#fff;border-color:#C2457A}
.enwrite{background:#fff;border:2px solid #F5D3E1;border-radius:18px;padding:12px 14px;display:grid;gap:8px}
.enwrite textarea{font:inherit;font-size:17px;line-height:1.6;border:2px solid #F5D3E1;border-radius:12px;padding:10px;width:100%;box-sizing:border-box;background:repeating-linear-gradient(#fff 0 27px,#FCE4EE 27px 28px)}
.wrchk{display:flex;flex-wrap:wrap;gap:6px}.wrchk span{font-size:13px;font-weight:700;border-radius:999px;padding:4px 10px;background:#F1EEF6;color:#6E6280}.wrchk span.ok{background:#E9F7EE;color:#1E7A43}
.enwrrow{background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:10px 12px;margin:6px 0}
.enfbform{border-top:1px dashed #F0B6CC;padding-top:8px;margin-top:8px}.enamform{margin:8px 0}
@media(max-width:600px){.engrid3,.engrid2,.ensum{grid-template-columns:1fr}.enareas,.encards{grid-template-columns:repeat(2,minmax(0,1fr))}.fsay{flex-direction:column;align-items:flex-start}.fsay .ferimg{height:72px!important}.ensum{grid-template-columns:repeat(2,minmax(0,1fr))}.enq{font-size:18px}.ennav button{flex:1 1 44%;font-size:13px}}
/* ===== English LiQ v2: word bank, Word of the Day, pillars, ranks, badges, studio ===== */
.enhome2{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:760px){.enhome2{grid-template-columns:1fr}}
.wotd{position:relative;background:#FFFBEA;border:2px solid #F2D27A;border-radius:16px;padding:16px 16px 12px;box-shadow:0 4px 0 rgba(194,69,122,.10);transform:rotate(-.4deg)}
.wotdpin{position:absolute;top:-9px;left:50%;width:18px;height:18px;border-radius:50%;background:#E07A9F;box-shadow:0 2px 0 #A8336A;transform:translateX(-50%)}
.wotdk{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#A8336A}
.wotdw{font-family:Georgia,'Times New Roman',serif;font-size:30px;font-weight:700;color:#3A1F4F;margin:4px 0}
.wotd p{margin:.3em 0;color:#2B2140}.wotd .row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.enin.wide{flex:1 1 220px;min-width:0}
.enpill{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pil{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;font:inherit;background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:10px 12px;color:#2B2140;cursor:pointer}
.pil>span:first-child{font-size:22px}.pil.rk{background:#FCE4EE}.pil.st{cursor:default}
.lvb{display:inline-block;font-size:12px;font-weight:800;border-radius:99px;padding:2px 9px;background:#EEE8F5;color:#4B3E66}
.lvb.l1{background:#F1ECFA}.lvb.l2{background:#FFE7D6;color:#8A4510}.lvb.l3{background:#FFF3C4;color:#6E5300}.lvb.l4{background:#DDF5E6;color:#1E6B3D}.lvb.l5{background:#C2457A;color:#fff}
.am{font-family:'Noto Sans Ethiopic',Nunito,sans-serif}
.wbstats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.wbstats div{background:#fff;border:2px solid #F5D3E1;border-radius:12px;padding:8px;text-align:center;display:flex;flex-direction:column}
.wbstats b{font-size:22px;color:#C2457A}.wbstats span{font-size:12px;color:#6E6280;font-weight:700}
@media(max-width:600px){.wbstats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.wst{display:inline-block;font-size:11.5px;font-weight:800;border-radius:99px;padding:1px 8px;margin:3px 0;background:#F1ECFA;color:#4B3E66}
.wst.w-learning{background:#FFF3C4;color:#6E5300}.wst.w-practicing{background:#E3F0FF;color:#1F4E8C}.wst.w-familiar{background:#DDF5E6;color:#1E6B3D}.wst.w-mastered{background:#C2457A;color:#fff}.wst.w-needsreview{background:#FFE7D6;color:#8A4510}
.encard .amin{width:100%;margin-top:4px;font:inherit;border:1.5px solid #F5D3E1;border-radius:8px;padding:4px 6px}
.enchoice.wrong{opacity:.5;text-decoration:line-through}
.prew{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.prew div{background:#fff;border:2px solid #F5D3E1;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.enapply{background:#fff;border:2px dashed #E07A9F;border-radius:16px;padding:12px 14px}
.enapply .row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.lisT{font-style:italic}
.erank{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.erk{background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:2px;opacity:.7}
.erk.done{opacity:1;background:#FCE4EE}.erk.on{opacity:1;background:#C2457A;border-color:#C2457A;color:#fff}.erk.on .mini{color:#FCE4EE}
.ern{font-weight:900;font-size:13px}
@media(max-width:600px){.erank{grid-template-columns:repeat(2,minmax(0,1fr))}}
.enext{background:#fff;border:2px solid #F5D3E1;border-radius:16px;padding:12px 14px}.enext ul{margin:.3em 0;padding-left:0;list-style:none}.enext li{margin:3px 0}.enext li.ok{color:#1E6B3D}
.pilsec{background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:10px 12px}
.ebgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.ebc{background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:3px;text-align:center;align-items:center;filter:grayscale(.6);opacity:.8}
.ebc.got{filter:none;opacity:1;border-color:#E07A9F;background:linear-gradient(180deg,#FFF,#FCE4EE)}.ebc.her.got{border-color:#D9A520;background:linear-gradient(180deg,#FFFBEA,#FCE4EE)}
.ebemb{font-size:30px;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#FCE4EE;border:3px solid #F5C9DA}
.ebc.her .ebemb{border-color:#E8C35A}.okt{color:#1E6B3D;font-weight:800}
.stabs{display:flex;gap:6px;flex-wrap:wrap}
.stabs button{font:inherit;font-weight:800;font-size:14px;padding:8px 12px;border-radius:12px;border:2px solid #F5D3E1;background:#fff;color:#2B2140;cursor:pointer}
.stabs button[aria-selected="true"]{background:#FCE4EE;border-color:#E07A9F;color:#A8336A}
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.vcard{font:inherit;text-align:left;background:#fff;border:2px solid #F5D3E1;border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:4px;cursor:pointer;color:#2B2140}
.vcard img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;background:#FCE4EE}
.vrun{background:#fff;border:2px solid #F5D3E1;border-radius:18px;padding:14px;display:grid;gap:12px}
.vsteps{display:flex;gap:4px;flex-wrap:wrap}.vsteps span{font-size:12.5px;font-weight:800;padding:4px 9px;border-radius:99px;background:#F7EEF3;color:#6E6280}
.vsteps span.on{background:#C2457A;color:#fff}.vsteps span.done{background:#DDF5E6;color:#1E6B3D}
.vplayer{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#2B2140}
.vplayer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vq{margin-bottom:8px}
.vrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 0;border-top:1px solid #F5D3E1}.vrow img{width:72px;border-radius:6px}.vrow>div{flex:1 1 200px}
.wrcmp{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wrcmp>div{background:#FFF8FB;border:1.5px solid #F5D3E1;border-radius:12px;padding:8px 10px}
@media(max-width:600px){.wrcmp{grid-template-columns:1fr}}
.rubv{display:flex;gap:8px;flex-wrap:wrap;font-size:13px}.rubin{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.spk{margin-top:4px}
.enfbform,.enoralt{border-top:1px solid #F5D3E1;padding:8px 0}
.srcl{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.02em;text-transform:none;padding:1px 8px;border-radius:99px;vertical-align:middle}
.srcl.eng{background:#FCE4EE;color:#A8336A;border:1px solid #F0B6CC}
.enta{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:17px;line-height:1.5;padding:10px 12px;border-radius:12px;border:2px solid #F5D3E1;background:#fff;color:#2B2140}
.enin.wide{width:auto;font-size:17px}
.enin:focus,.enta:focus,.stabs button:focus-visible,.pil:focus-visible,.vcard:focus-visible{outline:3px solid #7A5AC8;outline-offset:2px}
/* ===== v14 English Home layout: mission + message board on top, areas, progress, fun ===== */
.enbody{gap:18px}
.eh-top{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:stretch}
@media(max-width:820px){.eh-top{grid-template-columns:1fr}}
.fsay.eh-mission{margin:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;background:linear-gradient(160deg,#FFF6FA,#FCE4EE);border:2px solid #F0B6CC;border-radius:22px;padding:18px;box-shadow:0 6px 18px rgba(194,69,122,.10)}
.fsay.eh-mission>img{height:118px!important;align-self:flex-start;filter:drop-shadow(0 6px 8px rgba(58,31,79,.15))}
.fsay.eh-mission .fsb{flex:1;background:#fff;border-radius:16px;font-size:17px;line-height:1.5;box-shadow:0 2px 0 rgba(194,69,122,.08)}
.fsay.eh-mission .fsb h3{font:800 24px/1.2 'Baloo 2',Nunito,sans-serif;color:#A8336A;margin:2px 0 6px}
.eh-board{position:relative;background:#C99A62 radial-gradient(rgba(0,0,0,.07) 1px,transparent 1.6px) 0 0/7px 7px;border:10px solid #8A5A2B;border-radius:20px;padding:34px 18px 20px;box-shadow:inset 0 3px 10px rgba(0,0,0,.28),0 8px 18px rgba(90,58,20,.18)}
.eh-board::before{content:"";position:absolute;inset:-10px;border-radius:20px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18);pointer-events:none}
.eh-bh{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);background:linear-gradient(#9C6A36,#7A4E22);color:#FFF3DF;font:800 15px Nunito,sans-serif;letter-spacing:.08em;text-transform:uppercase;padding:6px 18px;border-radius:999px;white-space:nowrap;box-shadow:0 3px 0 rgba(0,0,0,.2)}
.eh-board .wotd{transform:rotate(-1.2deg);background:#FFFDF2;border:0;border-radius:6px;box-shadow:0 10px 18px rgba(0,0,0,.25);padding:24px 20px 16px}
.eh-board .wotd::after{content:"";position:absolute;right:14px;bottom:-8px;width:60px;height:16px;background:rgba(255,255,255,.55);transform:rotate(-8deg)}
.eh-board .wotdpin{width:24px;height:24px;top:-11px;background:radial-gradient(circle at 35% 35%,#FF8FB5,#E0457A 60%,#9E2552);box-shadow:0 4px 4px rgba(0,0,0,.25)}
.eh-board .wotdk{font-size:14px;color:#A8336A}
.eh-board .wotdw{font-size:42px;line-height:1.1;color:#3A1F4F}
.eh-board .wotd p{font-size:17px;line-height:1.5;color:#2B2140}
.eh-board .wotd .mini{font-size:14px;color:#4A3F5E!important}
.eh-board .wotd .row{margin-top:8px}.eh-board .wotd .enin.wide{flex:1 1 100%}
.eh-h{margin:6px 0 -6px;font:800 23px 'Baloo 2',Nunito,sans-serif;color:#3A1F4F}
.enareas{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
@media(max-width:820px){.enareas{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.enareas .ena{border-radius:18px!important;transition:transform .15s,box-shadow .15s;border-top:5px solid #F0B6CC!important}
.enareas .ena:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(194,69,122,.15)}
.enareas .ena .ei{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#FCE4EE;font-size:24px}
.eh-prog{background:#fff;border:2px solid #F5D3E1;border-radius:20px;padding:14px 16px 16px;box-shadow:0 4px 12px rgba(194,69,122,.06)}
.eh-prog .eh-h{margin:0 0 10px}
.eh-pills{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
@media(max-width:820px){.eh-pills{grid-template-columns:repeat(2,minmax(0,1fr))}}
.eh-pills .pil{background:#FFF7FA;padding:10px 12px;border-radius:16px}
/* ---- test45 (Beti's spec 4D): English sub-pages (Get to Know, My Words, My English Path / English Rank) get the colourful,
   grouped cards of the English LiQ home instead of plain pink/white blocks. Gentle tinted cards with soft headers. ---- */
#view.tn-en:not(.tnhome) .enbody{ gap:14px }
#view.tn-en:not(.tnhome) .enbody > .r21{ background:linear-gradient(160deg,#EEF2FF,#F7F8FF)!important; border:2px solid #CFD8FA!important; border-radius:20px!important; padding:14px!important }
#view.tn-en:not(.tnhome) .enbody > .l21grp{ background:linear-gradient(160deg,#FFF8E1,#FFFDF5)!important; border:2px solid #F2DE9B!important; border-radius:20px!important; padding:14px!important }
#view.tn-en:not(.tnhome) .enbody > .ennext{ background:linear-gradient(160deg,#FDE7F1,#FFF6FA)!important; border-radius:20px!important }
#view.tn-en:not(.tnhome) .enbody > .wbstats{ background:linear-gradient(160deg,#E4F6E8,#F4FBF5)!important; border:2px solid #BFE3C8!important; border-radius:20px!important; padding:12px!important }
#view.tn-en:not(.tnhome) .enbody > .row{ background:linear-gradient(160deg,#E8F1FF,#F5F9FF)!important; border:2px solid #C9DBF7!important; border-radius:16px!important; padding:10px 14px!important }
#view.tn-en:not(.tnhome) .enbody > .k{ background:#FFE9A8!important; color:#5A3C00!important; border-radius:16px 16px 0 0!important; padding:8px 14px!important; margin-bottom:-14px!important; font-weight:800 }
#view.tn-en:not(.tnhome) .enbody > .k + .encards{ background:linear-gradient(160deg,#FFF8E1,#FFFDF5)!important; border:2px solid #F2DE9B!important; border-top:0!important; border-radius:0 0 20px 20px!important; padding:14px!important }
#view.tn-en:not(.tnhome) .enbody > .enrun{ background:linear-gradient(160deg,#F3EEFF,#FCFAFF)!important; border:2px solid #DCD2FA!important; border-radius:22px!important; padding:16px!important }
/* test45 (spec 4D): Mr. Ferenji's tip card beside the Word of the Day never crops its title or text on smaller screens:
   the title chip wraps, the text wraps, and on narrow columns the picture sits above the text. */
body.wpv #view.tn-en .tn-tip .b29tipt b{ white-space:normal!important; display:inline-block; max-width:100% }
body.wpv #view.tn-en .tn-tip .b29tipt, body.wpv #view.tn-en .tn-tip .b29tipt p{ min-width:0!important; overflow:visible!important; overflow-wrap:anywhere; text-overflow:clip!important; -webkit-line-clamp:unset!important; max-height:none!important }
body.wpv #view.tn-en .tnc.tn-tip{ overflow:visible!important; height:auto!important }
@media (max-width:1240px) and (min-width:701px){ body.wpv #view.tn-en .tn-tip .b29tip{ flex-direction:column!important; align-items:center!important; text-align:center!important } body.wpv #view.tn-en .tn-tip .b29tip img{ height:88px!important; max-height:88px!important } body.wpv #view.tn-en .tn-tip .b29tipt{ text-align:center!important } }

/* ==== liq-dash.css ==== */
/* dashboard: three tiles */
@media (min-width:900px){ body .hduo.htri{grid-template-columns:1.05fr 1fr 1fr!important} }
.henglish{position:relative;font:inherit;text-align:left;cursor:pointer;background:#F1ECFF;border:2px solid #D8CCF8;border-radius:20px;padding:12px 14px;display:flex;align-items:center;gap:14px;overflow:hidden;color:#14203F}
.henglish:hover{box-shadow:0 4px 12px rgba(122,90,200,.18)}
.henglish .hei{width:68px;height:68px;border-radius:18px;background:#E2D9FB;display:grid;place-items:center;flex:none}.henglish .hei svg{width:46px;height:46px}
.henglish .het{display:flex;flex-direction:column;min-width:0}.henglish b{font:800 28px/1.05 var(--display)}.henglish .hes{font-size:16px;font-weight:700;color:#5A4A8A}.henglish .hed{font-size:14px;font-weight:700;color:#6E6496;margin-top:4px;line-height:1.35}
.henglish .hego{margin-left:auto;width:40px;height:40px;border-radius:50%;background:#DCD0FA;color:#5A3BC0;display:grid;place-items:center;font:900 22px var(--body,inherit);flex:none}
@media (max-width:520px){.henglish{padding:10px 12px;gap:10px}.henglish .hei{width:54px;height:54px}.henglish b{font-size:24px}.henglish .hed{font-size:12.5px}}
/* footer */
.fpar{font:inherit;font-weight:800;font-size:14px;background:#fff;color:#14224F;border:0;border-radius:999px;padding:7px 14px;cursor:pointer}
/* learning path tabs + report */
.lptabs{display:flex;gap:8px;margin:0 0 12px}.lptabs button{flex:1;font:inherit;font-weight:800;font-size:16px;padding:10px 12px;border-radius:14px;border:2px solid #CFDCF5;background:#fff;color:#14224F;cursor:pointer}
.lptabs button[aria-selected="true"]{background:#2D6BE4;border-color:#2D6BE4;color:#fff}
.lr{display:grid;gap:14px;color:#14203F}.lr .k{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#2D6BE4}
.lr h2{margin:2px 0;font-size:26px}.lrsum{background:#F5F8FF;border:2px solid #CFDCF5;border-radius:18px;padding:12px 16px}.lrsum ul{margin:0;padding-left:18px;line-height:1.6}.lrnice{margin:.5em 0 0;font-weight:800;color:#1D8E46}
.lrgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lrcard{background:#fff;border:2px solid #E6E0CF;border-radius:16px;padding:10px 14px}.lrcard p{margin:.3em 0}.lrcard ul{margin:.2em 0;padding-left:18px}
.lrtrend{display:grid;grid-template-columns:70px 1fr 50px;gap:8px;align-items:center;margin:4px 0}.lrtrend i{display:block;height:12px;background:#2D6BE4;border-radius:999px}
.lrtopics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lrt{border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;border:2px solid}
.lrt.mastered{background:#FFF6DB;border-color:#F1D27A}.lrt.completed{background:#E9F7EE;border-color:#A9DDBB}.lrt.developing{background:#EAF2FF;border-color:#BFD3F5}.lrt.review{background:#FFEDE8;border-color:#F3C2B4}
.lrtl{font:inherit;font-size:13.5px;font-weight:700;text-align:left;background:#fff;border:1.5px solid rgba(0,0,0,.08);border-radius:10px;padding:6px 8px;cursor:pointer;color:#14203F}
.lrmission,.lrshulka{display:flex;gap:14px;align-items:center;border-radius:20px;padding:12px 16px}.lrmission{background:#EAF7EE;border:2px solid #A9DDBB}.lrshulka{background:#F3F5F4;border:2px solid #DDE4E0}
.lrmission h3{margin:2px 0 4px}.lrmission p,.lrshulka p{margin:.25em 0}.lrshulka ul{margin:.2em 0;padding-left:18px;line-height:1.5}.lrshulka .k{color:#16845B}
.lrmission .bil{flex:none}
@media(max-width:700px){.lrgrid{grid-template-columns:1fr}.lrtopics{grid-template-columns:1fr 1fr}.lrmission,.lrshulka{flex-direction:column;align-items:flex-start}}
/* guest link */
.whopage{position:relative}.guestlink{position:absolute;top:10px;right:12px;z-index:5;font-weight:800;font-size:14px;background:#fff;color:#1F3FA8;border:2px solid #CFDCF5;border-radius:999px;padding:6px 12px;text-decoration:none;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.mlguest{position:fixed;top:12px;right:12px;z-index:100000;font:800 14px Nunito,system-ui,sans-serif;background:#fff;color:#1F3FA8;border:2px solid #CFDCF5;border-radius:999px;padding:7px 13px;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.lr{text-align:left}.lr .lrtop,.lr .lrsum,.lr .lrcard{text-align:left}

/* Investment News tile (middle of the home top row) */
.hinvest{position:relative;font:inherit;text-align:left;cursor:pointer;background:linear-gradient(120deg,#F3F5F4,#E6F1EB);border:2px solid #BFD8CA;border-radius:20px;padding:10px 14px;display:flex;align-items:center;gap:12px;overflow:hidden;color:#14203F;min-height:110px}
.hinvest:hover{box-shadow:0 4px 12px rgba(22,132,91,.18)}
.hinvest .hii{width:72px;height:80px;flex:none;display:grid;place-items:center}.hinvest .hii img{max-width:100%;max-height:100%;object-fit:contain}
.hinvest .hit{display:flex;flex-direction:column;min-width:0;gap:2px}.hinvest .hik{font-size:13px;font-weight:800;letter-spacing:.05em;color:#B08A3A;text-transform:uppercase}
.hinvest b{font:800 22px/1.15 var(--display);color:#0F6B47}.hinvest .hip{font-size:14.5px;font-weight:700;color:#4E5E57;line-height:1.3}
.hinvest .higo{margin-left:auto;width:40px;height:40px;border-radius:50%;background:#16845B;color:#fff;display:grid;place-items:center;font:900 22px var(--body,inherit);flex:none}
/* unit name at the top of Now learning */
.dash .now .nunit{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;font:inherit;text-align:left;cursor:pointer;background:#E9F6EC;border:2px solid #C4E6CD;border-radius:14px;padding:6px 12px;margin-bottom:8px;color:#14203F}
.dash .now .nunit span{font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#17803F}.dash .now .nunit b{font-size:15px;font-weight:800}.dash .now .nunit i{margin-left:auto;font-style:normal;font-weight:900;color:#17803F;font-size:18px}
@media (max-width:520px){.hinvest{padding:8px 10px;min-height:92px}.hinvest .hii{width:56px;height:64px}.hinvest b{font-size:19px}.hinvest .hip{font-size:13px}.dash .now .nunit b{font-size:13.5px}}
.trinv{display:grid;gap:10px}
.avatar.avdef{display:inline-grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#FFD66B,#F2A900);color:#5A3A00;font-weight:900;font-family:Nunito,system-ui,sans-serif;line-height:1}
.phrest{margin:8px 0;padding:10px 12px;border:2px solid var(--line,#E5DCC3);border-radius:14px;background:var(--paper,#FFFBF0)}
.phlist{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.phbtn{display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid var(--line,#E5DCC3);border-radius:12px;background:#fff;padding:4px;cursor:pointer;font:inherit}
.phbtn img{width:56px;height:56px;border-radius:50%;object-fit:cover}
/* v14: English Zone tile in light pink with Mr. Ferenji and a bold arrow */
.henglish{background:linear-gradient(120deg,#FFF3F7,#FCE4EE)!important;border-color:#F0B6CC!important}
.henglish:hover{box-shadow:0 4px 12px rgba(194,69,122,.20)!important}
.henglish .hei{width:72px!important;height:80px!important;background:none!important;border-radius:0!important}
.henglish .hei img{max-width:100%;max-height:100%;object-fit:contain}
.henglish b{color:#A8336A}.henglish .hes{color:#7A3A5C!important}.henglish .hed{color:#6B4A5E!important}
.henglish .hego{background:#C2457A!important;color:#fff!important}
@media (max-width:520px){.henglish .hei{width:56px!important;height:64px!important}}
/* v14: Now learning card - unit title band */
.dash .now{overflow:hidden}
.dash .now .nunit{box-sizing:border-box;display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;column-gap:10px;row-gap:4px;width:auto!important;align-self:stretch;margin:-14px -16px 14px!important;padding:12px 16px!important;border:0!important;border-bottom:2px solid #B9CFF5!important;border-radius:0!important;background:linear-gradient(90deg,#DCE8FF,#EEF4FF)!important;color:#14203F;text-align:left;cursor:pointer;font:inherit}
.dash .now .nunit span{grid-column:1;font:800 12.5px/1 Nunito,system-ui,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;color:#fff!important;background:#2D6BE4;border-radius:999px;padding:6px 11px}
.dash .now .nunit i{grid-column:3;font:800 14px Nunito,system-ui,sans-serif!important;font-style:normal;color:#2D6BE4!important;white-space:nowrap;margin:0!important}
.dash .now .nunit b{grid-column:1 / -1;grid-row:2;font:800 20px/1.2 'Baloo 2',Nunito,system-ui,sans-serif!important;color:#14203F}
.dash .now .nunit:hover b,.dash .now .nunit:focus-visible b{color:#2D6BE4}
@media (max-width:520px){.dash .now .nunit b{font-size:17px!important}}
/* v14: My Learning Report - full strength, clear and readable (the report shared the rank-ladder class .lr, which fades to 60%) */
.lr.lrrep{opacity:1!important;border:0!important;background:none!important;padding:0!important;display:grid!important;align-items:stretch!important;text-align:left!important;font-size:17px;line-height:1.55;color:#14203F}
.lr.lrrep .k{font-size:14px;color:#1F4FBF}
.lr.lrrep h2{font-size:30px;color:#14203F}
.lr.lrrep .lrsum{background:#fff;border-color:#BFD0F2}
.lr.lrrep .lrsum,.lr.lrrep .lrsum li,.lr.lrrep .lrcard p,.lr.lrrep .lrcard li{color:#14203F}
.lr.lrrep .mini{color:#3D4A6B!important}
.lr.lrrep .lrtl{font-size:15px;font-weight:800}
.lr.lrrep .lrt span,.lr.lrrep .lrt p{color:#2A3656!important;font-weight:700}
.lr.lrrep .lrnice{color:#146B34}
.lr.lrrep .lrshulka .k{color:#0F6B45}
.lrcard.lrdc,.lrcard.lrint{grid-column:1 / -1}
.lrdiff{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}
@media(max-width:600px){.lrdiff{grid-template-columns:1fr}}
.lrdiff .ddr{display:flex;flex-direction:column;gap:8px;background:#F7F9FE;border:2px solid #E3E9F6;border-radius:14px;padding:12px 14px;text-align:left}
.lrdiff .dtop{display:flex;justify-content:space-between;align-items:center;width:100%}
.lrdiff .dtop b{font:800 17px Nunito,sans-serif;color:#14203F}
.lrdiff .dtop b.dpc{font:800 28px/1 'Baloo 2',Nunito,sans-serif}
.lrdiff .dbar{display:block;width:100%;height:14px;border-radius:99px;background:#E1E7F3;overflow:hidden}.lrdiff .dbar i{display:block;height:100%;border-radius:99px}
.lrdiff .dct{font-size:13.5px;font-weight:700;color:#3D4A6B}
.lrcard.lrint{background:#FFFBEA;border-color:#F2D27A}.lrcard.lrint ul{margin:.3em 0;padding-left:18px}

/* ==== liq-v14.css ==== */
/* ===== Math LiQ v14 ===== */
/* confirm box (cash out) */
.v14modal{position:fixed;inset:0;z-index:200;background:rgba(20,32,63,.45);display:grid;place-items:center;padding:16px}
.v14card{background:#fff;border-radius:22px;max-width:420px;width:100%;padding:22px 20px 18px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);border:3px solid #F2D27A}
.v14card .v14ic{font-size:44px;line-height:1}.v14card h2{margin:6px 0 4px;font:800 26px 'Baloo 2',Nunito,sans-serif;color:#14203F}
.v14card p{margin:0 0 14px;font-size:17px;line-height:1.5;color:#2A3656}
.v14btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.v14btns .btn{min-width:150px}

/* one sound button style everywhere (round, light, thin outline in the companion colour) */
.sndb{--sc:#17803F;--sb:#B5DEC3;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.85);border:2px solid var(--sb);color:var(--sc);cursor:pointer;padding:0;flex:none;position:relative;transition:transform .12s,box-shadow .12s;font:inherit}
.sndb svg{width:22px;height:22px}
.sndb:hover{transform:scale(1.06);box-shadow:0 3px 10px rgba(0,0,0,.10)}
.sndb:focus-visible{outline:3px solid #7A5AC8;outline-offset:2px}
.sndb.playing{background:var(--sc);color:#fff;border-color:var(--sc)}
.sndb.playing .sbwave{position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--sc);opacity:.5;animation:sndpulse 1.2s ease-out infinite}
@keyframes sndpulse{from{transform:scale(.9);opacity:.6}to{transform:scale(1.25);opacity:0}}
@media (prefers-reduced-motion:reduce){.sndb.playing .sbwave{animation:none}}
.sndb.muted{color:#7A8299;border-color:#D5DAE6}
.sndb.ferenji{--sc:#C2457A;--sb:#F0B6CC}.sndb.shulka{--sc:#0F6B47;--sb:#BFDCCB}.sndb.bilcho{--sc:#17803F;--sb:#B5DEC3}
/* the button sits in the top-right corner of each companion box */
.hasSnd{position:relative}
.hasSnd>.sndb.comp{position:absolute;top:10px;right:10px;z-index:2}
.bil1.hasSnd,.bilbox.hasSnd,.fsay.hasSnd,.shsay.hasSnd,.enfb.hasSnd{padding-right:62px!important}
/* inline listen buttons (English): same look, with an optional label */
.sndb.inl{--sc:#C2457A;--sb:#F0B6CC;width:auto;min-width:44px;height:40px;border-radius:999px;padding:0 12px 0 10px;display:inline-flex;gap:6px;align-items:center;font-weight:800;font-size:14.5px}
.sndb.inl.playing{color:#fff}
.sndb.inl .sndl{white-space:nowrap}
.lab .sndb.inl,body[data-view="lab"] .sndb.inl{--sc:#17803F;--sb:#B5DEC3}

/* footer dock: one slim bar at the bottom of every page */
.hbdock{box-sizing:border-box;width:100%;margin:18px 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;border-radius:18px;background:#fff;border:2px solid #E3ECFF;box-shadow:0 4px 14px rgba(20,34,79,.08);--hb:#2D6BE4}
.hbdock.labbar{--hb:#17803F;border-color:#CDEBD6}.hbdock.redbar{--hb:#C2453A;border-color:#F6D2CC}.hbdock.pinkbar{--hb:#C2457A;border-color:#F5D3E1}.hbdock.graybar{--hb:#16845B;border-color:#CFE5DA}
html body .hbdock .homebar{width:auto!important;margin:0!important;display:inline-flex!important;align-items:center;gap:10px;padding:5px 18px 5px 5px!important;border-radius:14px!important;background:var(--hb)!important;border:0!important;box-shadow:0 3px 0 rgba(0,0,0,.14)!important;color:#fff!important;transition:transform .12s}
html body .hbdock .homebar:hover{transform:translateY(-1px)}
html body .hbdock .homebar::before{content:"←";color:#fff;font-weight:900;font-size:18px;margin-left:8px}
html body .hbdock .homebar .hi{width:40px!important;height:40px!important;font-size:20px!important;background:rgba(255,255,255,.22)!important;border-radius:50%}
html body .hbdock .homebar b{font-size:16.5px!important;color:#fff!important}
html body .hbdock .homebar small{display:none!important}
.hblinks{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.hbl{font:inherit;font-size:15px;font-weight:800;color:#14203F;padding:8px 14px;border-radius:12px;background:#F4F6FB;border:1.5px solid #E3E8F3;cursor:pointer}
.hbl:hover{background:#E9EEF8}
/* Game Zone dock */
html body .labbar2.labdock{background:#fff!important;border:2px solid #CDEBD6!important;box-shadow:0 4px 14px rgba(20,34,79,.08)!important;border-radius:18px!important;padding:10px 12px!important;color:#14203F!important;--hb:#17803F}
html body .labbar2.labdock .lblbtn{display:inline-flex!important;align-items:center;gap:10px;background:#17803F!important;border-radius:14px;padding:5px 18px 5px 5px!important;box-shadow:0 3px 0 rgba(0,0,0,.14)}
html body .labbar2.labdock .lblbtn::before{content:"←";color:#fff;font-weight:900;font-size:18px;margin-left:8px}
html body .labbar2.labdock .hi{width:40px!important;height:40px!important;font-size:20px!important;background:rgba(255,255,255,.22)!important}
html body .labbar2.labdock .lbl small{display:none!important}html body .labbar2.labdock .lbl b{font-size:16.5px!important;color:#fff!important}
html body .labbar2.labdock nav{margin-left:auto;display:flex!important;gap:6px!important;flex:none!important;order:0!important;flex-basis:auto!important;justify-content:flex-end}
html body .labbar2.labdock .lnk{font-size:15px!important;text-decoration:none!important;color:#14203F!important;padding:8px 14px!important;border-radius:12px;background:#F4F6FB;border:1.5px solid #E3E8F3;opacity:1!important;font-weight:800;margin:0!important}
html body .labbar2.labdock .lnk[aria-current=true]{background:#DDF1E3!important;color:#17803F!important;border-color:#17803F}
@media(max-width:600px){.hblinks,html body .labbar2.labdock nav{margin-left:0;width:100%;justify-content:flex-start}}

/* Star page: Investment panel at the top, dream panel at the bottom */
.cxp.inv.intop{min-height:0;padding:12px 14px!important}
.cxp.inv.intop .owl{max-height:96px;width:auto}
.p.plink.inbottom{min-height:100%}
/* designed emblems */
.embw{display:inline-grid;place-items:center;line-height:0}
.emb{display:block;filter:drop-shadow(0 4px 6px rgba(0,0,0,.18))}
.emb.locked{filter:grayscale(1);opacity:.75}
.emb.got.top{filter:drop-shadow(0 0 10px rgba(245,211,106,.9))}
.irk .embw,.erk .embw{margin-bottom:2px}
.erk.on .emb.got,.irk.on .emb.got{transform:scale(1.06)}
.fvoice{margin-left:12px;font:inherit;font-weight:800;font-size:14px;color:#14203F;background:#fff;border:0;border-radius:999px;padding:5px 12px;cursor:pointer}
.lr.lrrep .lrtop{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sndb.inl.bilcho{--sc:#17803F;--sb:#B5DEC3}
/* language picker in the middle of the bottom blue bar */
#mlfoot .frow{position:relative}
.flang{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5}
.flangb{font:inherit;font-weight:800;font-size:14px;color:#fff;background:rgba(255,255,255,.14);border:1.5px solid rgba(255,255,255,.45);border-radius:999px;padding:5px 14px;cursor:pointer;white-space:nowrap}
.flangb:hover{background:rgba(255,255,255,.24)}
.flangm{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#fff;border-radius:14px;box-shadow:0 10px 24px rgba(0,0,0,.25);padding:6px;display:flex;flex-direction:column;min-width:150px}
.flangm[hidden]{display:none}
.flangm button{font:inherit;font-weight:800;font-size:16px;text-align:left;background:none;border:0;border-radius:10px;padding:9px 12px;cursor:pointer;color:#14203F}
.flangm button:hover{background:#EEF3FF}.flangm button[aria-checked="true"]{background:#2D6BE4;color:#fff}
.flangm button[data-lang="am"]{font-family:'Noto Sans Ethiopic',Nunito,sans-serif}
@media(max-width:700px){.flang{position:static;transform:none;margin:6px auto 0;order:5;flex-basis:100%;text-align:center}.flangm{left:50%}}
/* Amharic: make sure every text has an Ethiopic font */
html[data-lang="am"] body,html[data-lang="am"] button,html[data-lang="am"] input{font-family:Nunito,'Noto Sans Ethiopic',system-ui,sans-serif}
html[data-lang="am"] h1,html[data-lang="am"] h2,html[data-lang="am"] h3,html[data-lang="am"] b{font-family:'Baloo 2',Nunito,'Noto Sans Ethiopic',sans-serif}
/* v15: answer choices with fractions read as one line of text */
button.choice>.chtx{display:inline;flex:1 1 auto;min-width:0;text-align:left;line-height:1.5}
.qbox.grow{height:auto}
/* Units 4–7 diagrams */
.u47pv{border-collapse:collapse;margin:6px auto;font-weight:800}
.u47pv th,.u47pv td{border:2px solid currentColor;padding:6px 10px;text-align:center;min-width:34px;opacity:.95}
.u47pv th{font-size:12px;font-weight:800}
.u47div{font:700 17px/1.45 ui-monospace,Menlo,Consolas,monospace;margin:6px 0;white-space:pre;background:transparent;color:inherit}
.u47shapes{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.sl-l .u47div,.qleft .u47div,.sl-l .u47pv,.qleft .u47pv{color:#FFF3D0}
.sl-r .u47div,.qright .u47div{color:#1F2747}
/* companion reminder card */
.cnudge{position:fixed;left:50%;bottom:86px;transform:translate(-50%,20px);z-index:150;display:flex;gap:12px;align-items:flex-end;max-width:min(520px,calc(100vw - 32px));background:#E9F8EE;border:3px solid #7BC892;border-radius:20px;padding:10px 44px 12px 10px;box-shadow:0 12px 30px rgba(20,34,79,.22);opacity:0;transition:opacity .25s,transform .25s}
.cnudge.show{opacity:1;transform:translate(-50%,0)}
.cnudge img{height:84px;width:auto;flex:none}
.cnudge .cnk{font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#17803F}
.cnudge b{display:block;font:800 19px 'Baloo 2',Nunito,sans-serif;color:#14203F}
.cnudge p{margin:2px 0 0;font-size:15.5px;color:#2A3656;line-height:1.4}
.cnudge .cnx{position:absolute;top:8px;right:10px;border:0;background:none;font-size:16px;cursor:pointer;color:#5E6584}
.cnudge.ferenji{background:#FDEEF4;border-color:#E9A2C0}.cnudge.ferenji .cnk{color:#C2457A}
.cnudge.shulka{background:#EAF4EE;border-color:#8FC3A5}.cnudge.shulka .cnk{color:#0F6B47}
.cnudge.sinzro{background:#EAF2FF;border-color:#8DB2F0}.cnudge.sinzro .cnk{color:#2D6BE4}
@media (prefers-reduced-motion:reduce){.cnudge{transition:none}}
.sndb.sinzro{--sc:#2D6BE4;--sb:#B8CDF5}
.cnudge.hasSnd{padding-right:96px!important}.cnudge>.sndb.comp{top:8px;right:40px}
/* parent: time & habits */
.habits h3{margin:10px 0 4px;font-size:17px}
.hkpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.hkpi>div{background:#F4F6FB;border-radius:14px;padding:10px;text-align:center}.hkpi b{display:block;font:800 22px 'Baloo 2',Nunito,sans-serif;color:#14203F}.hkpi span{font-size:13px;color:#5E6584;font-weight:700}
.hlegend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px;font-size:13.5px}.hbk{display:inline-flex;align-items:center;gap:6px}.hbk i{width:12px;height:12px;border-radius:3px;display:inline-block}.hbk small{color:#7A8299}
.htips{margin:0;padding-left:20px}.htips li{margin:4px 0}

/* ==== liq-x.css ==== */
/* ===== Math LiQ · new areas: Life LiQ, Star Card & Wish Shop, Credit LiQ, Parent Inbox, area themes ===== */
/* ---------- area themes (page frame colour only; the page structure stays the same everywhere) ---------- */
body[data-area="life"] .pg.journal:not(.labg):not(.redg){background:linear-gradient(180deg,#EEF6FF,#DDEBFF)!important;border-color:#B9D3FA!important;box-shadow:0 10px 24px rgba(37,99,235,.14)!important}
body[data-area="life"] .pg.journal::before{border-color:rgba(37,99,235,.28)!important}
body[data-area="bank"] .pg.journal:not(.labg):not(.redg){background:linear-gradient(180deg,#F4F7FD,#E7EEFA)!important;border-color:#C9D6EE!important;box-shadow:0 10px 24px rgba(43,79,146,.14)!important}
body[data-area="bank"] .pg.journal::before{border-color:rgba(226,180,76,.55)!important}
body[data-area="credit"] .pg.journal:not(.labg):not(.redg){background:linear-gradient(180deg,#FBF4EA,#F2E4D2)!important;border-color:#DCC3A4!important;box-shadow:0 10px 24px rgba(112,69,47,.16)!important}
body[data-area="credit"] .pg.journal::before{border-color:rgba(112,69,47,.3)!important}
body[data-area="invest"] .pg.journal.grayg:not(.labg):not(.redg){background:linear-gradient(180deg,#F4F6F5,#E6ECE9)!important;border-color:#C9D6CF!important}
body[data-area="invest"] .pg.journal.grayg::before{border-color:rgba(199,166,91,.55)!important}
body[data-area="english"] .pg.journal:not(.labg):not(.redg){background:linear-gradient(180deg,#FFF3F8,#FCE3EE)!important;border-color:#F3C2D8!important}
body[data-area="games"] .pg.journal{background:linear-gradient(180deg,#ECF9EF,#D9F2E0)!important;border-color:#A9DDB8!important}
.appsav.ftart{height:auto!important;aspect-ratio:2172/372;object-fit:cover;max-height:150px;border-radius:16px;opacity:1}
@media(max-width:600px){.appsav.ftart{max-height:70px;border-radius:10px}}

/* ---------- home banners (same shape as the Math Lab banner) ---------- */
.lifep,.shopp{grid-column:1/-1;display:flex!important;align-items:center;gap:14px;color:#fff!important}
.lifep{background:linear-gradient(135deg,#1D4ED8,#2563EB 55%,#0EA5E9)!important;border-color:#1D4ED8!important}
.shopp{background:linear-gradient(135deg,#2B4F92,#3D63A8 60%,#C9A04A)!important;border-color:#2B4F92!important}
.lifep .lpb,.shopp .lpb{flex:1;display:flex;flex-direction:column;min-width:0}
.lifep .lpb b,.shopp .lpb b{font-size:20px;font-family:var(--display);color:#FFE08A}
.lifep .k,.shopp .k{color:#CFE5FF!important}.lifep .mini,.shopp .mini{color:#E3EEFF}
.lifep .lpgo,.shopp .lpgo{background:#fff;color:#1D4ED8;font-weight:800;border-radius:999px;padding:8px 14px;white-space:nowrap}
.shopp .lpgo{color:#2B4F92}
.lfhi{height:64px;width:auto;flex:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.25))}
.shpi{font-size:40px;flex:none}
@media(max-width:600px){.lifep .lpgo,.shopp .lpgo{display:none}.lfhi{height:48px}}

/* ---------- Life LiQ ---------- */
.lfwrap{display:flex;flex-direction:column;gap:14px}
.lfnav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.lfnav button{font:inherit;font-weight:800;border:2px solid #C9DBF7;background:#fff;color:#1E3A8A;border-radius:999px;padding:8px 16px;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.lfnav button[aria-current="true"]{background:#2563EB;border-color:#2563EB;color:#fff}
.snsay{display:flex;gap:14px;align-items:center;background:#fff;border:2px solid #CFE0FA;border-radius:20px;padding:12px 16px}
.snsay .snimg{height:110px;width:auto;flex:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.12))}
.snsay.sm .snimg{height:70px}
.snsay .snb{flex:1;min-width:0;background:#EEF5FF;border:2px solid #CFE0FA;border-radius:16px;padding:10px 14px}
.snsay .snk{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#2563EB;margin-bottom:4px}
.snsay h3{margin:.1em 0 .3em}.snsay p{margin:.25em 0}
.lfbig{font-size:20px;font-weight:700;line-height:1.4}
.lfq{font-size:19px;font-weight:700;line-height:1.4;margin:.2em 0}
.lfmission{border:3px solid var(--pc);border-radius:22px;padding:16px 18px;background:#fff;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.lfmission h2{margin:0;font-size:26px}.lfmk{font-weight:800;color:var(--pc);font-size:14px}
.btn.big{font-size:18px;padding:12px 22px}
.lfst{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:800;color:#fff;background:var(--c)}
.lfst.sm{font-size:11px}
.lffam{background:#FFF8E6;border:2px dashed #E8C66A;border-radius:16px;padding:10px 14px}.lffam p{margin:.3em 0}
.lfmtop{display:flex;align-items:center;gap:10px;background:var(--pc);color:#fff;border-radius:16px;padding:10px 14px}
.lfmtop span{font-size:13px;font-weight:700;opacity:.9}.lfmtop b{flex:1;font-size:18px}
.lfx{background:rgba(255,255,255,.2);color:#fff;border:0;border-radius:50%;width:34px;height:34px;font-size:18px;cursor:pointer}
.lfmbody{display:flex;flex-direction:column;gap:12px;min-height:340px}
.lfopts{display:grid;gap:10px}
.lfopt{font:inherit;font-size:17px;font-weight:700;text-align:left;background:#fff;border:2px solid #C9DBF7;border-radius:16px;padding:14px 16px;cursor:pointer;color:#14224F}
.lfopt:hover,.lfopt:focus-visible{border-color:#2563EB;background:#F3F8FF}
.lfrow{justify-content:center;gap:10px}
.lfsort{display:grid;gap:10px}
.lfsc{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;background:#fff;border:2px solid #DCE7F8;border-radius:14px;padding:10px 12px}
.lfsc>span{font-weight:700;flex:1 1 220px}.lfsc div{display:flex;gap:6px;flex-wrap:wrap}
.lfsc button{font:inherit;font-size:14px;font-weight:700;border:2px solid #C9DBF7;background:#F8FBFF;border-radius:12px;padding:6px 10px;cursor:pointer}
.lfsc button[aria-pressed="true"]{background:#2563EB;color:#fff;border-color:#2563EB}
.lford{background:#fff;border:2px solid #DCE7F8;border-radius:14px;padding:10px 10px 10px 34px;min-height:40px;margin:0;font-weight:700}
.lfpaths{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.lfpath{font:inherit;text-align:left;background:#fff;border:3px solid var(--pc);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer;color:#14224F}
.lfpath b{font-size:18px}.lfpath.lock{opacity:.6;cursor:default;border-style:dashed}
.lfpi{font-size:34px}
.lfbar{display:block;height:8px;background:#E5EDF8;border-radius:99px;overflow:hidden;width:100%}.lfbar i{display:block;height:100%;background:var(--pc,#2563EB);border-radius:99px}
.lfpathh{display:flex;align-items:center;gap:12px}.lfpathh h2{margin:0;color:var(--pc)}
.lfwave{background:#fff;border:2px solid #DCE7F8;border-radius:18px;padding:12px}.lfwave h3{margin:0 0 8px}.lfwave.lock{opacity:.65}
.lfskills{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.lfskill{font:inherit;text-align:left;background:#F8FBFF;border:2px solid #DCE7F8;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;cursor:pointer;color:#14224F}
.lfskill:disabled{cursor:default}
.lfjk{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.lfjk div{background:#fff;border:2px solid #DCE7F8;border-radius:16px;padding:12px;text-align:center}.lfjk b{display:block;font-size:26px;color:#1D4ED8}.lfjk span{font-size:13px;font-weight:700}
.lfjp{background:#fff;border:2px solid #DCE7F8;border-radius:18px;padding:12px}.lfjp h3{margin:0 0 8px}
.lfbadges{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.lfbadge{border:2px dashed #C9DBF7;border-radius:16px;padding:8px;text-align:center;display:flex;flex-direction:column;gap:2px;font-size:13px;opacity:.7}
.lfbadge.got{border:2px solid #E2B44C;background:#FFF9E8;opacity:1}.lfbm{font-size:28px}
.lfrev{margin:0;padding-left:20px}
.lfppaths{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.lfprow{justify-content:space-between;gap:10px;margin:6px 0}
.lffam2 textarea{font:inherit;padding:9px;border-radius:12px;border:2px solid var(--line);background:var(--paper);color:var(--ink);width:100%}
.lffam2 input{width:100%}

/* ---------- Star Card, Wish Shop ---------- */
.lxwrap{display:flex;flex-direction:column;gap:14px}
.lxcard{position:relative;width:100%;max-width:440px;aspect-ratio:856/540;perspective:1200px;cursor:pointer;margin:0 auto}
.lxcard.sm{max-width:260px}
.lxcin{position:absolute;inset:0;transition:transform .6s;transform-style:preserve-3d}
.lxcard.flipped .lxcin{transform:rotateY(180deg)}
.lxcf,.lxcb{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6%;box-shadow:0 14px 28px rgba(20,34,79,.28);overflow:hidden}
.lxcb{transform:rotateY(180deg)}
.lxcardsvg{display:block;width:100%;height:100%}
.lxflip{position:absolute;bottom:-26px;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:#5A6B8C}
.lxgate,.lxcardgrid{display:grid;grid-template-columns:minmax(260px,1fr) 1fr;gap:26px;align-items:center}
.lxcardgrid{align-items:start}
@media(max-width:760px){.lxgate,.lxcardgrid{grid-template-columns:1fr}}
.lxbalc .big{font-size:40px;font-weight:800;color:#2B4F92}
.lxtx{width:100%;border-collapse:collapse;font-size:14px}.lxtx td,.lxtx th{padding:6px 8px;border-bottom:1px solid #E6ECF5;text-align:left}.lxtx .r{text-align:right}
.lxempty{text-align:center;padding:26px;border:2px dashed #C9D6EE;border-radius:18px;background:#fff}.lxempty span{font-size:44px;display:block}
.shnav .shw{margin-left:auto;font-weight:800;color:#2B4F92}
.shnav button[aria-current="true"]{background:#2B4F92;border-color:#2B4F92}
.shgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.shcard{background:#fff;border:2px solid #D9E3F3;border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.shcard.gift{border-color:#E2B44C;background:#FFFBEF}
.shimg{width:120px;height:120px;object-fit:contain;border-radius:12px;background:#F4F7FC}
.shimg.ph{display:flex;align-items:center;justify-content:center;font-size:54px}
.shimg.sm{width:48px;height:48px;font-size:26px}
.shn{font-size:15px;line-height:1.25}
.shp{font-weight:800;color:#B07D16;font-size:18px}.shgift{font-weight:800;color:#B07D16}
.shsug .row{gap:8px}.shsug input{flex:1 1 180px;font:inherit;padding:8px;border-radius:10px;border:2px solid var(--line)}
.lxbalrow{display:flex;gap:10px;flex-wrap:wrap}.lxbalrow div{flex:1 1 140px;background:#fff;border:2px solid #D9E3F3;border-radius:14px;padding:10px;text-align:center}.lxbalrow span{display:block;font-size:12px;font-weight:700;color:#5A6B8C}.lxbalrow b{font-size:22px;color:#2B4F92}.lxbalrow b.neg{color:#C2410C}
.shpay{gap:10px;justify-content:center}
.shcart tr.tot td{border-top:2px solid #2B4F92}
.lxres{border-radius:16px;padding:12px 14px;border:2px solid}.lxres.ok{background:#ECFDF3;border-color:#86D7A4}.lxres.bad{background:#FFF1EC;border-color:#F3B9A3}
.lxbal{width:100%;border-collapse:collapse;margin:6px 0}.lxbal td{padding:5px 2px;border-bottom:1px dashed #D9E3F3}.lxbal .r{text-align:right}.lxbal tr.tot td{font-weight:800;border-bottom:0;border-top:2px solid #2B4F92}
.shord{display:flex;flex-direction:column;gap:6px}
.shst{font-size:13px;font-weight:800;border-radius:999px;padding:3px 10px;background:#EEF2F9;color:#2B4F92}
.shst.delivered{background:#E8F7EE;color:#16803C}.shst.declined,.shst.cancelled{background:#FDEEEA;color:#B4421F}
.shflow{display:flex;align-items:center;gap:4px}.shflow span{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#EEF2F9;filter:grayscale(1);opacity:.5}.shflow span.on{filter:none;opacity:1;background:#FFF4D6}.shflow i{flex:1;height:3px;background:#D9E3F3;max-width:40px}
.shform .grid2{gap:10px}
.lxbadge{display:inline-block;background:#E5533D;color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;margin-left:4px}
.lxinbox{display:flex;flex-direction:column;gap:8px}
.lxin{display:flex;gap:12px;align-items:center;background:#fff;border:2px solid #E3E8F2;border-radius:16px;padding:10px 12px;flex-wrap:wrap}
.lxin>div:nth-child(2){flex:1 1 240px}.lxin p{margin:.2em 0 0}.lxini{font-size:28px}
/* PIN pad / afford dialog */
.lxpad{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px}
.lxpadc{position:relative;background:#fff;border-radius:22px;padding:20px;max-width:420px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;color:#14224F}
.lxpadh{font-size:20px;font-weight:800;padding-right:30px}
.lxx{position:absolute;top:12px;right:12px;border:0;background:#EEF2F9;border-radius:50%;width:32px;height:32px;cursor:pointer;font-size:16px}
.lxpadf{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.lxpadf input{font-size:24px;letter-spacing:.4em;width:140px;text-align:center}
.lxpadf .field{flex:1}
/* ---------- Credit LiQ ---------- */
.crwrap .lfnav button[aria-current="true"]{background:#70452F;border-color:#70452F}
.crwrap .lfnav button{border-color:#E2CDB4;color:#4E2F1F}
.crsay .shb{background:#FBF3E8!important;border-color:#E8D3B8!important}.crsay .shk{color:#70452F!important}
.crsteps{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:700px){.crsteps{grid-template-columns:1fr}}
.crstep{background:#fff;border:2px solid #E8D3B8;border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}.crstep.done{border-color:#86D7A4;background:#F4FBF6}
.crk{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}.crk div{background:#fff;border:2px solid #E8D3B8;border-radius:16px;padding:10px;text-align:center}.crk span{display:block;font-size:12px;font-weight:700;color:#7A5A44}.crk b{font-size:24px;color:#70452F}
.crg{width:100%;max-width:260px;display:block;margin:0 auto}
.crpay{display:grid;gap:10px}.crpay .btn{display:flex;flex-direction:column;align-items:flex-start;text-align:left}.crpay small{font-weight:600;opacity:.85}
.crles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.acnav .accr{background:#70452F!important;color:#fff!important;border-color:#70452F!important}
.entc{text-align:left;cursor:pointer;font:inherit}
.srcl.life{background:#E3F0FF;color:#1D4ED8}.srcl.cred{background:#F5E9DC;color:#70452F}
@media(max-width:600px){.snsay{flex-direction:column;align-items:stretch}.snsay .snimg{height:80px;align-self:center}.lfjk{grid-template-columns:1fr 1fr 1fr}.lfjk b{font-size:20px}}
.pgrp{grid-template-columns:repeat(5,1fr)!important}
.pgrp .lxbadge{position:absolute;top:4px;right:8px;margin:0}
@media(max-width:600px){.pgrp{grid-template-columns:repeat(3,1fr)!important}.pgrp button{font-size:13px}}
.crwrap .lfnav button[aria-current="true"]{color:#fff!important}
.shnav button[aria-current="true"]{color:#fff!important}
@media(max-width:600px){.lfmtop{flex-wrap:wrap}.lfmtop span{width:100%;order:0}.lfmtop b{font-size:16px;order:1}.lfmtop .lfx{order:2}}
/* ===== one tab-button shape everywhere (the Investment LiQ style): equal-width rounded boxes, icon + label, filled when chosen.
   Each area keeps its own colour for the chosen button. ===== */
.psub,.wtabs,.lfnav{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin:2px 0 12px!important;padding:0!important}
.psub button,.wtabs button,.lfnav button{flex:1 1 110px!important;display:flex!important;gap:6px;align-items:center;justify-content:center;text-align:center;font:inherit!important;font-weight:800!important;font-size:15px!important;padding:10px 12px!important;border-radius:14px!important;border:2px solid var(--tabl,#DDE4E0)!important;background:#fff!important;color:#26332E!important;cursor:pointer;line-height:1.25}
.psub button[aria-current="true"],.wtabs button[aria-selected="true"],.lfnav button[aria-current="true"]{background:var(--tabc,#2F6BDE)!important;border-color:var(--tabc,#2F6BDE)!important;color:#fff!important}
.psub{--tabc:#2F6BDE;--tabl:#E3CF9E}
.wtabs{--tabc:#2D6BE4;--tabl:#CFDCF5}
.lfnav{--tabc:#2563EB;--tabl:#C9DBF7}
.shnav{--tabc:#2B4F92;--tabl:#C9D6EE}
.crnav{--tabc:#70452F;--tabl:#E2CDB4}
.shnav .shw{flex:0 0 auto;align-self:center;margin-left:4px}
@media(max-width:600px){.psub button,.wtabs button,.lfnav button{flex:1 1 44%!important;font-size:13px!important;padding:9px 8px!important}}
.bankdash > .row:first-child{flex-wrap:wrap}.bankdash > .row:first-child .wtabs{flex:1 1 100%}
/* chosen tab = the strong version of each page's own colour */
.psub{--tabc:#B83A30;--tabl:#F4CFC8}
.wtabs{--tabc:#1F3D78;--tabl:#C9D6EE}
.lptabs button[aria-selected="true"]{background:#9A6A00!important;border-color:#9A6A00!important;color:#fff!important}
.lptabs button{border-color:#F0D98A!important}
/* parent preview: small floating notice, light brown, draggable */
#pmBar{position:fixed;z-index:9000;left:16px;top:16px;display:flex;gap:8px;align-items:center;max-width:min(340px,calc(100% - 12px));background:#E9D5BC;color:#4E2F1F;border:2px solid #C9A47E;border-radius:14px;padding:7px 12px 7px 8px;box-shadow:0 6px 16px rgba(78,47,31,.25);font-size:13px;line-height:1.3;cursor:pointer;user-select:none;touch-action:none}
#pmBar:hover{background:#E2C9AA}#pmBar.drag{cursor:grabbing;opacity:.9}
#pmBar .pmgrip{font-size:16px;color:#8A6446;cursor:grab}
/* home: Life LiQ tile in the English Zone / Investment tile style (blue) */
.henglish.hlife{background:linear-gradient(120deg,#EEF6FF,#DDEBFF)!important;border-color:#B9D3FA!important;width:100%}
.henglish.hlife b{color:#1D4ED8!important}.henglish.hlife .hes{color:#2B4C8C!important}.henglish.hlife .hed{color:#3B4E73!important}
.henglish.hlife .hego{background:#2563EB!important}
.henglish.hlife:hover{box-shadow:0 4px 12px rgba(37,99,235,.2)!important}
/* Stars page: Wish Shop & Star Card tile in the Investment tile style (navy & gold) */
.cxp.inv.shopt{background:linear-gradient(120deg,#F4F7FD,#E6EEFB)!important;border-color:#C9D6EE!important;flex-direction:row;align-items:center;text-align:left;padding:12px 14px!important;gap:12px}
.cxp.inv.shopt .owl.shcard{height:auto!important;width:120px;margin:0!important;display:block;border-radius:8px;overflow:hidden;box-shadow:0 6px 12px rgba(20,34,79,.25)}
.cxp.inv.shopt .owl.shcard svg{display:block;width:100%;height:auto}
.cxp.inv.shopt .itx .t1{color:#1F3D78!important}.cxp.inv.shopt .itx .t2{color:#B98A2C!important}
.cxp.inv.shopt .arr{background:#1F3D78!important}
@media(max-width:600px){.cxp.inv.shopt .owl.shcard{width:80px}}
/* the blue bar no longer has a Parent area button: the ⚙️ gear at the top is the way in */
#mlfoot .fpar{display:none!important}
html.noguest .mlguest,html.noguest .guestlink{display:none!important}
/* home bottom row: Unit progress · Life LiQ · Math Lab */
.botrow .henglish.hlife.inrow{height:100%;align-self:stretch}
.botrow .labp.labtile{grid-column:auto!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center;gap:8px!important;text-align:left;border-radius:20px;padding:14px 16px!important;height:100%}
.botrow .labp.labtile .labflask{font-size:30px}
.botrow .labp.labtile .lpb b{font-size:20px}
.botrow .labp.labtile .mini{font-size:12.5px}
/* blue bar: "Join today's tutorial" as a small link next to Choose language, in the centre */
#mlfoot .flang{display:flex;align-items:center;gap:14px;white-space:nowrap}
#mlfoot .fjoin{font-size:14px;font-weight:700;color:#F2C14E;text-decoration:underline;cursor:pointer}
#mlfoot .fjoin:hover{color:#fff}
@media(max-width:600px){#mlfoot .fjoin{font-size:12px}#mlfoot .flang{gap:8px}}
/* home: Math Lab tile in the same style as Life LiQ / English Zone (green) */
.henglish.hlab{background:linear-gradient(120deg,#ECF9EF,#D9F2E0)!important;border-color:#A9DDB8!important;width:100%}
.henglish.hlab b{color:#17803F!important}.henglish.hlab .hes{color:#2F6B45!important}.henglish.hlab .hed{color:#3E5E49!important;font-size:12px!important}
.henglish.hlab .hego{background:#17803F!important}.henglish.hlab .hei img{border-radius:14px}
.henglish.hlab:hover{box-shadow:0 4px 12px rgba(23,128,63,.2)!important}
/* ===== test53 (Beti, Nov 16): non-academic practice keeps its own story scene — no blackboard — and fits one screen.
   Sinzro stands in a narrow column on the left; his bubble, the choices, the hint and the buttons sit beside him, so the
   answers are visible without scrolling. Phones: one column with a small Sinzro. ===== */
html body #view .lfmbody{display:grid!important;grid-template-columns:clamp(120px,15vw,210px) minmax(0,1fr);column-gap:22px;row-gap:12px;align-content:start;align-items:start;min-height:0!important}
html body #view .lfmbody > .snsay:first-child{display:contents!important}
html body #view .lfmbody > .snsay:first-child > .snimg{grid-column:1;grid-row:1 / span 9;width:100%!important;height:auto!important;max-height:min(44vh,360px)!important;object-fit:contain;object-position:top center;align-self:start;margin:0!important;position:static!important}
html body #view .lfmbody > .snsay:first-child > .snb, html body #view .lfmbody > :not(.snsay:first-child){grid-column:2;min-width:0;margin:0!important}
html body #view .lfmbody .lfopts{display:grid!important;gap:10px}
html body #view .lfmbody .lfopt{min-height:48px;text-align:left}
@media (max-width:600px){
  html body #view .lfmbody{grid-template-columns:1fr}
  html body #view .lfmbody > .snsay:first-child > .snimg{grid-column:1;grid-row:auto;max-height:110px!important;width:auto!important;justify-self:center}
  html body #view .lfmbody > .snsay:first-child > .snb, html body #view .lfmbody > :not(.snsay:first-child){grid-column:1}
}
/* the same practice scene for Investment LiQ (Shulka) */
html body #view .lfmbody.acscene > .shsay:first-child{display:contents!important}
html body #view .lfmbody.acscene > .shsay:first-child > :is(img,.owlimg,svg,picture):first-child{grid-column:1;grid-row:1 / span 9;width:100%!important;height:auto!important;max-height:min(40vh,300px)!important;object-fit:contain;align-self:start;margin:0!important}
html body #view .lfmbody.acscene > .shsay:first-child > .shb{grid-column:2;min-width:0;margin:0!important}
@media (max-width:600px){ html body #view .lfmbody.acscene > .shsay:first-child > :is(img,.owlimg,svg,picture):first-child{grid-row:auto;max-height:100px!important;width:auto!important;justify-self:center} html body #view .lfmbody.acscene > .shsay:first-child > .shb{grid-column:1} }

/* ==== liq-learn.css ==== */
/* ===== Math LiQ · learning screens (website 20) ===== */
/* 1. one fixed size for board + notebook on a computer */
@media (min-width:761px) and (min-height:540px){
  section.qbox.qfix{height:var(--avail,640px)!important;display:flex;flex-direction:column;overflow:hidden}
  section.qbox.qfix .qgrid{flex:1 1 0;min-height:0;align-items:stretch}
  section.qbox.qfix .qleft,section.qbox.qfix .qright{height:100%;min-height:0;overflow:hidden!important}
  section.qbox.qfix .qleft.qscroll,section.qbox.qfix .qright.qscroll{overflow-y:auto!important}
  section.qbox.qfix .qnav{flex:none;margin-top:10px}
  section.qbox.qfix .qleft>*,section.qbox.qfix .qright>*{flex-shrink:0}
  section.qbox.qfix .qleft .diagram{display:flex;justify-content:center}
  section.qbox.qfix .qleft .diagram svg:not(.cksvg){width:min(100%,400px);height:auto;max-height:calc(var(--avail,640px) - 250px)}
  /* the side drawer never pushes the lesson aside any more */
  body.workopen main{padding-right:0!important}
  body.workopen .qgrid{grid-template-columns:1.1fr 1fr!important}
  body.workopen .qgrid.nosvg{grid-template-columns:1fr 1fr!important}
}
/* 2. Bilcho's feedback floats over the lower part of the chalkboard */
.qleft{position:relative}
#fb.fbfloat,#labFb.fbfloat{position:absolute;z-index:6;left:10px;right:10px;bottom:12px;max-height:calc(100% - 36px);overflow:visible;margin:0}
#fb.fbfloat:empty,#labFb.fbfloat:empty{display:none}
#fb.fbfloat .bil1,#labFb.fbfloat .bil1{margin:0;box-shadow:0 10px 26px rgba(0,0,0,.35);animation:fbup .22s ease-out}
#fb.fbfloat .fb,#labFb.fbfloat .fb{margin:0;box-shadow:0 10px 26px rgba(0,0,0,.35)}
@keyframes fbup{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#fb.fbfloat .bil1{animation:none}}
#fb.fbhide,#labFb.fbhide{display:none!important}
.fbx{position:absolute;top:-12px;left:50%;transform:translateX(-50%);z-index:3;height:24px;padding:0 12px;border-radius:999px;border:0;background:#fff;color:#5A4630;font:800 12px system-ui;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3)}
#fb:not(.fbfloat) .fbx,#labFb:not(.fbfloat) .fbx{display:none}
.fbx:hover{background:#fff}
.fbpill{position:absolute;z-index:6;right:14px;bottom:16px;border:0;border-radius:999px;background:#DDF3E4;color:#17391F;font:800 14px var(--display,system-ui);padding:6px 14px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.3)}
/* 3. "My work" = a floating window over the lesson */
@media (min-width:761px){
  .drawer{top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;width:min(640px,92vw)!important;max-height:min(86vh,660px);
    transform:translate(-50%,-47%)!important;opacity:0;border:3px solid #C9A877!important;border-radius:22px;box-shadow:0 26px 70px rgba(20,30,60,.38)!important;
    transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;z-index:60}
  .drawer.open{transform:translate(-50%,-50%)!important;opacity:1;transition:opacity .18s ease,transform .18s ease}
}
.drawer .drhead{gap:10px} .drawer .drhead b{color:#5A3A1A}
.drawer .drhead .btn{background:#8A5A2B!important;color:#fff!important;border:0!important;border-radius:12px;padding:7px 14px;font-weight:800}
.drawer textarea{min-height:76px;border:2px solid #E3D3B5;border-radius:14px;padding:10px;font:600 16px var(--body,system-ui);background:#FFFDF6}
.drawer canvas{border:2px dashed #D9C6A2;border-radius:14px;touch-action:none;background:#fff}
@media (max-width:760px){ .drawer{max-height:80vh} }
/* 4. 3D unit cubes on the chalkboard: solid faces (no see-through), three clear shades, dark edges */
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-front{fill:#F3CF6B!important;opacity:1!important;stroke:#4A3410!important;stroke-width:1.6!important;stroke-linejoin:round}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-top{fill:#FCEBB4!important;opacity:1!important;stroke:#4A3410!important;stroke-width:1.6!important;stroke-linejoin:round}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg) .c-side{fill:#C9952F!important;opacity:1!important;stroke:#4A3410!important;stroke-width:1.6!important;stroke-linejoin:round}
:is(.qleft .diagram,.sl-l .sl-pic) svg:not(.cksvg){filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))!important}
/* 5. answer choices: the same neutral look for A, B, C, D… (no colour hints before checking);
      blue = my choice; green / red only after Check */
.qright .choice:nth-child(n){border-color:#AEB8CC!important;border-style:dashed}
.qright .choice:nth-child(n)::before{background:#3B4A78!important}
.qright .choice[aria-pressed="true"]{border-color:#2D6BE4!important;border-style:solid!important;border-width:3px;background:#EEF4FF!important;box-shadow:0 0 0 3px rgba(45,107,228,.22)!important}
.qright .choice[aria-pressed="true"]::before{background:#2D6BE4!important}
.qright .choice.right{border-color:#1D8E46!important;border-style:solid!important;background:#E1F5E9!important;box-shadow:none!important}
.qright .choice.right::before{background:#1D8E46!important}
.qright .choice.wrong{border-color:#D8432F!important;border-style:solid!important;background:#FBE6E4!important;box-shadow:none!important}
.qright .choice.wrong::before{background:#D8432F!important}
.qright .choice:hover:not(:disabled){border-color:#6E86C2!important}
.qright .choice:focus-visible{outline:3px solid #F2A900;outline-offset:2px}
.qright .choice:disabled{cursor:default}
/* 6. one size and style for the action buttons in every activity (lessons, tests, Math Lab) */
.qnav .qbtns .btn,.qbtns .btn{min-height:46px;border-radius:14px;font-size:16px;font-weight:800;padding:10px 18px}
.qnav .qbtns .btn:focus-visible,.qbtns .btn:focus-visible{outline:3px solid #F2A900;outline-offset:2px}
.qnav .qbtns .btn:disabled,.qbtns .btn:disabled{opacity:.55;cursor:not-allowed}
/* 7. "welcome back" line when a saved set continues */
.rsban{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#EAF4FF;border:2px solid #BFD8F5;color:#1F3D78;border-radius:12px;padding:6px 12px;font-size:14px;margin:6px 0 0}
.rsban .rsre{margin-left:auto;border:2px solid #BFD8F5;background:#fff;color:#1F3D78;border-radius:999px;padding:4px 12px;font:800 13px var(--body,system-ui);cursor:pointer}
/* 8. stars land at once: the Stars counter glows and "+N ★" rises from it */
.stglow{animation:stglow 1.2s ease-out}
@keyframes stglow{0%{box-shadow:0 0 0 0 rgba(242,169,0,.9)}40%{box-shadow:0 0 0 8px rgba(242,169,0,.35)}100%{box-shadow:0 0 0 0 rgba(242,169,0,0)}}
.stplus{position:absolute;left:50%;top:-6px;transform:translateX(-50%);background:#F2A900;color:#3A2A00;font:900 14px var(--display,system-ui);padding:2px 10px;border-radius:999px;box-shadow:0 4px 10px rgba(0,0,0,.25);pointer-events:none;animation:stup 2.1s ease-out forwards;z-index:5;white-space:nowrap}
@keyframes stup{0%{opacity:0;transform:translate(-50%,8px)}15%{opacity:1;transform:translate(-50%,0)}80%{opacity:1;transform:translate(-50%,-14px)}100%{opacity:0;transform:translate(-50%,-22px)}}
@media (prefers-reduced-motion:reduce){.stglow,.stplus{animation:none}}
/* ---- test33: Unit 3 audit fixes (apply to every lesson) ---- */
/* long lesson titles wrap instead of being cut with "…" */
.lessonbox .lhead .lht h1{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2;font-size:clamp(19px,2.1vw,24px)}
/* the chalkboard ledge is no longer clipped by a few pixels */
@media(min-width:761px){ section.qbox.qfix .qleft:not(.qscroll){overflow:clip!important;overflow-clip-margin:8px} }
/* phones: Check / My work / Stop for now wrap onto a second line instead of running off the screen */
@media(max-width:600px){
  .qnav{flex-wrap:wrap;row-gap:8px}
  .qnav .qbtns{flex-wrap:wrap!important;justify-content:flex-end;max-width:100%}
  .qnav .qbtns .btn{flex:1 1 auto}
}
/* "Hide ✕" sits at the top centre of Bilcho's note, clear of the sound button on the right */
section.qbox .qright #fb.fbnote .fbx{left:50%!important;right:auto!important;transform:translateX(-50%)!important}
/* ---- test45 (Beti's spec 4C): lessons ----
   1. Bilcho lives on the right-hand notebook only: his picture never shows on the green board (left), so he can never
      cover a question or a diagram. Any message he brings still shows, just without his picture on the board.
   2. The extra brown ledge line along the bottom of the board (it cut across short slides, e.g. Unit 3) is removed;
      only the board's outer rounded brown frame stays. */
.sl-l img.bil, .qleft img.bil, .sl-l .bil1 > img, .qleft .bil1 > img{display:none!important}
.sl-l::after, section.qbox .qleft::after{display:none!important}

/* ===================================================================================================
   test53 · UNIVERSAL LEARNING WORKSPACE (blackboard + notebook) — one shared layout for every lesson round
   =================================================================================================== */
/* 1. proportions: blackboard ≈ 58%, notebook ≈ 42% (never narrower than a usable notebook) */
@media (min-width:901px){
  .qgrid,.qgrid.nosvg{grid-template-columns:minmax(0,58fr) minmax(340px,42fr)!important}
  .slide.two,.slide.two.wideR{grid-template-columns:minmax(0,58fr) minmax(340px,42fr)!important}
}
/* 2. two columns only when both panels stay usable: 761–900 px stacks (board above notebook), no fixed box */
@media (min-width:761px) and (max-width:900px){
  .qgrid,.qgrid.nosvg,.slide.two,.slide.two.wideR{grid-template-columns:1fr!important}
  .lessonbox.fit,.qbox{height:auto!important;overflow:visible!important}
  .lessonbox.fit .slide{overflow:visible!important}
  .qbox .qleft,.qbox .qright{overflow:visible!important}
}
/* 3. content-aware size (set by fitQ / fitSlide): COMPACT and STANDARD take their natural height */
.qbox.ws-measure,.lessonbox.fit.ws-measure{height:auto!important}
.qbox.ws-measure .qleft,.qbox.ws-measure .qright,.lessonbox.fit.ws-measure .sl-l,.lessonbox.fit.ws-measure .sl-r{min-height:0!important;height:auto!important;overflow:visible!important;align-self:start!important}
.qbox.ws-compact,.qbox.ws-standard,.qbox.ws-stack,.lessonbox.fit.ws-auto{height:auto!important;overflow:visible!important}
.qbox.ws-compact .qgrid,.qbox.ws-standard .qgrid{align-items:stretch}
.qbox.ws-compact .qleft,.qbox.ws-standard .qleft,.qbox.ws-compact .qright,.qbox.ws-standard .qright{overflow:visible!important}
.lessonbox.fit.ws-auto .slide{overflow:visible!important}
/* the notebook always keeps comfortable room to work; the board is as tall as its content (with a sensible minimum) */
.qbox.ws-compact .qleft,.lessonbox.ws-compact .slide .sl-l{min-height:300px}
.qbox.ws-standard .qleft,.lessonbox.ws-standard .slide .sl-l{min-height:380px}
.qbox.ws-compact .qright,.qbox.ws-standard .qright,.qbox.ws-stack .qright,.lessonbox.ws-auto .slide .sl-r{min-height:360px}
.qbox .qleft .diagram{display:flex;justify-content:center}
.qbox.ws-compact .qleft .diagram svg:not(.cksvg),.qbox.ws-standard .qleft .diagram svg:not(.cksvg){width:auto;max-width:min(100%,420px);height:auto;max-height:300px}
/* 4. compact LEARNING JOURNEY tiles (the existing stage buttons; locked ones keep their 🔒 look and rules) */
.steps.ljourney{display:flex;gap:6px;flex-wrap:nowrap;margin:0!important;align-items:stretch}
.steps.ljourney>button,.steps.ljourney>.ljs{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:74px;min-height:50px;padding:4px 10px!important;border-radius:12px;border:2px solid var(--line);background:var(--card);font-weight:800;font-size:13px!important;line-height:1.15;color:var(--ink);position:relative}
.steps.ljourney .lji{font-size:18px;line-height:1}
.steps.ljourney .ljt{white-space:nowrap}
.steps.ljourney>button.ok,.steps.ljourney>.ljs.ok{background:#E9F7EE;border-color:#2E9E57;color:#17663A}
.steps.ljourney>button.ok::after,.steps.ljourney>.ljs.ok::after{content:"✓";position:absolute;top:2px;right:5px;font-size:12px;color:#2E9E57}
.steps.ljourney>button[aria-current="true"],.steps.ljourney>.ljs.cur{background:#E8F0FF;border-color:#2F6BDE;color:#1E4FB8;box-shadow:0 0 0 2px rgba(47,107,222,.18)}
.steps.ljourney>button[aria-current="true"].ok,.steps.ljourney>.ljs.cur.ok{background:#E8F0FF;border-color:#2F6BDE}
.steps.ljourney>.ljs.lock{opacity:.45}
.qhead.wsj{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.qhead.wsj .qht{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.qbox>.progress{display:none}
/* 5. one bottom bar: ← Stop for now · progress · Check / Next →  (same look as the Learn slides' Back · dots · Next) */
.wsbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:2px solid var(--line)}
.wsbar>.btn{min-width:150px;justify-content:center}
.wsbar #checkBtn,.wsbar #nextBtn{min-width:170px}
.wsmid{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.wsdots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.wsdots i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.wsdots i.done{background:#2E9E57}.wsdots i.on{background:var(--blue);transform:scale(1.3)}
.wsprog{width:160px}
.sl-nav{border-top:2px solid var(--line);padding-top:10px}
.sl-nav .btn{min-width:150px}
@media (max-width:760px){
  .steps.ljourney{overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .steps.ljourney>button,.steps.ljourney>.ljs{min-width:68px;min-height:46px;font-size:12px!important}
  .wsbar{position:sticky;bottom:var(--fh,0px);z-index:5;background:var(--card);margin:12px -16px -16px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
  .wsbar>.btn{min-width:0;flex:1 1 0;padding:12px 10px}
  .wsmid .wsn{display:none}
  .wsdots{display:none}
}

.qhead.wsj .qlt{display:block;font:800 clamp(18px,1.9vw,22px)/1.2 var(--display);color:var(--ink);margin-top:2px}
.qhead.wsj .qht{flex-direction:column;align-items:flex-start;gap:2px}
.qhead.wsj .qht .qtags{display:inline-flex;gap:6px}

/* English LiQ rounds on the shared workspace: blackboard (reading + question) · notebook (answers, help, feedback) */
.enrun.ws-en .engrid2.enws{display:grid;grid-template-columns:minmax(0,58fr) minmax(340px,42fr);gap:18px;align-items:stretch;margin-top:8px}
.enrun.ws-en .enboard{display:flex;flex-direction:column;gap:12px;min-height:300px;padding:22px 24px 30px!important}
.enrun.ws-en .enboard .enq{font-family:var(--display);font-weight:700;font-size:clamp(19px,1.8vw,24px);line-height:1.35;color:#F8F4E3;margin:0}
.enrun.ws-en .enboard>:not(.enq){background:#FFFDF5;color:#1F2747;border-radius:12px;padding:12px 14px;max-height:min(52vh,460px);overflow:auto}
.enrun.ws-en .ennote{min-height:360px;display:flex;flex-direction:column;gap:10px}
.enrun.ws-en .ennote .enchoices{display:flex;flex-direction:column;gap:8px}
@media (max-width:900px){ .enrun.ws-en .engrid2.enws{grid-template-columns:1fr} .enrun.ws-en .enboard>:not(.enq){max-height:none} }

/* test53 · compact questions: a short question gets a smaller workspace — the board shrinks to its content (min 300 px)
   and the notebook's answer rows are tighter, while every answer stays a comfortable 44 px target */
.qbox.ws-compact .qright .choices{gap:8px!important}
.qbox.ws-compact .qright .choices > :is(button,label,.choice){min-height:44px!important;padding-top:4px!important;padding-bottom:4px!important}
.qbox.ws-compact .qright .mywork{padding-top:2px!important;padding-bottom:2px!important}
.qbox.ws-compact .qright .mywork label{margin:2px 0!important}
.enrun.ws-en .enboard .mini{color:#F3E9C6!important;opacity:.95}   /* test53: the reminder line on the chalkboard stays readable */

/* ==== liq-p20.css ==== */
/* ===== Math LiQ · header + Parent area (website 20) ===== */
/* home icon: same size, colour and style as the bell and gear */
.hud .hudbtns .homeic svg{width:22px;height:22px;fill:#0F2D6B}
.hud .hudbtns .homeic[aria-current="true"] svg{fill:#2C6BD8}
#meBtn{cursor:pointer}

/* compact number badges everywhere (same as the bell) */
.lxbadge{display:inline-grid!important;place-items:center;min-width:18px;height:18px;padding:0 5px!important;border-radius:999px;background:#E5533D;color:#fff;font:800 11px/18px var(--body,system-ui)!important;margin-left:4px;vertical-align:middle;box-sizing:border-box}
.pgrp button span.lxbadge,.pgrp .lxbadge{position:absolute;top:5px;left:calc(50% + 8px);right:auto;margin:0;font-size:11px!important}
.psub .lxbadge{margin-left:5px;transform:translateY(-1px)}
.pgrp .dot{width:9px;height:9px;top:7px;right:auto;left:calc(50% + 10px)}

/* small lock icon (open = unlocked, closed = locked) */
.lockic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px solid #D9BE98;background:#FFF8EE;cursor:pointer;padding:0;flex:none}
.lockic svg{width:20px;height:20px;fill:#8A5A2B}
.lockic:hover{background:#F6E7D2}
.lockic:focus-visible{outline:3px solid #F2A900;outline-offset:2px}
.lockstate{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:#F6E7D2;border:2px solid #D9BE98;color:#6B4423;border-radius:999px;padding:4px 12px 4px 8px;font-weight:800;font-size:13px}
.lockstate svg{width:18px;height:18px;fill:#8A5A2B}

/* Parent → Settings: warm-brown buttons, normal size */
.psettings .btn,.psettings button.btn,.psettings .btn.small{background:linear-gradient(#9A6A3A,#7E5128)!important;color:#fff!important;border:0!important;border-radius:12px!important;
  padding:8px 16px!important;font:800 14.5px/1.2 var(--body,system-ui)!important;min-height:38px;box-shadow:0 2px 0 #5E3B1A!important;width:auto!important;max-width:100%;text-transform:none;letter-spacing:0}
.psettings .btn:hover{filter:brightness(1.08)}
.psettings .btn.alt,.psettings .btn.ghost,.psettings .btn.small.alt{background:#FFF8EE!important;color:#6B4423!important;border:2px solid #D9BE98!important;box-shadow:none!important}
.psettings .btn.alt:hover{background:#F6E7D2!important}
.psettings .btn.tomato,.psettings .btn.bad{background:linear-gradient(#D9634F,#B8432F)!important;box-shadow:0 2px 0 #8A2E20!important}
.psettings .btn:disabled{opacity:.55;filter:none}
.psettings form.row,.psettings .row{align-items:flex-end;gap:10px}
.psettings .card .row .btn{align-self:flex-end}

/* learner profile card */
.lprof{background:#FFF8EE!important;border:2px solid #E6D2B2!important}
.lprof .lph{margin:0 0 10px;font-size:19px;color:#5A3A1A}
.lpgrid{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start}
.lppic{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:150px}
.lppic img,.lppic .lpdef{width:96px;height:96px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 0 0 2px #D9BE98,0 4px 10px rgba(90,60,20,.2)}
.lppic .lpdef{display:grid;place-items:center;background:#E9B44C;color:#fff;font:800 40px var(--display,system-ui)}
.lpbtns{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.lpnote{margin:0;text-align:center}
.lpnames{display:flex;flex-direction:column;gap:10px;min-width:0}
.lpnames form{margin:0}
.lprof .phrest{margin-top:10px;border:0;background:transparent;padding:0}
@media(max-width:600px){.lpgrid{grid-template-columns:1fr}.lppic{min-width:0}}
@media(max-width:420px){#hud .hudbtns{gap:2px!important}#hud .hudbtns .gear{padding:3px!important;min-width:28px}}
/* website 21: inbox states */
.lxbadge.lxdot{background:#F2A900!important;color:#3A2A00!important;min-width:12px;height:12px;padding:0!important;font-size:0!important;border:2px solid #fff}
.lxnew,.lxwait{display:inline-block;border-radius:999px;padding:1px 8px;font:800 11px var(--body,system-ui);vertical-align:middle;margin-left:4px}
.lxnew{background:#E5533D;color:#fff} .lxwait{background:#FFF1C9;color:#6B4A00;border:1px solid #F2C94C}
.lxin.isnew{box-shadow:inset 4px 0 0 #E5533D}
/* website 21: guest demo */
body.ml-guest #mlfoot .fjoin{display:none!important}
@media (max-width:900px){ body.ml-guest #mlfoot .gfull{display:none} }

/* ==== liq-bank20.css ==== */
/* ===== Math LiQ · Star Bank hub + Credit LiQ layout (website 20) ===== */
/* Star Card sub-tabs: Debit Card · Credit Card · Go Shopping (same tab-button style, Star Bank navy) */
.cardnav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 10px;padding:6px;background:#EEF3FB;border:2px solid #C9D6EE;border-radius:16px}
.cardnav button{flex:1 1 0;min-width:120px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid transparent;border-radius:12px;background:#fff;color:#1F3D78;font:800 15px var(--body,system-ui);padding:9px 12px;cursor:pointer}
.cardnav button span{font-size:18px}
.cardnav button:hover{border-color:#C9D6EE}
.cardnav button[aria-current="true"]{background:#1F3D78;color:#fff;box-shadow:0 3px 8px rgba(31,61,120,.25)}
.cardhub .hubbody{margin-top:0}
.cardhub>.hubbody>.phero{display:none}

/* Credit LiQ overview cards */
.crov{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:4px 0 14px}
.crovc{background:#FFFDF8;border:2px solid #E6D2B2;border-radius:18px;padding:14px 16px;min-width:0;display:flex;flex-direction:column;gap:8px}
.crovh{display:flex;align-items:center;gap:8px;font:800 17px var(--display,system-ui);color:#4A2C1C}
.crovi{font-size:20px}
.crnum{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#70452F;color:#fff;font:800 15px var(--display,system-ui)}
.crlock{display:flex;align-items:center;gap:12px;background:#F7EFE6;border-radius:14px;padding:10px 12px}
.crlock b{color:#4A2C1C;font-size:16px}.crlock p{margin:2px 0 0}
.crlk{font-size:26px;width:44px;height:44px;display:grid;place-items:center;background:#fff;border-radius:50%;flex:none;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.crnums{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.crnums>div{background:#F7EFE6;border-radius:12px;padding:8px 10px;text-align:center}
.crnums b{display:block;font:800 22px var(--display,system-ui);color:#3B2316}
.crnums span{font-size:12.5px;color:#6B4C3A;font-weight:700}
.crstat{border-radius:999px;padding:6px 12px;font-weight:800;font-size:14px;text-align:center;background:#EEF1F4;color:#4A5568}
.crstat.ok{background:#E3F4E8;color:#17663A}.crstat.due{background:#FFF3D6;color:#8A5A00}.crstat.bad{background:#FBE3DF;color:#A3321F}.crstat.lock{background:#F1ECE6;color:#6B4C3A}
.crc{margin:0}
.crbar{height:10px;background:#EADBC8;border-radius:999px;overflow:hidden}.crbar i{display:block;height:100%;background:linear-gradient(90deg,#C99A3B,#70452F);border-radius:999px}
.crovc .crg{max-width:220px;margin:0 auto;display:block}

/* 1. Learn & Practice · 2. Apply */
.crtwo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.crlearn{background:#F6F3FF;border-color:#D9D0F5}
.crapply{background:#F1FAF4;border-color:#CBE8D4}
.crqz{background:#fff;border-radius:14px;padding:12px 14px}
.crqz b{font-size:17px;color:#2A2350}.crqz p{margin:4px 0 10px}
.btn.crbig{width:100%;justify-content:center;font-size:17px;padding:12px 16px}
.crstudy{gap:10px;align-items:center;flex-wrap:nowrap}.crstudy .btn{flex:none}
.crreq{list-style:none;margin:4px 0 6px;padding:0;display:flex;flex-direction:column;gap:6px}
.crreq li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;background:#fff;border-radius:12px;padding:7px 10px;font-weight:700;font-size:14.5px;color:#2F3A4A}
.crreq li small{display:block;font-weight:600;font-size:12px;color:#6B7385}
.crck{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:2px solid #B9C2CE;color:#8892A0;font-size:12px;font-weight:900}
.crreq li.ok .crck{background:#2E9E5B;border-color:#2E9E5B;color:#fff}
.crreq li.wait .crck{border-color:#E0A800;color:#8A5A00;background:#FFF3D6}
.crrp{font-size:12.5px;color:#6B4C3A;font-weight:800;white-space:nowrap}
.crreq li.ok .crrp{color:#17663A}
.crapply .btn[disabled]{opacity:.6;cursor:not-allowed}
.crleft{margin:0;color:#7A4A2A}

/* card + history + activity */
.crthree{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:12px;margin-bottom:14px}
.crcardrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.crcardrow .lxcard,.crcardrow svg{max-width:100%}
.crfacts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:700;color:#4A2C1C}
.crfacts li{background:#F7EFE6;border-radius:10px;padding:6px 10px}
.crfacts li::before{content:"⭐ "}
.crempty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;flex:1;padding:8px 0}
.crei{font-size:36px;opacity:.6}
.crsteps3{display:flex;align-items:center;gap:6px}
.crsteps3 span{display:flex;flex-direction:column;align-items:center;font-size:12px;font-weight:800;color:#4A2C1C}
.crsteps3 span b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#F3E3C8;color:#70452F;margin-bottom:3px}
.crsteps3 i{width:22px;height:2px;background:#D9BE98}
.crthree .lxtx{font-size:13px}

@media(max-width:1000px){.crthree{grid-template-columns:1fr 1fr}.crthree .crcardc{grid-column:1/-1}}
@media(max-width:760px){.crov,.crtwo,.crthree{grid-template-columns:1fr}.crcardrow{grid-template-columns:1fr}.cardnav button{min-width:0;font-size:13.5px;padding:8px 6px}.crstudy{flex-wrap:wrap}}

/* Star Bank: tidier prize ladder spacing (rules and values unchanged) */
.bankdash .tiers{gap:14px!important}
.bankdash .tiers .t{padding-top:16px}
.bankdash .dh{margin-top:16px}

/* ==== liq-foot20.css ==== */
/* ===== Math LiQ · footer, language toggle, banner scroll (website 20) ===== */
/* language: compact En / አማ toggle in the far left corner */
#mlfoot .flangb,#mlfoot .flangm{display:none!important}
#mlfoot .flangt{flex:none;order:-1;min-width:44px;height:30px;padding:0 10px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55);background:rgba(255,255,255,.14);
  color:#fff;font:800 14px/1 'Noto Sans Ethiopic',Nunito,system-ui,sans-serif;cursor:pointer;margin-right:4px;letter-spacing:.02em}
#mlfoot .flangt:hover{background:rgba(255,255,255,.26)}
#mlfoot .flangt:focus-visible{outline:3px solid #F2C14E;outline-offset:2px}
#mlfoot .frow{justify-content:flex-start;gap:12px}
#mlfoot .fwho{margin-right:auto}
/* tutorial link stays in the middle of the bar */
#mlfoot .flang{gap:0}

/* website 21: the bottom bar is the same blue on every page (no per-area colours) */

/* page-themed footer art: an accent right after the content */
.appsav.ftart{display:block;width:100%;height:auto!important;aspect-ratio:auto;max-height:none!important;object-fit:cover;border-radius:18px 18px 0 0!important;
  margin:12px 0 0!important;opacity:1!important;box-shadow:none!important;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);mask-image:linear-gradient(180deg,transparent 0,#000 22%)}
body:has(.appsav.ftart) main.wrap{padding-bottom:var(--fh,44px)!important}
@media(max-width:600px){.appsav.ftart{border-radius:12px 12px 0 0!important}}
body[data-view="session"] .appsav{display:none!important}

/* home banner: same distance, same timing for the banner and the space under the header */
#hud #bigBanner{padding:0!important;max-height:var(--bnH,600px);transition:max-height .3s ease,opacity .22s ease!important}
#hud #bigBanner:not(.lab) .banner{margin:2px 0 6px}
#hud.slim #bigBanner{max-height:0!important}
#bnSpacer{transition:height .3s ease!important}
@media (prefers-reduced-motion:reduce){#hud #bigBanner,#bnSpacer{transition:none!important}}
/* test53 (one header-to-content rule): when the blue bar is slim, the home banner rolls up COMPLETELY — no padding, border or
   margin is left behind — so the sticky bar is the same height on every page and nothing peeks out under it */
html body #hud.slim #bigBanner, html body.hpv #hud.slim #bigBanner, html body.w31home #hud.slim #bigBanner.headbanner{ max-height:0!important; padding-top:0!important; padding-bottom:0!important; border-top-width:0!important; border-bottom-width:0!important; margin-top:0!important; margin-bottom:0!important; overflow:hidden!important }
html body #hud.slim.withbanner > .hudrow{ margin-bottom:0!important }   /* the empty rolled-up banner would otherwise keep a 6 px strip */
/* test53: on phones the learner's name no longer runs under the streak (the name column takes the name's own width) */
@media (max-width:480px){ html body #hud .hudrow.hudrow{ grid-template-columns:auto minmax(0,1fr) 0 auto!important; column-gap:6px!important } html body #hud #hudStreak{ min-width:0!important; overflow:hidden } }

/* ==== liq-nav20.css ==== */
/* ===== Math LiQ · one row of tabs + contextual submenus (website 20) ===== */
/* one row, never wrapping; on a narrow screen it scrolls sideways */
.wtabs.lxnav,.pgrp.lxnav,.lxnavrow{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.wtabs.lxnav button{flex:1 0 auto!important;white-space:nowrap}
.bankdash > .row:first-child:has(.lxnav){flex-wrap:nowrap}
.bankdash > .row:first-child:has(.lxnav) > .mini{flex:none;white-space:nowrap}
@media(max-width:1250px){.bankdash > .row:first-child:has(.lxnav) > .mini{display:none}}
@media(max-width:600px){.wtabs.lxnav button{flex:0 0 auto!important;font-size:13px!important;padding:9px 12px!important}}
.lxshw{display:block;text-align:right;margin:0 0 8px}

/* the little arrow on a tab that has a submenu */
.lxcaret{display:inline-block;width:8px;height:8px;margin-left:6px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s;flex:none}
[aria-expanded="true"] > .lxcaret{transform:translateY(2px) rotate(-135deg)}

/* the floating submenu */
.lxdd{position:fixed;z-index:9500;background:#fff;border:1.5px solid #D5DEEF;border-radius:16px;box-shadow:0 14px 34px rgba(20,35,80,.22);padding:6px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;max-width:min(340px,calc(100vw - 16px));animation:lxin .14s ease-out}
@keyframes lxin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lxdd{animation:none}}
.lxdi{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;border-radius:11px;padding:10px 12px;min-height:42px;font:inherit;font-weight:800;font-size:15px;color:#1F2A4D;cursor:pointer}
.lxdi:hover,.lxdi:focus-visible{background:#EEF3FB;outline:none}
.lxdi[aria-current="true"]{background:var(--ddc,#E3EBFA);color:var(--ddt,#1F3D78)}
.lxdi[aria-current="true"]::after{content:"✓";margin-left:auto;font-weight:900}
.lxdi.lxsub{padding-left:38px;min-height:36px;font-size:14px;font-weight:700;color:#4A5578}
.lxdic{width:24px;text-align:center;font-size:18px;flex:none}
.lxdbg{margin-left:auto;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#E5533D;color:#fff;font:800 11px/18px system-ui;text-align:center}
.lxdd[data-theme="bank"]{--ddc:#E3EBFA;--ddt:#1F3D78}
.lxdd[data-theme="parent"]{--ddc:#FBE3DF;--ddt:#9A2E24;border-color:#F1CFC8}
.lxdd[data-theme="english"]{--ddc:#FCE4EF;--ddt:#A0306A;border-color:#F3CADD}

/* Parent area: groups, Unit and the lock in one row */
.pgrp.lxpar{display:flex!important;gap:6px;align-items:stretch}
.pgrp.lxpar > button[data-ptab]{flex:1 1 0;min-width:96px}
.pgrp.lxpar > button[data-lxdd]{flex-direction:column}
.pgrp.lxpar > button .lxcaret{margin:2px 0 0;width:7px;height:7px}
.pgrp.lxpar .lxunit{flex:none;align-self:center;display:inline-flex;align-items:center;gap:6px;border:2px solid #F1CFC8;background:#fff;border-radius:999px;padding:8px 12px;font:inherit;font-weight:800;font-size:14px;color:#7A2E26;cursor:pointer;white-space:nowrap}
.pgrp.lxpar .lxunit span{font-size:16px}
.pgrp.lxpar #lockParent2{align-self:center;margin:0 4px}
.pgrp.lxpar > button.lxopen{background:#fff;box-shadow:0 2px 6px rgba(90,60,10,.15)}
@media(max-width:700px){.pgrp.lxpar > button[data-ptab]{min-width:78px;font-size:12px}}

/* ==== liq-home20.css ==== */
/* ===== Math LiQ · student homepage layout (website 20, Oct 26) =====
   Same cards, data, buttons and colours; only the arrangement:
   row 1  Welcome · Investment News · English Zone (one row, same height)
   row 2  the current lesson (left, main focus)  |  Upcoming Challenges · This week  |  board (Next rank, news) · Recent wins
   row 3  Unit progress · Life LiQ · Math Lab (lined up with the columns above) */
body[data-view="home"] #view .hduo.htri{align-items:stretch;margin-bottom:14px!important}
body[data-view="home"] #view .hduo.htri>*{min-width:0;height:100%;box-sizing:border-box}

@media (min-width:1001px){
  body[data-view="home"] #view .dash{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"now chp board" "now week wins" "bot bot bot";gap:14px!important;align-items:stretch}
  body[data-view="home"] #view .dash>.now{grid-area:now!important}
  body[data-view="home"] #view .dash>.chp{grid-area:chp!important}
  body[data-view="home"] #view .dash>.mboard{grid-area:board!important}
  body[data-view="home"] #view .dash>.plink:has(.week){grid-area:week!important}
  body[data-view="home"] #view .dash>.winsp{grid-area:wins!important}
  body[data-view="home"] #view .dash>.botrow{grid-area:bot!important;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important}
  /* current lesson: words on the left, its picture on the right, steps and Continue across the bottom */
  body[data-view="home"] #view .dash>.now{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,.75fr);column-gap:16px;row-gap:8px;align-content:start}
  body[data-view="home"] #view .dash>.now>*{grid-column:1/-1;margin-top:0;margin-bottom:0}
  body[data-view="home"] #view .dash>.now>.nk,body[data-view="home"] #view .dash>.now>h2,body[data-view="home"] #view .dash>.now>.ngoal{grid-column:1}
  body[data-view="home"] #view .dash>.now>.nowpic{grid-column:2;grid-row:2 / span 3;align-self:center;min-height:0}
  body[data-view="home"] #view .dash>.now>.nowpic svg{max-height:170px}
  body[data-view="home"] #view .dash>.now>.ncap{grid-column:2;font-size:13px!important}
  body[data-view="home"] #view .dash>.now>.nsteps{margin-top:6px}
  body[data-view="home"] #view .dash>.now>.ncta{align-self:end}
}
@media (min-width:641px) and (max-width:1000px){
  body[data-view="home"] #view .dash{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"now now" "chp board" "week wins" "bot bot";gap:12px!important}
  body[data-view="home"] #view .dash>.now{grid-area:now!important}
  body[data-view="home"] #view .dash>.chp{grid-area:chp!important} body[data-view="home"] #view .dash>.mboard{grid-area:board!important}
  body[data-view="home"] #view .dash>.plink:has(.week){grid-area:week!important} body[data-view="home"] #view .dash>.winsp{grid-area:wins!important}
  body[data-view="home"] #view .dash>.botrow{grid-area:bot!important}
}
@media (max-width:640px){
  body[data-view="home"] #view .dash{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none;gap:12px!important}
  body[data-view="home"] #view .dash>*{grid-column:1/-1!important;grid-row:auto!important}
  body[data-view="home"] #view .dash>.botrow{grid-template-columns:minmax(0,1fr)!important}
}
/* compact, evenly sized panels on the right */
body[data-view="home"] #view .dash>.p:not(.now){min-width:0;box-sizing:border-box}
body[data-view="home"] #view .dash .chp .icons{flex:1 1 auto!important;align-items:stretch}
body[data-view="home"] #view .dash .chp .ic{height:auto!important;min-height:0;padding:12px 6px!important;justify-content:center!important}
body[data-view="home"] #view .dash .chp .ic>span{font-size:34px!important;margin-bottom:4px}
body[data-view="home"] #view .dash .chp .ic em{font-size:14px!important}
body[data-view="home"] #view .dash>.plink:has(.week){display:flex;flex-direction:column;justify-content:flex-start;text-align:left}
body[data-view="home"] #view .dash>.winsp{display:flex;flex-direction:column;gap:6px}
body[data-view="home"] #view .dash .botrow>*{min-width:0;height:100%;box-sizing:border-box}
/* the fixed footer never covers the last row */
body[data-view="home"] main.wrap{padding-bottom:calc(var(--fh,44px) + 8px)}

/* any other panel that shows up on the dashboard (e.g. "My dream", the Math Lab banner) gets its own full-width row
   instead of competing for the "This week" spot */
body[data-view="home"] #view .dash>.plink:not(:has(.week)),body[data-view="home"] #view .dash>.labp,body[data-view="home"] #view .dash>.fampanel{grid-area:auto!important;grid-column:1/-1!important}

/* ==== liq-nav21.css ==== */
/* ===== Math LiQ · website 21 navigation and spacing ===== */
/* Math Lab tab row (green, the Lab's own colour) */
.labnav21{display:flex;gap:6px;align-items:center;margin:8px 0 10px!important}
.labnav21 button[aria-selected="true"]{background:#17803F!important;color:#fff!important;border-color:#17803F!important}
.labnav21 button .lxbadge{background:#E5533D}
.labnav21 .l21st{flex:0 0 auto;margin-left:6px;white-space:nowrap;color:#17391F}
.lxdd[data-theme="lab"] .lxdi[aria-current="true"]{background:#DDF3E4;color:#17391F}
.l21filter{margin:0 0 8px;font-size:14px;color:#17391F;background:#EAF7EE;border:1px solid #BFE3C9;border-radius:10px;padding:6px 10px}
.l21filter .lnkbtn{margin-left:6px}
/* English: the banner leads back to the English Zone home */
.phero.l21home{cursor:pointer}
.phero.l21home:focus-visible{outline:3px solid #F2A900;outline-offset:3px}

/* ---- spacing: less empty space between the last panel, the footer art and the blue bar ---- */
#view > .pg{margin-bottom:0!important}
#view > .dash{margin-bottom:0!important}
.appsav.ftart{margin-top:8px!important}
body:has(.appsav.ftart) main.wrap{padding-bottom:var(--fh,44px)!important}
#view > .pg + .appsav.ftart, #view > .dash + .appsav.ftart{margin-top:6px!important}
/* the art sits flush on the blue bar */
#view > .appsav.ftart:last-child{margin-bottom:0!important}
/* panels: a little less padding at the bottom */
#view > .pg.journal{padding-bottom:14px!important}
/* top: the first panel sits closer to the top bar */
#view > :first-child{margin-top:0!important}
/* home: the Math Lab tile is silver / metallic gray (green belongs to Investment News); the Lab itself keeps its green controls */
.henglish.hlab{background:linear-gradient(135deg,#F7F8FA 0%,#E3E7EC 45%,#F2F4F7 60%,#D5DAE1 100%)!important;border-color:#AEB6C2!important;box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(60,70,85,.12)!important}
.henglish.hlab b{color:#2F3A4A!important}.henglish.hlab .hes{color:#4A5566!important}.henglish.hlab .hed{color:#4F5A6B!important}
.henglish.hlab .hego{background:linear-gradient(180deg,#8C96A5,#5E6878)!important}
.henglish.hlab:hover{box-shadow:0 4px 14px rgba(60,70,85,.25)!important}
/* the Lab's small note sits inside the green panel */
.labg > p.mini.l21note{margin:8px 4px 0}
/* tabbed long pages (My Profile, Investment progress …) */
.l21tabs{display:flex;gap:6px;margin:10px 0 8px!important}
.l21crumb{font-size:13px;color:#5A4630;margin:-2px 0 8px 4px}
/* Go Shopping: status panel, gift credit, photos that cannot be shown */
.shstat{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.shstt{display:flex;flex-direction:column;align-items:center;gap:1px;border:2px solid #D7E2F5;background:#F5F8FE;border-radius:14px;padding:8px 4px;cursor:pointer;font:inherit;color:#16245A}
.shstt span{font-size:20px}.shstt b{font:900 20px var(--display,system-ui)}.shstt small{font-size:12px;font-weight:700;text-align:center;line-height:1.15}
.shstt.zero{opacity:.6}.shstt:hover{border-color:#2B4F92}
@media(max-width:760px){.shstat{grid-template-columns:repeat(3,minmax(0,1fr))}}
.shcart tr.gcred td{background:#FFF4E5;color:#7A4B00}
.shimg.ph.broken{filter:grayscale(.3);outline:2px dashed #E5A33D;outline-offset:-4px}
.shcard .btn[disabled]{opacity:.75;cursor:default}
.shcard .shgift + .mini{display:block}
/* Credit Card page (like the Debit Card page) */
.crl21top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px;align-items:stretch;margin-bottom:14px}
.crl21top .crl21card{display:flex;flex-direction:column}
.crl21top .crl21card .crcardrow{display:flex;flex-direction:column;align-items:center;gap:10px}
.crl21top .crl21card .crcardrow > div:first-child{width:100%;max-width:440px;margin-bottom:22px}
.crl21top .crl21card .crfacts{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin:0;padding:0}
.crl21top .crov{display:flex!important;flex-direction:column;gap:10px;margin:0!important}
.crl21top .crov .crovc{flex:1 1 auto;padding:10px 12px!important}
.crtwo{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;align-items:start!important}
.crtwo .crlearn{align-self:start}
.crreq li{padding:4px 6px!important;font-size:13.5px!important;min-height:0!important}
.crapply .crbig{padding:8px 14px!important}
.crthree{grid-template-columns:1fr 1fr!important}
@media(max-width:820px){ .crl21top,.crtwo,.crthree{grid-template-columns:1fr!important} }
/* ===== shared charts (LXCHART) ===== */
.lxch{margin:12px 0;background:#fff;border:2px solid #E3E8F2;border-radius:16px;padding:12px 14px}
.lxch figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:4px}
.lxch figcaption b{font:800 16px var(--display,system-ui);color:#1F2B4D}
.lxchsvg{width:100%;height:auto;display:block;overflow:visible}
.lxchsvg text{font-family:var(--body,system-ui)}
.lxch .lxm{cursor:pointer;outline:none}.lxch .lxm:focus-visible rect,.lxch .lxm:focus-visible circle{stroke:#F2A900;stroke-width:3}
.lxchax{text-align:center;font-size:12px;color:#6B7487;margin-top:-2px}
.lxchleg{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#2A3550;margin:2px 0 6px}
.lxchleg span{display:inline-flex;align-items:center;gap:6px}
.lxchleg .sw{display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--c)}
.lxchleg .sw.tx{background:repeating-linear-gradient(45deg,var(--c) 0 3px,color-mix(in srgb,var(--c) 35%,#fff) 3px 6px)}
.lxchx{background:#F6F8FC;border-radius:12px;padding:8px 12px;margin-top:8px;font-size:14px;color:#2A3550}
.lxchx p{margin:3px 0}
.lxchtab{margin-top:8px;font-size:13.5px}.lxchtab summary{cursor:pointer;font-weight:800;color:#2B4F92}
.lxchtab table{width:100%;border-collapse:collapse;margin-top:6px}.lxchtab td,.lxchtab th{padding:4px 8px;border-bottom:1px solid #E6E9F0;text-align:left}.lxchtab .r{text-align:right}
.lxchnone{display:flex;align-items:center;gap:10px;color:#6B7487;padding:14px 4px}.lxchnone span{font-size:28px}.lxchnone p{margin:0}
.lxchpr{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.lxchprr{display:grid;grid-template-columns:minmax(150px,1.1fr) 2fr auto;gap:10px;align-items:center;padding:4px 6px;border-radius:10px}
.lxchprr.cur{background:#EEF4FF}
.lxchprl b{display:block;font-size:14px}.lxchprl .mini{font-size:12px}
.lxchprb{height:14px;background:#E9EDF5;border-radius:999px;overflow:hidden}.lxchprb i{display:block;height:100%;border-radius:999px}
.lxchprv{white-space:nowrap;font-size:14px}
.lxchtiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:6px 0}
.lxcht{display:flex;flex-direction:column;align-items:center;text-align:center;background:#F6F8FC;border:2px solid #E3E8F2;border-radius:14px;padding:10px 6px}
.lxcht span{font-size:22px}.lxcht b{font:900 22px var(--display,system-ui);color:#1F2B4D}.lxcht small{font-weight:700;font-size:12.5px;color:#2A3550}.lxcht em{font-style:normal;font-size:11.5px;color:#6B7487}
.lxchtip{position:fixed;z-index:90;background:#1F2B4D;color:#fff;font:700 13px var(--body,system-ui);padding:5px 10px;border-radius:8px;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.25)}
@media(max-width:640px){.lxchprr{grid-template-columns:1fr auto}.lxchprb{grid-column:1/-1;grid-row:2}}
/* ===== My Learning Path / Learning Report ===== */
.lp21tabs{display:flex;gap:6px;margin:8px 0 10px!important}
.lp21body{padding:12px 14px!important}
.lp21grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 4px}
.lp21grid .p{margin:0}
.lp21now h3{margin:.2em 0}.lp21steps{margin:6px 0 0;padding-left:18px}.lp21steps li{margin:6px 0}.lp21steps .btn{margin-left:6px}
.lp21map{margin-top:12px}
.lr21h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.lr21h h2{margin:0;font-size:22px}
.lr21bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.lr21seg{display:inline-flex;border:2px solid #C9D6EE;border-radius:999px;overflow:hidden}
.lr21seg button{border:0;background:#fff;padding:6px 12px;font:800 13px var(--body,system-ui);color:#2B4F92;cursor:pointer}
.lr21seg button[aria-pressed="true"]{background:#2B4F92;color:#fff}
.lr21u{font-size:13px;font-weight:800;color:#2B4F92}.lr21u select{font:inherit;padding:5px 8px;border-radius:10px;border:2px solid #C9D6EE;margin-left:4px}
.lr21say{font-size:15px;margin:6px 2px}
@media(max-width:760px){.lp21grid{grid-template-columns:1fr}}
.lxchsvg{max-height:300px}
.r21two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.r21two .lxch{margin:8px 0}@media(max-width:900px){.r21two{grid-template-columns:1fr}} .r21par{margin-top:10px}
@media(max-width:1000px){ .pg .stk{right:10px!important} }
.lxnavrow,.ennav{max-width:100%;overflow-x:auto}
.enbody{grid-template-columns:minmax(0,1fr)!important}.enbody > *{min-width:0}
@media(max-width:820px){.eh-top{grid-template-columns:minmax(0,1fr)!important}.eh-top > *{min-width:0}}
@media(max-width:600px){.wtabs.lxnav.lp21tabs,.wtabs.lxnav.l21tabs{flex-wrap:wrap!important;overflow:visible!important}.wtabs.lxnav.lp21tabs button,.wtabs.lxnav.l21tabs button{flex:1 1 30%!important;min-width:0!important;white-space:normal!important;font-size:12.5px!important;padding:8px 6px!important}}
/* G2-B (test27): How mistakes happened */
.lr21how{margin-top:12px;background:#FFF8EA;border:1.5px solid #F1D9A6;border-radius:14px;padding:10px 14px}
.lr21how h3{margin:0 0 4px;font-size:17px;color:#7A3E00}
.lr21how ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px}

/* ==== liq-ai.css ==== */
/* Math LiQ · Website 23 · Bilcho AI cards and parent page (same look as Bilcho's scripted card) */
.aibox .aimsg{font-weight:700;font-size:16px;line-height:1.5;color:#2F5A3A;margin-top:4px}
.aibox .aimsg p{margin:0 0 6px}
.aibox .aimsg p:last-child{margin-bottom:0}
.aibox .aimsg[lang="am"]{font-size:17px;line-height:1.65}
.aibox.lv3{background:#E3F0FF;border-color:#B9D3F5;color:#14305A}
.aibox.lv3 .bilk{color:#2D6BE4}.aibox.lv3 .bilh{color:#14305A}.aibox.lv3 .aimsg{color:#24406E}
.aibox.lv4{background:#FFF6D9;border-color:#F1D98A;color:#4A3A0A}
.aibox.lv4 .bilk{color:#A07400}.aibox.lv4 .bilh{color:#4A3A0A}.aibox.lv4 .aimsg{color:#5A4710}
.aisteps{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}
.aisteps i{width:9px;height:9px;border-radius:50%;border:2px solid currentColor;opacity:.55}
.aisteps i.on{background:currentColor;opacity:1}
.aidots{display:inline-flex;gap:3px;margin-left:6px}
.aidots i{width:6px;height:6px;border-radius:50%;background:#17803F;animation:aidot 1s infinite ease-in-out}
.aidots i:nth-child(2){animation-delay:.15s}.aidots i:nth-child(3){animation-delay:.3s}
@keyframes aidot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.aidots i{animation:none;opacity:.7}}
.aiadult{margin-top:8px;padding:8px 10px;border-radius:12px;background:#FFF0F3;border:2px solid #F4C4CF;color:#7A1E33;font-weight:800;font-size:15px}
details.aiorig{margin-top:6px}
details.aiorig summary{cursor:pointer;font-weight:800;color:#5E6584}
/* parent page */
.aipar h3{margin:0 0 6px}
.aipar h4{margin:14px 0 6px}
.aitest{font:800 11px/1 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;background:#E3F0FF;color:#2D6BE4;border-radius:999px;padding:4px 8px;vertical-align:middle;margin-left:6px}
.aiset{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:10px 0;padding:12px;border-radius:16px;background:#F3F7FF;border:2px solid #DCE6F8}
.aisw{display:flex;gap:8px;align-items:center;font-size:15px;cursor:pointer}
.aisw input{width:20px;height:20px}
.aisw.dim{opacity:.55;cursor:default}
.aicap select{font:inherit;padding:6px 8px;border-radius:10px;border:2px solid var(--line,#E3DDCB);margin-left:6px}
.aiev{border:2px solid var(--line,#E3DDCB);border-radius:12px;padding:8px 10px;margin:6px 0;background:var(--paper,#FBF8F0)}
.aiev summary{cursor:pointer;font-size:14px}
.aiev .small{margin-top:6px;line-height:1.5}
.aiday{margin-top:12px}
.aiday input{font:inherit;padding:4px 6px;border-radius:8px;border:2px solid var(--line,#E3DDCB)}
@media (max-width:600px){.aibox .aimsg{font-size:15px}.aiset{flex-direction:column;align-items:flex-start}}
/* inside the merged one-card (.bil1) */
.bil1 .aimsg{display:block;line-height:1.5}
.bil1 .aimsg[lang="am"]{font-size:1.05em;line-height:1.65}
.bil1 .aiadult{display:block;margin-top:8px;padding:8px 10px;border-radius:12px;background:#FFF0F3;border:2px solid #F4C4CF;color:#7A1E33;font-weight:800}
.bil1 h4 .aisteps{color:#17803F}
/* ---------- w23-ai-2 ---------- */
.aileft{display:block;margin-top:6px;font-size:13px;font-weight:700;opacity:.75}
svg.aivis{display:block;max-width:100%;height:auto;margin:8px 0 2px;background:#fff;border-radius:10px;padding:6px}
/* Phase 4: tell Bilcho your thinking */
.aiexp{margin:10px 0 4px;padding:12px;border-radius:18px;background:#F3F7FF;border:2px dashed #B9D3F5}
.aiexpq{display:block;font-weight:800;color:#14305A;margin-bottom:8px}
.aiexprow{display:flex;gap:8px;align-items:stretch}
.aiexprow textarea{flex:1;font:inherit;font-size:16px;padding:8px 10px;border-radius:12px;border:2px solid #CFDDF3;resize:vertical;min-height:48px}
.aiexprow .btn{flex:none}
.aibubble{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:16px;background:#DDF3E4;border:2px solid #B5DEC3;color:#17391F;font-weight:700;line-height:1.5}
.aibubble .bil{flex:none}
@media (max-width:600px){.aiexprow{flex-direction:column}}
/* Phase 5: Chat with Bilcho */
.aihome{display:flex;align-items:center;gap:14px;width:100%;margin:12px 0;padding:10px 18px 10px 10px;border-radius:22px;border:2px solid #B5DEC3;background:linear-gradient(90deg,#DDF3E4,#F2FBF5);color:#17391F;text-align:left;cursor:pointer;font:inherit}
.aihome:hover{border-color:#1E9E5A}
.aihome .bil{flex:none}
.aiht{flex:1;display:flex;flex-direction:column;gap:2px}
.aiht b{font-size:21px;font-weight:900}
.aiht span{font-size:15px;font-weight:700;color:#2F5A3A}
.aiarr{font-size:34px;font-weight:900;color:#1E9E5A}
.aihero .phart{display:flex;align-items:flex-end;justify-content:center}
.aichat{padding:12px}
.acwrap{display:grid;grid-template-columns:230px 1fr;gap:14px;min-height:520px}
.aclist{display:flex;flex-direction:column;gap:8px;border-right:2px dashed var(--line,#E3DDCB);padding-right:12px}
.acnew{width:100%}
.acconv{display:flex;flex-direction:column;gap:6px;overflow:auto;max-height:470px}
.acitem{display:flex;flex-direction:column;gap:2px;text-align:left;padding:8px 10px;border-radius:12px;border:2px solid var(--line,#E3DDCB);background:var(--paper,#FBF8F0);font:inherit;cursor:pointer}
.acitem b{font-size:14px}.acitem span{font-size:12px;opacity:.7}
.acitem[aria-current="true"]{border-color:#1E9E5A;background:#E8F7EE}
.acmain{display:flex;flex-direction:column;min-width:0}
.actitle{font-weight:900;font-size:18px;color:#17391F;margin:2px 0 8px}
.aclog{flex:1;min-height:340px;max-height:56vh;overflow:auto;padding:14px 12px;border-radius:18px;border:2px solid #E3DDCB;
  background:#FFFDF6 repeating-linear-gradient(#FFFDF6 0 31px,#DCE6F2 31px 32px);background-attachment:local;position:relative}
.aclog::before{content:"";position:absolute;top:0;bottom:0;left:34px;width:2px;background:#F4B9B9;opacity:.7}
.acmsg{display:flex;gap:8px;align-items:flex-end;margin:0 0 12px;position:relative}
.acmsg.me{justify-content:flex-end}
.acface .bil{display:block}
.acb{max-width:78%;padding:10px 14px;border-radius:18px;font-weight:700;line-height:1.5;font-size:16px}
.acmsg.bil .acb{background:#DDF3E4;border:2px solid #B5DEC3;color:#17391F;border-bottom-left-radius:6px}
.acmsg.me .acb{background:#E3F0FF;border:2px solid #B9D3F5;color:#14305A;border-bottom-right-radius:6px}
.acb.wait{opacity:.85}
.acempty{text-align:center;padding:18px 8px;position:relative}
.acempty .ach{font-weight:900;font-size:20px;margin:8px 0 4px;color:#17391F}
.acstart{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.acchip{font:inherit;font-weight:800;font-size:14px;padding:8px 12px;border-radius:999px;border:2px solid #B5DEC3;background:#fff;color:#17391F;cursor:pointer}
.acchip:hover{background:#E8F7EE}
.acform{display:flex;gap:8px;margin-top:10px}
.acform textarea{flex:1;font:inherit;font-size:16px;padding:10px 12px;border-radius:14px;border:2px solid #CFDDF3;resize:none}
.acmeta{font-size:13px;opacity:.75;margin:6px 2px 0}
.acerr{margin:6px 0;padding:8px 10px;border-radius:12px;background:#FFF0F3;border:2px solid #F4C4CF;color:#7A1E33;font-weight:800}
.acoff{display:flex;gap:12px;align-items:center}
.aiuse{border-collapse:collapse;font-size:14px;margin:4px 0}
.aiuse th,.aiuse td{border:1px solid var(--line,#E3DDCB);padding:5px 8px;text-align:left}
.aiuse th{background:#F3F7FF}
@media (max-width:760px){.acwrap{grid-template-columns:1fr;min-height:0}.aclist{border-right:0;border-bottom:2px dashed var(--line,#E3DDCB);padding:0 0 10px}.acconv{flex-direction:row;overflow-x:auto;max-height:none}.acitem{min-width:150px}.acb{max-width:88%}.aclog{max-height:60vh}.aihome .aiht b{font-size:18px}.aihome .bil{height:72px!important}}
#fb .aiexp{margin:8px 0 0;background:#F3F7FF;border-style:solid;box-shadow:0 10px 26px rgba(0,0,0,.25)}
#fb .aiexprow textarea{min-height:42px}
#fb .aibubble{margin-top:8px}
/* ---------- w23-ai-5: lesson feedback lives in the right-hand notebook ---------- */
section.qbox .qright.qfbon,section.qbox.qfix .qright.qfbon{overflow-y:auto!important;overscroll-behavior:contain;scroll-behavior:smooth}
section.qbox .qright #fb.fbnote{position:static;margin:10px 0 4px;z-index:auto}
section.qbox .qright #fb.fbnote .bil1,section.qbox .qright #fb.fbnote .bilbox{box-shadow:0 4px 12px rgba(0,0,0,.12);margin:0}
section.qbox .qright #fb.fbnote{position:relative;padding-top:6px}
section.qbox .qright #fb.fbnote .fbx{display:block;position:absolute;top:-6px;left:auto;right:12px;transform:none}
section.qbox .qright .fbpill{position:sticky;display:block;margin:8px 0 4px auto;bottom:8px;right:auto}
/* ---------- w23-ai-5: floating Chat with Bilcho (approved light-blue design) ---------- */
#bcWidget{--bcink:#14305A;--bcblue:#2F7BE0;font-family:Nunito,system-ui,sans-serif}
#bcWidget[hidden]{display:none!important}
.bclauncher{position:fixed;right:var(--bcR,22px);bottom:92px;z-index:65;display:flex;align-items:center;gap:10px;height:54px;padding:0 16px 0 64px;border-radius:999px;border:2px solid #9CC7F3;background:linear-gradient(180deg,#F3F9FF,#CFE6FD);color:var(--bcink);font:900 17px 'Baloo 2',Nunito,system-ui,sans-serif;box-shadow:0 8px 22px rgba(30,80,150,.28);cursor:pointer}
.bclauncher:hover{border-color:#5FA3EC}
.bclauncher:focus-visible{outline:3px solid #2F7BE0;outline-offset:3px}
.bclauncher .av{position:absolute;left:-4px;bottom:-2px;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#FFE9B8,#F6C46A);border:3px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.2);overflow:hidden;display:grid;place-items:end center}
.bclauncher .av img{height:74px;width:auto;margin-bottom:-6px}
.bclauncher svg{width:24px;height:24px;flex:none}
.bcwin{position:fixed;z-index:66;width:min(440px,calc(100vw - 32px));height:min(560px,calc(100vh - 190px));min-height:320px;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:#fff;border:2px solid #A9CFF5;box-shadow:0 18px 44px rgba(20,60,120,.30);color:var(--bcink)}
.bcwin[hidden]{display:none}
.bchd{position:relative;display:flex;align-items:center;gap:12px;padding:10px 16px 10px 92px;min-height:70px;background:linear-gradient(180deg,#DCEEFF,#B7D9FB);cursor:grab;border-bottom:2px solid #A9CFF5;user-select:none;touch-action:none;flex:none}
.bchd.dragging{cursor:grabbing}
.bchd:focus-visible{outline:3px solid #2F7BE0;outline-offset:-3px}
.bchd .av{position:absolute;left:14px;top:6px;width:66px;height:66px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#FFE9B8,#F6C46A);border:3px solid #fff;overflow:hidden;display:grid;place-items:end center;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.bchd .av img{height:78px;margin-bottom:-6px}
.bchd b{display:block;font:900 21px/1.1 'Baloo 2',Nunito,sans-serif}
.bchd small{display:block;font:700 14px Nunito,sans-serif;color:#3A5A86}
.bcbody{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(#F7FBFF,#EEF6FF);overscroll-behavior:contain}
.bcrow{display:flex;gap:8px;align-items:flex-end}
.bcrow.me{justify-content:flex-end}
.bcface{width:40px;height:40px;border-radius:50%;flex:none;overflow:hidden;background:#FFE9B8;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.15);display:grid;place-items:end center}
.bcface img{height:48px;margin-bottom:-4px}
.bcme{width:40px;height:40px;border-radius:50%;flex:none;object-fit:cover;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.bcme0{display:grid;place-items:center;background:#FFF1C4;font-size:22px}
.bcbub{max-width:78%;padding:10px 13px;border-radius:18px;font-weight:700;font-size:15.5px;line-height:1.45;overflow-wrap:anywhere}
/* Bilcho light green (same as his lesson cards), Nolawi light yellow */
.bcrow.bil .bcbub{background:#DDF3E4;border:1.5px solid #B5DEC3;color:#17391F;border-bottom-left-radius:6px}
.bcrow.me .bcbub{background:#FFF4CC;border:1.5px solid #F1DC8F;color:#4A3A0A;border-bottom-right-radius:6px}
.bcbub.bcwait{opacity:.85}
.bcbub svg.aivis{background:#fff}
.bcsugs{display:flex;flex-direction:column;gap:7px;margin-left:48px;align-items:flex-start}
.bcsug{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1.5px solid #B7D9FB;background:#fff;font:800 14.5px Nunito,sans-serif;color:var(--bcink);cursor:pointer;text-align:left}
.bcsug:hover{background:#EEF6FF;border-color:#7FB5EE}
.bcerr{margin:2px 0 0 48px;padding:8px 10px;border-radius:12px;background:#FFF0F3;border:2px solid #F4C4CF;color:#7A1E33;font-weight:800;font-size:14px}
.bccmp{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fff;border-top:2px solid #DCEEFF;flex:none}
.bccmp input{flex:1;min-width:0;border:2px solid #CFE3F8;border-radius:999px;padding:11px 14px;font:700 16px Nunito,sans-serif;background:#F7FBFF;color:var(--bcink)}
.bccmp input:focus{outline:none;border-color:#2F7BE0}
.bccmp .ib{width:40px;height:40px;border:0;border-radius:12px;background:#F1F7FF;display:grid;place-items:center;cursor:pointer;flex:none}
.bccmp .ib svg{width:24px;height:24px}
.bccmp .ib.on{background:#DDF3E4;box-shadow:0 0 0 3px rgba(30,158,90,.35);animation:bcpulse 1s infinite}
@keyframes bcpulse{50%{box-shadow:0 0 0 6px rgba(30,158,90,.15)}}
.bccmp .send{width:52px;height:46px;border:0;border-radius:14px;background:var(--bcblue);display:grid;place-items:center;box-shadow:0 3px 0 #1F5FB5;cursor:pointer;flex:none}
.bctib{height:12px;flex:none;background:repeating-linear-gradient(45deg,#2F7BE0 0 6px,#F2C14E 6px 12px,#1E9E5A 12px 18px,#F2C14E 18px 24px,#D7372B 24px 30px,#F2C14E 30px 36px);opacity:.85}
.bcconf{position:absolute;inset:0;background:rgba(20,48,90,.35);display:grid;place-items:center;z-index:5}
.bcconf[hidden]{display:none}
.bcconf .box{width:82%;background:#fff;border-radius:18px;padding:18px;border:2px solid #A9CFF5;box-shadow:0 10px 30px rgba(0,0,0,.25);text-align:center}
.bcconf .box p{font:800 16px/1.4 Nunito,sans-serif;margin:8px 0 14px}
.bcconf .box p span{font-weight:700;font-size:14px;color:#3A5A86}
.bcconf .r{display:flex;gap:10px;justify-content:center}
.bcconf button{font:900 15px Nunito,sans-serif;padding:10px 16px;border-radius:12px;border:2px solid #A9CFF5;background:#fff;color:var(--bcink);cursor:pointer}
.bcconf button.go{background:var(--bcblue);border-color:var(--bcblue);color:#fff}
/* phones and small tablets: the window becomes a bottom sheet; the launcher shrinks */
@media (max-width:640px){
 .bclauncher{right:12px;bottom:84px;height:48px;padding-left:56px;font-size:15px}
 .bclauncher .av{width:56px;height:56px}.bclauncher .av img{height:64px}
 .bcwin.sheet{left:0!important;right:0;top:auto!important;bottom:0;width:100%;height:86vh;max-height:none;border-radius:22px 22px 0 0;border-width:2px 0 0}
 #bcWidget.isopen .bclauncher{display:none}
 .bchd{cursor:pointer}
}
@media (prefers-reduced-motion:reduce){.bccmp .ib.on{animation:none}}
/* ---------- w23-ai-6: coffee-brown chat theme (bubbles stay green / yellow) ---------- */
#bcWidget .bclauncher{background:linear-gradient(180deg,#8A5A3B,#6B3F26);border-color:#4E2B17;color:#FFF4E2;box-shadow:0 8px 22px rgba(60,30,10,.32)}
#bcWidget .bclauncher svg path{stroke:#FFF4E2}
#bcWidget .bclauncher:hover{border-color:#C9915E}
#bcWidget .bcwin{border-color:#8A5A3B;box-shadow:0 18px 44px rgba(60,30,10,.32)}
#bcWidget .bchd{background:linear-gradient(180deg,#8A5A3B,#6B3F26);border-bottom-color:#4E2B17;color:#FFF4E2}
#bcWidget .bchd b{color:#FFF4E2}#bcWidget .bchd small{color:#F3D9B8}
#bcWidget .bcbody{background:linear-gradient(#FFFBF4,#FBF1E3)}
#bcWidget .bcsug{border-color:#E2CFAE}#bcWidget .bcsug:hover{background:#FBF1E3;border-color:#C9A06E}
#bcWidget .bccmp{border-top-color:#EFD9BA}
#bcWidget .bccmp input{border-color:#E2CFAE;background:#FFFBF4}#bcWidget .bccmp input:focus{border-color:#8A5A3B}
#bcWidget .bccmp .ib{background:#FBF1E3}
#bcWidget .bccmp .send{background:#6B3F26;box-shadow:0 3px 0 #4E2B17}
#bcWidget .bctib{background:repeating-linear-gradient(45deg,#6B3F26 0 6px,#F2C14E 6px 12px,#1E9E5A 12px 18px,#F2C14E 18px 24px,#D7372B 24px 30px,#F2C14E 30px 36px)}
#bcWidget .bcconf .box{border-color:#C9A06E}#bcWidget .bcconf button.go{background:#6B3F26;border-color:#6B3F26}
/* other LiQ worlds: their own colours (chat coming soon) */
#bcWidget.cw-fer .bclauncher,#bcWidget.cw-fer .bchd{background:linear-gradient(180deg,#FCE8F2,#F3C6DD);border-color:#D98AB3;color:#8E1F5C}
#bcWidget.cw-sin .bclauncher,#bcWidget.cw-sin .bchd{background:linear-gradient(180deg,#EAF3FF,#C9DFFB);border-color:#7FB2F0;color:#1F4FA0}
#bcWidget.cw-shu .bclauncher,#bcWidget.cw-shu .bchd{background:linear-gradient(180deg,#E9F7EF,#C4E8D3);border-color:#7CC69C;color:#0F6A45}
#bcWidget.cw-fer .bchd b,#bcWidget.cw-fer .bchd small{color:#8E1F5C}
#bcWidget.cw-sin .bchd b,#bcWidget.cw-sin .bchd small{color:#1F4FA0}
#bcWidget.cw-shu .bchd b,#bcWidget.cw-shu .bchd small{color:#0F6A45}
#bcWidget.cw-fer .bclauncher svg path{stroke:#8E1F5C}#bcWidget.cw-sin .bclauncher svg path{stroke:#1F4FA0}#bcWidget.cw-shu .bclauncher svg path{stroke:#0F6A45}
#bcWidget.cw-fer .bcwin{border-color:#D98AB3}#bcWidget.cw-sin .bcwin{border-color:#7FB2F0}#bcWidget.cw-shu .bcwin{border-color:#7CC69C}
#bcWidget:not(.cw-bil) .bclauncher .av,#bcWidget:not(.cw-bil) .bchd .av{background:#fff}
#bcWidget:not(.cw-bil) .bclauncher .av img,#bcWidget:not(.cw-bil) .bchd .av img{height:62px;margin-bottom:-2px}
#bcWidget .bccmp input:disabled,#bcWidget .bccmp button:disabled{opacity:.5;cursor:not-allowed}

/* ==== liq-home23.css ==== */
/* Math LiQ · Website 23 · Home page layout (approved Nov 3, Option B) — presentation only */
/* top panel: greeting + worlds, cream & gold */
body #view .hduo.htri.h23{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.95fr)!important;gap:22px!important;align-items:stretch!important;
  background:linear-gradient(180deg,#FFFBF0,#FFF3D6);border:3px solid #EBC874;border-radius:30px;padding:16px!important;box-shadow:0 8px 0 rgba(200,150,40,.14);margin-bottom:22px!important}
/* greeting: Bilcho, curved right edge, gold arc; no sun / mountain scene */
body #view .hgreet.h23g{position:relative;min-height:200px!important;display:flex!important;align-items:center!important;gap:6px;padding:0 20px 0 0!important;overflow:visible!important;
  border:3px solid #9CC7F3!important;border-radius:30px 140px 140px 30px/30px 50% 50% 30px!important;
  background:radial-gradient(120% 90% at 0% 100%,#DFF3D8 0 38%,transparent 39%),linear-gradient(180deg,#F4FAFF,#FFF9EC)!important;box-shadow:0 6px 0 rgba(47,123,224,.12)}
body #view .hgreet.h23g::after{content:"";position:absolute;right:-18px;top:-10px;bottom:-10px;width:38px;border-right:5px solid #F2B23A;border-radius:0 200px 200px 0/0 50% 50% 0;pointer-events:none}
body #view .hgreet.h23g>img:not(.h23kid){display:none!important}
body #view .hgreet.h23g img.h23kid{position:relative!important;display:block!important;height:185px!important;width:auto!important;max-width:none!important;flex:none;align-self:flex-end;margin:0 4px -4px 6px!important;-webkit-mask-image:none!important;mask-image:none!important;right:auto!important;bottom:auto!important;object-fit:contain!important;z-index:1}
body #view .hgreet.h23g .t{background:none!important;border:0!important;box-shadow:none!important;max-width:none!important;padding:0!important;z-index:2}
body #view .hgreet.h23g h1{font-size:34px!important;white-space:normal!important}
body #view .hgreet.h23g p{font-size:18px!important;max-width:240px!important}
/* explore your other LiQ worlds */
.lqw{display:flex;flex-direction:column;gap:10px;min-width:0}
.lqh{display:flex;align-items:center;gap:12px;justify-content:center;font:italic 900 24px 'Baloo 2',Nunito,sans-serif;color:#14305A;text-align:center}
.lqh::before,.lqh::after{content:"";height:4px;width:70px;border-radius:4px;background:linear-gradient(90deg,#F2C14E,#E59A1A);flex:none}
.lqh .cmp{width:42px;height:42px;border-radius:50%;background:#fff;border:3px solid #E59A1A;display:grid;place-items:center;font-size:24px;font-style:normal;box-shadow:0 2px 6px rgba(0,0,0,.12);flex:none}
.lqrow{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:14px;flex:1}
body #view .lqrow>button.lqb{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:10px;min-height:140px;min-width:0;padding:12px 14px 12px 8px;
  border-radius:24px!important;border:3px solid var(--b)!important;background:var(--bg)!important;box-shadow:0 6px 0 var(--sh);cursor:pointer;overflow:hidden;width:auto!important;height:auto!important}
body #view .lqrow>button.lqb:hover{filter:brightness(1.03);transform:translateY(-1px)}
body #view .lqrow>button.lqb:focus-visible{outline:3px solid var(--c);outline-offset:3px}
body #view .lqrow>button.lqb>*:not(.lq){display:none!important}
.lq{display:contents}
body #view .lqrow .lq img{height:104px;width:auto;max-width:42%;object-fit:contain;flex:none;align-self:flex-end;margin-bottom:-8px}
.lq .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-right:40px}
body #view .lqrow .lq b{font:900 20px/1.02 'Baloo 2',Nunito,sans-serif;color:var(--c)!important}
.lq i{font:800 16px Nunito,sans-serif;font-style:normal;color:#2A2A3A}
.lq .go{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center;font:900 22px system-ui}
.lq-inv{--bg:linear-gradient(180deg,#F1FAF5,#D9F0E3);--b:#8FCFAA;--c:#127A52;--sh:rgba(18,122,82,.18)}
.lq-life{--bg:linear-gradient(180deg,#F1F8FF,#D9EBFF);--b:#7FB2F0;--c:#1F5FC4;--sh:rgba(31,95,196,.18)}
.lq-eng{--bg:linear-gradient(180deg,#FCF1FF,#F2DDFB);--b:#D59BF0;--c:#A0308F;--sh:rgba(160,48,143,.18)}
/* bottom panel: the learning area, light blue */
body #view .dash.h23d{background:linear-gradient(180deg,#F2F7FF,#E3EEFF);border:3px solid #9CC2F0;border-radius:30px;padding:16px!important;box-shadow:0 8px 0 rgba(47,123,224,.12)}
/* "Coming next" in the freed bottom slot */
.nxcard{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:22px;border:2px solid #C9DAF5;background:linear-gradient(180deg,#FFFFFF,#EEF4FF);cursor:pointer;min-width:0}
.nxcard:focus-visible{outline:3px solid #3558D6;outline-offset:3px}
.nxcard .ic{width:64px;height:64px;border-radius:18px;background:#E4EEFF;display:grid;place-items:center;font-size:34px;flex:none}
.nxcard .nxt{min-width:0}
.nxcard .k{font:900 12px system-ui;letter-spacing:.08em;color:#3558D6;text-transform:uppercase}
.nxcard h3{margin:2px 0;font:900 19px/1.15 'Baloo 2',Nunito,sans-serif;color:#14203F}
.nxcard p{margin:0;font:700 13.5px/1.35 Nunito,sans-serif;color:#46516F}
.nxcard .lock{display:inline-block;margin-top:6px;padding:3px 10px;border-radius:999px;background:#FFF2D6;color:#8A5A00;font:800 12.5px Nunito,sans-serif}
.nxcard .go{margin-left:auto;width:38px;height:38px;border-radius:50%;background:#3558D6;color:#fff;display:grid;place-items:center;font:900 22px system-ui;flex:none}
/* tablets: greeting above the worlds */
@media (max-width:1050px){ body #view .hduo.htri.h23{grid-template-columns:1fr!important} body #view .hgreet.h23g{border-radius:30px!important} body #view .hgreet.h23g::after{display:none} }
/* phones: worlds stack */
@media (max-width:640px){
  body #view .hduo.htri.h23{padding:10px!important;gap:14px!important}
  body #view .hgreet.h23g{min-height:150px!important} body #view .hgreet.h23g img.h23kid{height:140px!important}
  body #view .hgreet.h23g h1{font-size:26px!important} body #view .hgreet.h23g p{font-size:15px!important}
  .lqh{font-size:19px}.lqh::before,.lqh::after{width:30px}
  .lqrow{grid-template-columns:1fr}
  body #view .lqrow>button.lqb{min-height:100px}
  body #view .lqrow .lq img{height:84px}
  body #view .dash.h23d{padding:10px!important}
}

/* ---------- Nov 3 · compact top (approved) ----------
   Banner: the new wide artwork, whole picture (crown kept) — shrunk, never cropped.
   Greeting + "Explore Your Other LiQ Worlds" share one light-yellow panel.
   Spacing between parts kept as tight as possible. */
html body #view .hduo.htri.h23{grid-template-columns:minmax(0,.95fr) 2px minmax(0,2fr)!important;gap:14px!important;padding:10px 14px!important;border:2px solid #EBC874!important;border-radius:22px!important;background:linear-gradient(180deg,#FFFCEE,#FFF4CF)!important;box-shadow:0 3px 0 rgba(200,150,40,.12)!important;margin:4px 0 6px!important;align-items:center!important}
html body #view .hduo.htri.h23::before{content:"";grid-column:2;grid-row:1;align-self:stretch;width:2px;margin:8px 0;background:linear-gradient(transparent,#E2B95A 20%,#E2B95A 80%,transparent);border-radius:2px}
html body #view .hgreet.h23g{grid-column:1;grid-row:1;min-height:0!important;height:124px!important;border:0!important;box-shadow:none!important;border-radius:18px!important;padding-right:6px!important;background:radial-gradient(120% 90% at 0% 100%,#E6F4DC 0 38%,transparent 39%),transparent!important}
html body #view .hgreet.h23g::after{display:none!important}
html body #view .hgreet.h23g img.h23kid{height:126px!important;margin:0 2px -2px 0!important}
html body #view .hgreet.h23g h1{font-size:26px!important}
html body #view .hgreet.h23g p{font-size:16px!important;margin-top:3px!important}
html body #view .hduo.htri.h23 .lqw{grid-column:3;grid-row:1;gap:5px!important}
html body #view .lqh{font-size:17px!important;gap:8px!important}
html body #view .lqh::before,html body #view .lqh::after{width:40px!important;height:3px!important}
html body #view .lqh .cmp{width:28px!important;height:28px!important;font-size:16px!important;border-width:2px!important}
html body #view .lqrow{gap:10px!important}
html body #view .lqrow>button.lqb{min-height:92px!important;height:92px!important;padding:6px 10px 6px 4px!important;border-width:2px!important;border-radius:18px!important;box-shadow:0 3px 0 var(--sh)!important;gap:6px!important}
html body #view .lqrow .lq img{height:80px!important;max-width:38%!important;margin-bottom:-6px!important}
html body #view .lqrow .lq b{font-size:17px!important}
html body #view .lq i{font-size:13px!important}
html body #view .lq .tx{padding-right:30px!important}
html body #view .lq .go{width:28px!important;height:28px!important;font-size:17px!important;right:9px!important;bottom:9px!important}
html body #view .dash.h23d{margin-top:0!important}
@media (max-width:1050px){
  html body #view .hduo.htri.h23{grid-template-columns:1fr!important;gap:8px!important}
  html body #view .hduo.htri.h23::before{display:none}
  html body #view .hduo.htri.h23 .lqw{grid-column:1;grid-row:2}
}
@media (max-width:640px){
  html body #view .hduo.htri.h23{display:block!important;padding:8px 10px!important;margin:4px 0!important}
  html body #view .hgreet.h23g{height:104px!important}
  html body #view .hgreet.h23g img.h23kid{height:102px!important}
  html body #view .hgreet.h23g h1{font-size:22px!important}
  html body #view .hgreet.h23g p{font-size:14px!important}
  html body #view .lqw.lqw-bottom{display:flex;flex-direction:column;margin:10px 0 6px!important;padding:10px!important;background:linear-gradient(180deg,#FFFCEE,#FFF4CF);border:2px solid #EBC874;border-radius:20px}
  html body #view .lqrow>button.lqb{height:82px!important;min-height:82px!important}
  html body #view .lqrow .lq img{height:70px!important}
}
/* tightest spacing on Home only */
html body main.wrap:has(> #view > .hduo.htri.h23){padding-top:2px!important}
html body #view:has(> .hduo.htri.h23){gap:8px!important}
html body #view .hduo.htri.h23{margin:0!important}
html body #view > .lqw.lqw-bottom{margin:0!important}

/* ==== liq-workrem.css ==== */
/* Math LiQ · Website 23 · "show your work" reminder card (Practice only) */
.wrrem{display:flex;gap:12px;align-items:center;margin:8px 0 4px;padding:10px 14px 10px 8px;background:linear-gradient(180deg,#FFFCEE,#FFF4CF);border:2px solid #EBC874;border-radius:16px;box-shadow:0 3px 0 rgba(200,150,40,.15);animation:wrIn .25s ease-out}
.wrrem img{width:62px;height:62px;object-fit:contain;flex:none}
.wrrem .wrtx{display:flex;flex-direction:column;gap:3px;color:#3B2A12;font-size:15px;line-height:1.35}
.wrrem .wrtx b{font-size:17px;color:#7A4A12}
.wrrem .wrbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.wrrem .wryes{background:#127A52;color:#fff;border:0;border-radius:12px;padding:8px 14px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #0B5537}
.wrrem .wrno{background:#fff;color:#5B4A2E;border:2px solid #E2C88E;border-radius:12px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}
label.workbox.wrpulse{outline:3px solid #F2B300;outline-offset:3px;border-radius:10px;animation:wrPulse 1.2s ease-in-out 2}
@keyframes wrIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes wrPulse{50%{outline-color:#FFE08A}}
@media (max-width:640px){.wrrem img{width:48px;height:48px}.wrrem .wrtx{font-size:14px}.wrrem .wrbtns button{flex:1 1 100%}}

/* ==== liq-compass.css ==== */
/* Math LiQ · Website 23 · Compass World Explorer (full screen, no header/banner/footer) */
html.lqc-open, html.lqc-open body{overflow:hidden!important}
.lqc{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;align-items:center;overflow:hidden;user-select:none;-webkit-user-select:none;
  background:linear-gradient(180deg,#CFE8FF 0%,#E4F2FF 42%,#F4FAFF 78%,#EAF5FF 100%);transition:opacity .45s ease,transform .45s ease;font-family:inherit}
.lqc.leaving{opacity:0;transform:scale(1.06)}
.lqc.entering .lqc-stage{transition:transform .6s cubic-bezier(.22,1,.36,1)}
/* soft clouds */
.lqc-sky{position:absolute;inset:0;pointer-events:none}
.lqc-sky::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 45% at 50% 58%,rgba(255,255,255,.75),transparent 70%)}
.lqc-sky .cl{position:absolute;display:block;background:#fff;border-radius:999px;opacity:.75;filter:blur(1px);animation:lqcDrift 60s linear infinite}
.lqc-sky .cl::before,.lqc-sky .cl::after{content:"";position:absolute;background:#fff;border-radius:50%}
.lqc-sky .cl::before{width:55%;height:180%;left:12%;bottom:20%}.lqc-sky .cl::after{width:40%;height:140%;right:12%;bottom:25%}
.lqc-sky .c1{width:180px;height:40px;top:9%;left:4%}
.lqc-sky .c2{width:130px;height:30px;top:20%;right:6%;animation-duration:75s;animation-direction:reverse}
.lqc-sky .c3{width:220px;height:46px;bottom:16%;left:-2%;opacity:.55;animation-duration:90s}
.lqc-sky .c4{width:150px;height:34px;bottom:24%;right:-1%;opacity:.5;animation-duration:80s;animation-direction:reverse}
@keyframes lqcDrift{0%,100%{transform:translateX(0)}50%{transform:translateX(40px)}}
/* heading area: reserved, never covered */
.lqc-head{position:relative;z-index:2;flex:none;text-align:center;padding:clamp(10px,2.6vh,28px) 16px clamp(4px,1vh,10px);max-width:900px}
.lqc-head h1{margin:0;font-size:clamp(24px,min(4.6vh,8vw),46px);line-height:1.1;font-weight:900;color:#1B2F6B;letter-spacing:-.01em;text-shadow:0 2px 0 #fff}
.lqc-head h1::after{content:"";display:block;width:64px;height:4px;margin:6px auto 0;border-radius:4px;background:linear-gradient(90deg,#F2C230,#E0A100)}
.lqc-head h2{margin:6px 0 0;font-size:clamp(16px,min(2.7vh,4.8vw),26px);line-height:1.2;font-weight:800;color:#24427E}
.lqc-head p{margin:4px 0 0;font-size:clamp(13px,min(2vh,3.7vw),18px);font-weight:600;font-style:italic;color:#4C6797}
/* compass stage fills the rest; SVG keeps its proportions (viewBox meet) */
.lqc-stage{position:relative;z-index:2;flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;padding:0 8px 4px}
#lqcSvg{width:100%;height:100%;max-width:min(100%,1100px);touch-action:none;outline:none;cursor:grab;filter:drop-shadow(0 10px 18px rgba(30,60,110,.18));overflow:visible}
#lqcSvg:active{cursor:grabbing}
#lqcSvg:focus,#lqcSvg:focus-visible{outline:none}
.lqc-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Tibeb border */
.cx-tibeb{position:absolute;left:0;right:0;bottom:0;width:100%;height:clamp(18px,2.6vh,24px);z-index:1;box-shadow:0 -2px 0 #E2B95A}

/* ---- SVG parts ---- */
.cx-dir{font:900 20px Georgia,serif;fill:#F3E5AB;transition:fill .25s}
.cx-dir.on{fill:#fff;filter:drop-shadow(0 0 6px #F2B300)}
.cx-gzt{font:700 28px "Noto Sans Ethiopic","Abyssinica SIL","Nyala",serif;fill:#F3E5AB}
.cx-gz{transition:transform .25s}
.cx-gz.on .cx-gzt{fill:#fff}.cx-gz.on circle:first-child{fill:#1E3A6D;filter:url(#cxGlow)}
.cx-sym{font-family:Georgia,serif;font-weight:900;fill:var(--sym,#fff)}
.cx-ind line{stroke:#D4AF37;transition:stroke .2s}
.cx-ind polygon{fill:#D4AF37;stroke:#5C3A16;transition:fill .2s}
.cx-ind circle{fill:#FFF8DC}
.cx-dest.near .cx-ind{filter:url(#cxGlow)}
.cx-dest.near .cx-ind line{stroke:#FFF8DC}
.cx-dest.near .cx-ind polygon{fill:var(--gl);stroke:#FFF8DC}
.cx-dest.aligned .cx-ind polygon{fill:#fff}
.cx-dest.aligned .cx-ind circle{fill:var(--c2)}
.cx-halo{stroke:transparent;stroke-width:3;transition:stroke .2s}
.cx-dest.near .cx-halo{stroke:var(--gl);opacity:.75}
.cx-dest.aligned .cx-halo{stroke:#FFF8DC;stroke-width:5;opacity:.95}
.cx-badge{cursor:pointer;transform-box:fill-box;transform-origin:center;transition:transform .25s cubic-bezier(.22,1,.36,1)}
.cx-dest.near .cx-badge{transform:scale(1.04)}
.cx-dest.aligned .cx-badge{transform:scale(1.09)}
.cx-dest.aligned .cx-frame{stroke:#fff;stroke-width:3}
.cx-rib rect{fill:var(--rib);stroke:#D4AF37;filter:url(#cxShadow)}
.cx-rib text{font:800 21px system-ui,-apple-system,"Segoe UI",sans-serif;fill:var(--tc);letter-spacing:.3px}
.cx-dest.near .cx-rib rect{stroke:#FFF8DC;stroke-width:2.6}
.cx-dest.aligned .cx-rib text{font-size:23px}
/* companions: gentle idle, brighter when their world is near */
.cx-comp{transform-box:fill-box;transform-origin:50% 100%;transition:filter .25s}
.cx-comp image{transform-box:fill-box;transform-origin:50% 100%}
.cx-wave image{animation:cxWave 4.6s ease-in-out infinite}
.cx-sway image{animation:cxSway 5.4s ease-in-out infinite}
.cx-hop image{animation:cxHop 5s ease-in-out infinite}
.cx-dest[data-w="english"] .cx-comp image{animation-delay:1.2s}
.cx-dest[data-w="invest"] .cx-comp image{animation-delay:2.1s}
.cx-dest[data-w="life"] .cx-comp image{animation-delay:.6s}
.cx-dest.near .cx-comp{filter:drop-shadow(0 0 10px var(--gl)) brightness(1.06)}
.cx-dest.aligned .cx-comp image{animation-duration:1.6s}
@keyframes cxWave{0%,70%,100%{transform:rotate(0)}76%{transform:rotate(-4deg)}84%{transform:rotate(3deg)}92%{transform:rotate(-2deg)}}
@keyframes cxSway{0%,100%{transform:rotate(0)}50%{transform:rotate(2.5deg)}}
@keyframes cxHop{0%,78%,100%{transform:translateY(0)}84%{transform:translateY(-6px)}90%{transform:translateY(0)}95%{transform:translateY(-3px)}}
/* needle */
.cx-ptr .cx-l{fill:#F7DC6F}.cx-ptr .cx-r{fill:#D4AC0D}
.lqc[data-state="approaching"] .cx-ptr .cx-l,.lqc[data-state="aligned"] .cx-ptr .cx-l{fill:#FFF6D6}
.lqc[data-state="approaching"] .cx-ptr .cx-r,.lqc[data-state="aligned"] .cx-ptr .cx-r{fill:#F5B041}
.cx-tip{stroke:var(--gc,#F2B300);stroke-width:.8}
.cx-beam{display:none}
.lqc[data-state="approaching"] .cx-beam,.lqc[data-state="aligned"] .cx-beam{display:block}
.cx-beam line{stroke:var(--gc,#F2B300);stroke-width:3.5;stroke-dasharray:5 4;opacity:.75}
.cx-beam circle{stroke:var(--gc,#F2B300)}
.lqc[data-state="aligned"] .cx-beam line{stroke:#FFF8DC;stroke-width:7;stroke-dasharray:none;opacity:.95}
.lqc[data-state="aligned"] .cx-beam circle{r:9}
.lqc.entering .cx-dest.chosen .cx-badge{transform:scale(1.18)}
@media (prefers-reduced-motion:reduce){.cx-comp image,.lqc-sky .cl{animation:none!important}}
/* short landscape screens: tighter heading */
@media (max-height:520px){.lqc-head{padding-top:6px}.lqc-head h1{font-size:22px}.lqc-head h1::after{display:none}.lqc-head h2{font-size:15px;margin-top:2px}.lqc-head p{font-size:12px;margin-top:1px}.lqc-stage{padding-bottom:2px}}
/* the Math LiQ banner only on the student home page */
html body[data-liqhome="0"] #hud #bigBanner.headbanner:not(.lab){display:none!important}
/* tall portrait screens (phones, upright tablets): keep heading and compass together, centred */
@media (max-aspect-ratio:4/5){
  .lqc{justify-content:center}
  .lqc-head{padding-top:0;margin-top:auto}
  .lqc-stage{flex:0 1 auto;width:100%;min-height:0;aspect-ratio:820/910;padding:0 6px}
  .lqc-stage #lqcSvg{height:100%}
}

/* speaker: top-right corner, like the companions' sound buttons; default on */
.lqc-spk{position:absolute;top:clamp(10px,2vh,18px);right:clamp(10px,2vw,22px);z-index:5;width:46px;height:46px;border-radius:50%;border:2px solid #C9DCF5;background:#fff;color:#1B2F6B;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 0 rgba(30,60,110,.12)}
.lqc-spk svg{width:24px;height:24px;fill:currentColor}
.lqc-spk.off{color:#7A8BA8;background:#F4F7FC}
.lqc-spk:focus-visible{outline:3px solid #2563EB;outline-offset:2px}
@media (max-width:640px){.lqc-spk{width:40px;height:40px}.lqc-spk svg{width:21px;height:21px}}
/* 🧭 button in the blue bar */
#hud #cxIc{font-size:20px;line-height:1}
/* cover until sign-in is finished: drawn from the very first paint (below the login form, above the app).
   It removes itself after 15 s even if something went wrong, so the site can never stay hidden. */
body::after{content:"";position:fixed;inset:0;z-index:150;pointer-events:none;background:linear-gradient(180deg,#CFE8FF 0%,#E4F2FF 42%,#F4FAFF 78%,#EAF5FF 100%);animation:lqcCoverOff 0s linear 15s forwards}
html.lqc-done body::after{display:none}
@keyframes lqcCoverOff{to{visibility:hidden}}

/* neighborhood footer row: under the compass, resting on the Tibeb border (never over the Life LiQ button) */
.lqc .lqc-foot{margin-top:auto;margin-bottom:clamp(18px,2.6vh,24px)}

/* Nov 5: the neighborhood footer is the only ambient animation on the compass screen.
   Companions stand still and the clouds stay put; the compass still responds when turned. */
/* test45 (Beti's spec 4A): the companions wait playfully again — Bilcho hops, Shulka sways, Mr. Ferenji waves, Sinzro bobs —
   each on its own rhythm, calmer while the compass is being turned to them (reduced motion: still). */
.lqc .cx-comp image{animation:cxHop 4.2s ease-in-out infinite}
.lqc .cx-dest[data-w="invest"] .cx-comp image{animation:cxSway 3.8s ease-in-out infinite;animation-delay:.9s}
.lqc .cx-dest[data-w="english"] .cx-comp image{animation:cxWave 4s ease-in-out infinite;animation-delay:1.5s}
.lqc .cx-dest[data-w="life"] .cx-comp image{animation:cxBob 3.4s ease-in-out infinite;animation-delay:.4s}
@keyframes cxBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.lqc .lqc-sky .cl{animation:none!important}

/* ==== liq-compass-footer.css ==== */
/* Math LiQ · Website 23 · Compass footer — LiQ Worlds animated neighborhood (compass screen only) */
.lqc .lqc-foot{position:relative;flex:none;width:100%;overflow:hidden;line-height:0;user-select:none;-webkit-user-select:none;pointer-events:none;z-index:1;
  font-family:"Noto Sans Ethiopic","Nyala","Abyssinica SIL","Kefa",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.lqc .lqc-foot .nbf-svg{display:block;width:100%;height:100%}
/* the airplane's sky layer: behind the heading (z 2) and the compass stage (z 2) */
.lqc .nbf-sky{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:hidden}
.lqc .lqc-foot.nbf-still *{animation:none!important}
@media (prefers-reduced-motion:reduce){.lqc .lqc-foot *,.lqc .nbf-sky *{animation:none!important}}
@keyframes nbf-treeSwaySlow {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(1.7deg); }
    }

    @keyframes nbf-treeSwayMedium {
      0%, 100% { transform: rotate(-0.9deg); }
      50% { transform: rotate(1.5deg); }
    }

    @keyframes nbf-shrubBreeze {
      0%, 100% { transform: scaleX(1) skewX(0deg); }
      50% { transform: scaleX(1.015) skewX(1.2deg); }
    }

    @keyframes nbf-cloudDriftSlow {
      0% { transform: translateX(0px); }
      50% { transform: translateX(28px); }
      100% { transform: translateX(0px); }
    }

    @keyframes nbf-cloudDriftReverse {
      0% { transform: translateX(0px); }
      50% { transform: translateX(-24px); }
      100% { transform: translateX(0px); }
    }

    @keyframes nbf-beaconBlink {
      0%, 100% { opacity: 0.25; }
      50% { opacity: 1; }
    }

    .lqc .nbf-sway-slow {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: nbf-treeSwaySlow 6.4s ease-in-out infinite;
    }

    .lqc .nbf-sway-medium {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: nbf-treeSwayMedium 5.2s ease-in-out infinite;
    }

    .lqc .nbf-sway-shrub {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: nbf-shrubBreeze 4.6s ease-in-out infinite;
    }

    .lqc .nbf-cloud-a {
      animation: nbf-cloudDriftSlow 32s ease-in-out infinite;
    }

    .lqc .nbf-cloud-b {
      animation: nbf-cloudDriftReverse 38s ease-in-out infinite;
    }

    .lqc .nbf-plane-beacon {
      animation: nbf-beaconBlink 1.6s ease-in-out infinite;
    }

    /* Typography for Physical Signage & Amharic Script */
    .lqc .nbf-sign-text {
      font-family: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", "Segoe UI", Roboto, sans-serif;
      font-weight: 700;
      letter-spacing: 0.2px;
    }

    .lqc .nbf-sign-subtext {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-weight: 600;
      letter-spacing: 0.15px;
    }

    .lqc .nbf-building-title {
      font-family: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", "Segoe UI", Roboto, sans-serif;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
  
/* ==== liq-home24.css ==== */
/* Math LiQ · Website 23 · Student home page layout (Nov 5) — notebook + right column */
html body #view.h24v > .hduo.h24off,html body #view.h24v > .hduo[hidden]{display:none!important}
html body #view.h24v .dash.h24.h24{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px!important;align-items:stretch;
  background:none!important;border:0!important;box-shadow:none!important;padding:4px 0 0!important;margin-top:6px!important}
html body #view.h24v .dash.h24.h24 > *{margin:0!important;min-width:0}
html body #view.h24v .dash.h24.h24 > .h24-now{grid-area:1 / 1 / span 2 / span 7!important}
html body #view.h24v .dash.h24.h24 > .h24-prog{grid-area:1 / 8 / span 1 / span 5!important}
html body #view.h24v .dash.h24.h24 > .h24-chp{grid-area:2 / 8 / span 1 / span 5!important}
html body #view.h24v .dash.h24.h24 > .h24-board{grid-area:3 / 1 / span 1 / span 5!important}
html body #view.h24v .dash.h24.h24 > .h24-week{grid-area:3 / 6 / span 1 / span 3!important}
html body #view.h24v .dash.h24.h24 > .h24-wins{grid-area:3 / 9 / span 1 / span 4!important}
html body #view.h24v .dash.h24.h24 > .h24-next{grid-area:4 / 1 / span 1 / span 6!important}
html body #view.h24v .dash.h24.h24 > .h24-lab{grid-area:4 / 7 / span 1 / span 6!important}
html body #view.h24v .dash.h24.h24 > .h24-more{grid-area:auto / 1 / auto / -1!important}

/* shared cream + gold panel look (the corkboard, Coming next and Math Lab keep their own looks) */
.dash.h24 > .h24-prog,.dash.h24 > .h24-chp,.dash.h24 > .h24-week,.dash.h24 > .h24-wins{background:linear-gradient(180deg,#FFFDF5,#FFF6DD)!important;border:2px solid #EED69A!important;border-radius:22px!important;box-shadow:0 4px 0 rgba(200,150,40,.13),inset 0 0 0 4px rgba(255,255,255,.6)!important}
.dash.h24 .h24h{display:flex;align-items:center;gap:10px;font:900 22px/1.15 var(--display,system-ui);color:#1B2F6B;letter-spacing:-.01em;text-transform:none!important;margin:0 0 10px!important}
.dash.h24 .h24bars{display:inline-flex;align-items:flex-end;gap:3px;height:22px}.dash.h24 .h24bars i{display:block;width:6px;border-radius:2px;background:#F2B300}
.dash.h24 .h24bars i:nth-child(1){height:9px}.dash.h24 .h24bars i:nth-child(2){height:15px;background:#F59E0B}.dash.h24 .h24bars i:nth-child(3){height:22px;background:#16A34A}
.dash.h24 .h24cal{font-size:22px}
.dash.h24 .h24-chp .icons{gap:12px!important;align-items:center!important}
.dash.h24 .h24-chp .icons > .ic{height:auto!important;min-height:150px;align-self:center!important}
.dash.h24 .h24-chp .ic{background:#FFFDF6!important;border:2px solid #EFDDB0!important;border-radius:16px!important;box-shadow:0 3px 0 rgba(200,150,40,.12)!important}

/* ---------- the notebook ---------- */
html body #view .dash.h24 > .p.now.nb{position:relative!important;overflow:visible!important;padding:18px 34px 22px 66px!important;border:2px solid #E9CF8E!important;border-radius:20px!important;
  background:
    linear-gradient(90deg,transparent 52px,#F4C9C9 52px 54px,transparent 54px),
    repeating-linear-gradient(180deg,transparent 0 33px,#E7EEF8 33px 34px),
    linear-gradient(180deg,#FFFEF8,#FFF8E6)!important;
  box-shadow:6px 6px 0 #F6E6BC,12px 12px 0 #EFD9A0,0 14px 26px rgba(120,90,30,.16)!important;display:flex!important;flex-direction:column!important;gap:10px!important}
html body #view .dash.h24 > .p.now.nb > .nbring{grid-area:auto/auto/auto/auto!important;position:absolute!important;left:-16px!important;top:22px!important;bottom:22px!important;width:52px!important;height:auto!important;margin:0!important;padding:0!important;pointer-events:none;
  background:radial-gradient(ellipse 19px 8px at 26px 50%,transparent 48%,#C8963E 52% 66%,#8A6220 68% 72%,transparent 76%) 0 0/52px 36px repeat-y}
html body #view .dash.h24 > .p.now.nb::after{content:"";position:absolute!important;grid-area:auto/auto/auto/auto!important;left:30px;top:22px;bottom:22px;width:12px;pointer-events:none;
  background:radial-gradient(circle at 6px 50%,#E7D3A2 0 4px,#C9B27A 4.5px 5px,transparent 5.5px) 0 0/12px 36px repeat-y}
html body #view .dash.h24 > .p.now.nb > .nbtabs{grid-area:auto/auto/auto/auto!important;position:absolute!important;right:-16px!important;left:auto!important;top:70px!important;margin:0!important;display:flex;flex-direction:column;gap:12px;pointer-events:none}
.dash.h24 > .p.now.nb .nbtabs i{display:block;width:18px;height:56px;border-radius:0 10px 10px 0;box-shadow:inset -3px 0 0 rgba(0,0,0,.08),2px 2px 0 rgba(0,0,0,.06)}
.dash.h24 > .p.now.nb .nbtabs i:nth-child(1){background:#F28BAA}.dash.h24 > .p.now.nb .nbtabs i:nth-child(2){background:#F7B84B}
.dash.h24 > .p.now.nb .nbtabs i:nth-child(3){background:#6CC48A}.dash.h24 > .p.now.nb .nbtabs i:nth-child(4){background:#5AA8E6}
/* unit header: blue unit tab, big unit title, yellow "All lessons" tab */
.dash.h24 > .p.now.nb > .nunit{position:relative;display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 12px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;text-align:left;cursor:pointer}
.dash.h24 > .p.now.nb > .nunit > span{grid-column:1;grid-row:1;justify-self:start;background:linear-gradient(180deg,#2F7BEA,#1D5BC9)!important;color:#fff!important;font:800 18px/1 var(--display,system-ui)!important;letter-spacing:.01em!important;text-transform:none!important;padding:10px 20px!important;border-radius:14px 26px 14px 14px!important;box-shadow:0 4px 0 #154497!important}
.dash.h24 > .p.now.nb > .nunit > i{grid-column:3;grid-row:1;font-style:normal!important;background:linear-gradient(180deg,#FFE58A,#F6C945)!important;color:#5B4205!important;font:800 15px/1 var(--display,system-ui)!important;padding:9px 16px!important;border-radius:999px!important;box-shadow:0 3px 0 #D9A520!important;white-space:nowrap}
.dash.h24 > .p.now.nb > .nunit > b{grid-column:1 / -1;grid-row:2;font:900 clamp(22px,calc(2.1 * var(--uxvw,1vw)),30px)/1.15 var(--display,system-ui)!important;color:#14244F!important;margin-top:6px}
/* the lesson page inside the notebook */
.dash.h24 > .p.now.nb > .nbpage{position:relative;background:rgba(255,255,255,.82);border:2px dashed #E6D7AE;border-radius:18px;padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.dash.h24 > .p.now.nb > .nbpage > .k{align-self:flex-start;background:#EAF2FF!important;color:#1D5BC9!important;border-radius:999px;padding:7px 14px!important;font:800 15px/1 var(--display,system-ui)!important;text-transform:none!important;letter-spacing:0!important}
.dash.h24 > .p.now.nb > .nbpage > h2{font:900 clamp(26px,calc(2.6 * var(--uxvw,1vw)),38px)/1.1 var(--display,system-ui)!important;color:#14244F!important;margin:2px 0 0!important}
.dash.h24 > .p.now.nb > .nbpage .ngoal{font-size:16px}
.dash.h24 > .p.now.nb > .nbpage .nowpic{background:#fff;border:2px solid #E3EAF5;border-radius:14px;box-shadow:0 3px 0 rgba(30,60,110,.08)}
.dash.h24 > .p.now.nb > .nbpage .btn.go{margin-top:auto!important;align-self:center;min-width:min(100%,420px);background:linear-gradient(180deg,#2F7BEA,#1D5BC9)!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:0 5px 0 #154497,0 10px 18px rgba(29,91,201,.25)!important;font-size:22px!important;padding:16px 28px!important}
.dash.h24 > .p.now.nb > .nbpage .btn.go.teal{background:linear-gradient(180deg,#22B39C,#11907E)!important;box-shadow:0 5px 0 #0B6B5D,0 10px 18px rgba(17,144,126,.25)!important}

/* ---------- tablet ---------- */
@media (max-width:1050px){
  html body #view.h24v .dash.h24.h24{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body #view.h24v .dash.h24.h24 > [class*="h24-"]{grid-area:auto / auto / auto / auto!important}
  html body #view.h24v .dash.h24.h24 > [class*="h24-"].h24-now,html body #view.h24v .dash.h24.h24 > [class*="h24-"].h24-lab,html body #view.h24v .dash.h24.h24 > [class*="h24-"].h24-more{grid-area:auto / 1 / auto / -1!important}
}
/* ---------- phone: one column, in this order ---------- */
@media (max-width:640px){
  html body #view.h24v .dash.h24.h24{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  html body #view.h24v .dash.h24.h24 > [class*="h24-"],html body #view.h24v .dash.h24.h24 > [class*="h24-"][class]{grid-area:auto / 1 / auto / -1!important}
  html body #view .dash.h24 > .p.now.nb{padding:14px 18px 18px 50px!important;box-shadow:4px 4px 0 #F6E6BC,8px 8px 0 #EFD9A0,0 10px 20px rgba(120,90,30,.14)!important}
  html body #view .dash.h24 > .p.now.nb > .nbring{left:-14px!important;width:44px!important;width:44px;background-size:44px 32px;background-image:radial-gradient(ellipse 16px 7px at 22px 50%,transparent 48%,#C8963E 52% 66%,#8A6220 68% 72%,transparent 76%)}
  html body #view .dash.h24 > .p.now.nb::after{left:24px;background-size:12px 32px}
  html body #view .dash.h24 > .p.now.nb > .nbtabs{right:-10px!important;gap:8px}.dash.h24 > .p.now.nb .nbtabs i{width:12px;height:40px}
  .dash.h24 > .p.now.nb > .nunit > span{font-size:15px!important;padding:8px 14px!important}
  .dash.h24 > .p.now.nb > .nunit > i{font-size:13px!important;padding:7px 12px!important}
  .dash.h24 > .p.now.nb > .nbpage .btn.go{font-size:19px!important;padding:14px 20px!important;min-width:100%}
}
html body #view.h24v > .lqw,html body #view.h24v .lqw.lqw-bottom{display:none!important}
/* phone + tablet order: notebook, My Progress, Upcoming Challenges, Message Board, This week, Recent wins, Coming next, Math Lab */
@media (max-width:1050px){
  html body #view.h24v .dash.h24.h24 > .h24-now{order:1}
  html body #view.h24v .dash.h24.h24 > .h24-prog{order:2}
  html body #view.h24v .dash.h24.h24 > .h24-chp{order:3}
  html body #view.h24v .dash.h24.h24 > .h24-board{order:4}
  html body #view.h24v .dash.h24.h24 > .h24-week{order:5}
  html body #view.h24v .dash.h24.h24 > .h24-wins{order:6}
  html body #view.h24v .dash.h24.h24 > .h24-next{order:7}
  html body #view.h24v .dash.h24.h24 > .h24-lab{order:8}
  html body #view.h24v .dash.h24.h24 > .h24-more{order:9}
}
/* phones: lesson step buttons wrap into rows of three instead of being cut off */
@media (max-width:640px){
  html body #view .dash.h24 > .p.now.nb > .nbpage{padding:12px 10px 14px}
  html body #view .dash.h24 > .p.now.nb .nsteps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 6px!important}
  html body #view .dash.h24 > .p.now.nb .nsteps .nst button{white-space:nowrap;overflow:visible;text-overflow:clip;font-size:14px!important;padding:8px 4px!important;width:100%}
}

/* ==== liq-certs24.css ==== */
/* Math LiQ · Website 23 · Certificate Wall (Nov 5). Fonts: Lora (SIL Open Font License 1.1), see fonts/README.txt */
@font-face{font-family:'Lora LiQ';src:url(../fonts/Lora-Variable.woff) format('woff');font-weight:400 700;font-display:swap}
@font-face{font-family:'Lora LiQ Italic';font-style:italic;src:url(../fonts/Lora-Italic-Variable.woff) format('woff');font-weight:400 700;font-display:swap}

/* page below the protected header: cream + gold */
#view section.card.cw-page{background:linear-gradient(180deg,#FFFDF6,#FFF6DF)!important;border:2px solid #EED69A!important;box-shadow:0 5px 0 rgba(200,150,40,.14),inset 0 0 0 5px rgba(255,255,255,.65)!important;border-radius:26px!important}
.cw-wall{display:flex;flex-direction:column;gap:14px}
.cw-head{display:flex;align-items:center;gap:10px}
.cw-head .cw-medal{font-size:30px;filter:drop-shadow(0 2px 0 rgba(0,0,0,.08))}
.cw-head h2{margin:0;font:900 clamp(22px,calc(2.4 * var(--uxvw,1vw)),30px)/1.1 var(--display,system-ui);color:#1B2F6B}
.cw-head h2 span{color:#B8860B}
.cw-svg{display:block;width:100%;height:auto}
/* one certificate: large, with details + actions */
.cw-onegrid{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:28px;align-items:center;justify-content:center}
.cw-big,.cw-feature{position:relative;display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:10px;box-shadow:0 18px 36px rgba(110,80,20,.28),0 3px 0 rgba(110,80,20,.2);transition:transform .2s ease,box-shadow .2s ease}
.cw-big:hover,.cw-feature:hover{transform:translateY(-3px);box-shadow:0 24px 44px rgba(110,80,20,.32),0 3px 0 rgba(110,80,20,.2)}
.cw-big:focus-visible,.cw-feature:focus-visible,.cw-thumb:focus-visible{outline:4px solid #2F7BEA;outline-offset:4px}
.cw-zoom{position:absolute;right:12px;bottom:12px;width:40px;height:40px;border-radius:50%;background:rgba(20,36,79,.82);color:#fff;display:grid;place-items:center;font-size:20px}
.cw-info{display:flex;flex-direction:column;gap:8px;max-width:420px}
.cw-kick{font:800 14px/1 var(--display,system-ui);color:#A67308;text-transform:uppercase;letter-spacing:.06em}
.cw-info h3{margin:0;font:700 clamp(22px,calc(2.2 * var(--uxvw,1vw)),30px)/1.2 'Lora LiQ',Georgia,serif;color:#9B1C1C}
.cw-meta{margin:0;font-size:18px;color:#2A2A2A}.cw-meta b{color:#14244F}
.cw-for{margin:0;color:#4B4B4B;line-height:1.5}
.cw-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.cw-btn{font:800 16px/1 var(--display,system-ui);padding:12px 18px;border-radius:999px;border:2px solid #E3C77E;background:#fff;color:#14244F;cursor:pointer;box-shadow:0 3px 0 #E3C77E}
.cw-btn.cw-view{background:linear-gradient(180deg,#2F7BEA,#1D5BC9);color:#fff;border-color:#1D5BC9;box-shadow:0 3px 0 #154497}
/* many certificates: newest large + thumbnail gallery */
.cw-manygrid{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:26px;align-items:start}
.cw-new{position:absolute;right:14px;top:14px;background:#9B1C1C;color:#fff;font:800 13px/1 var(--display,system-ui);padding:6px 10px;border-radius:999px}
.cw-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:16px}
.cw-thumb{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:14px;border:2px solid #EED69A;background:#FFFDF6;cursor:zoom-in;box-shadow:0 4px 0 rgba(200,150,40,.15);transition:transform .15s ease}
.cw-thumb:hover{transform:translateY(-3px)}
.cw-thumb.cwt-blue{border-color:#9DBCF0}.cw-thumb.cwt-teal{border-color:#8FD3C8}.cw-thumb.cwt-navy{border-color:#A9B2DA}.cw-thumb.cwt-premium{border-color:#E8C14A}
.cw-tsvg{display:block;border-radius:6px;overflow:hidden;box-shadow:0 4px 10px rgba(110,80,20,.2)}
.cw-tcap{display:flex;justify-content:space-between;font:700 13px/1.2 var(--display,system-ui);color:#4B4B4B}.cw-tcap b{color:#14244F}
/* empty */
.cw-emptybox{display:flex;align-items:center;gap:20px}.cw-ghost{width:150px;opacity:.28;filter:grayscale(.6)}.cw-emptybox p{font-size:17px;color:#4B4B4B}
/* viewer */
html.cw-lock,html.cw-lock body{overflow:hidden!important}
.cw-viewer{position:fixed;inset:0;z-index:2147483200;background:rgba(10,16,32,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));animation:cwIn .2s ease-out}
.cw-viewer:fullscreen{background:#0A1020}
.cw-stage{flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.cw-paper{height:100%;max-height:100%;aspect-ratio:850/1100;max-width:100%;display:flex;align-items:center}
.cw-paper .cw-svg{width:100%;height:auto;max-height:100%;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.cw-x{position:absolute;top:max(12px,env(safe-area-inset-top));right:14px;width:48px;height:48px;border-radius:50%;border:2px solid rgba(255,255,255,.75);background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer;z-index:2}
.cw-bar{flex:none;display:flex;align-items:center;gap:14px;margin-top:12px;color:#fff;width:min(100%,720px)}
.cw-nav{width:50px;height:50px;border-radius:50%;border:2px solid rgba(255,255,255,.75);background:rgba(255,255,255,.08);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.cw-nav:disabled{opacity:.3;cursor:default}
.cw-count{font:800 20px/1 var(--display,system-ui);min-width:72px;text-align:center}
.cw-sp{flex:1}
.cw-tool{width:48px;height:48px;border-radius:12px;border:2px solid rgba(255,255,255,.75);background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer}
.cw-x:focus-visible,.cw-nav:focus-visible,.cw-tool:focus-visible{outline:3px solid #FFD54A;outline-offset:2px}
.cw-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:2147483300;background:#14244F;color:#fff;padding:12px 16px;border-radius:12px;font-weight:700;max-width:90vw}
@keyframes cwIn{from{opacity:0}to{opacity:1}}
/* print: only the certificate, one page */
#cwPrint{display:none}
@media print{
  html.cw-printing body > *:not(#cwPrint){display:none!important}
  html.cw-printing #cwPrint{display:block!important;position:static}
  html.cw-printing #cwPrint .cw-svg{width:100%;height:auto;max-height:100vh}
  @page{size:letter portrait;margin:8mm}
}
/* tablet + phone */
@media (max-width:1050px){ .cw-onegrid,.cw-manygrid{grid-template-columns:minmax(0,1fr)} .cw-big{max-width:560px;margin:0 auto;width:100%} .cw-info{max-width:none;align-items:center;text-align:center} .cw-acts{justify-content:center} .cw-feature{display:none} }
@media (max-width:640px){ .cw-thumbs{grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:10px} .cw-tcap{font-size:12px} .cw-bar{gap:8px} .cw-nav{width:44px;height:44px} .cw-tool{width:42px;height:42px;font-size:19px} .cw-btn{font-size:15px;padding:11px 14px} }
#view .cw-oldcert,#view .cw-oldlist{display:none!important}

/* ==== liq-profile25.css ==== */
/* Website 23 (Nov 8 build) · Student Profile (forest green, cream, white, gold). Only the profile body; the header and blue bar are untouched. */
.p25{ --ink:#1F2747; --muted:#5E6584; --pg:#1F5E32; --pg2:#2E7D43; --pgs:#E6F2E8; --cream:#FFFBF1; --gold:#D9A520; --gold2:#F6D35A; --pink:#1F2747;
  display:flex; flex-direction:column; gap:14px; font-family:var(--body); color:var(--ink); }
.p25 .small{ font-size:13px; } .p25 .muted{ color:var(--muted); }
.p25-card{ background:#fff; border:1.5px solid #E8DFC6; border-radius:20px; box-shadow:0 3px 0 rgba(31,94,50,.08),0 8px 24px rgba(31,39,71,.06); overflow:hidden; display:flex; flex-direction:column; min-width:0; }
.p25-h{ display:flex; align-items:center; gap:10px; margin:12px 12px 0; padding:9px 14px; border-radius:14px; color:#fff; background:linear-gradient(90deg,var(--pg),var(--pg2) 70%,#8DBF7A); }
.p25-h h2{ margin:0; font:800 19px/1.1 var(--display); color:#fff; flex:1; }
.p25-h > span{ font-size:18px; }
.p25-b{ padding:12px 16px 16px; flex:1; display:flex; flex-direction:column; gap:8px; }
.p25-row3{ display:grid; grid-template-columns:1.05fr 1.25fr 1fr; gap:14px; }
.p25-row2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.p25-c{ text-align:center; }
/* rank crest (the existing Ge'ez crest, photo inside) */
.p25-rank{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.p25-rank .crest{ width:min(230px,100%); margin:0 auto; }
.p25-rankt{ text-align:center; display:flex; flex-direction:column; }
.p25-rankt b{ font:800 20px/1.1 var(--display); color:var(--pg); }
.p25-am{ font-family:var(--am); font-weight:700; color:#8A6A12; }
.p25-crestfb img{ width:150px; height:150px; border-radius:50%; object-fit:cover; border:6px solid var(--gold); }
/* title */
.p25-title{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; }
.p25-tn{ font:800 26px/1.1 var(--display); color:#14213D; }
.p25-pill{ background:linear-gradient(90deg,#EAF6D9,#F7FBEA); color:var(--pg); font:800 18px var(--display); padding:4px 18px; border-radius:999px; border:1.5px solid #CFE6B8; }
.p25-title p{ margin:0; color:var(--muted); }
.p25-bar{ display:block; width:100%; height:12px; background:#E5E9EF; border-radius:999px; overflow:hidden; }
.p25-bar i{ display:block; height:100%; background:linear-gradient(90deg,var(--pg),#3FA35A); border-radius:999px; }
/* next badge */
.p25-badge{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; }
.p25-be{ width:96px; height:96px; display:grid; place-items:center; font-size:52px; border-radius:24px; background:radial-gradient(circle at 50% 40%,#FFF6D6,#F6E3A8); border:4px solid var(--gold); box-shadow:inset 0 -6px 0 rgba(0,0,0,.06); }
.p25-badge b{ font:800 20px var(--display); color:#14213D; } .p25-badge p{ margin:0; }
/* summary */
.p25-sum{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; background:var(--cream); border:1.5px solid #E8DFC6; border-radius:20px; padding:12px; }
.p25-stat{ background:#fff; border:1.5px solid #E8DFC6; border-radius:16px; padding:10px 8px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:8px; align-items:center; }
.p25-stat .p25-si{ grid-row:1/3; font-size:28px; }
.p25-stat b{ font:800 24px/1 var(--display); color:#14213D; }
.p25-stat > span:last-child{ font-size:13px; color:var(--muted); font-weight:700; }
/* progress */
.p25-pw{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; row-gap:5px; align-items:center; padding:7px 0; border-bottom:1px dashed #E8DFC6; }
.p25-pw:last-child{ border-bottom:0; }
.p25-wi{ grid-row:1/3; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:color-mix(in srgb,var(--wc) 14%,#fff); font-size:19px; }
.p25-pt{ display:flex; flex-direction:column; min-width:0; } .p25-pt b{ font-size:15px; } .p25-pt .small{ line-height:1.2; }
.p25-pw .p25-bar{ grid-column:2/4; grid-row:2; height:10px; }
.p25-pp{ grid-column:3; grid-row:1; font-weight:800; font-size:14px; color:var(--pg); }
/* achievements */
.p25-ach{ display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px; }
.p25-ai{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:8px 4px; border-radius:14px; background:var(--cream); border:1.5px solid #EFE4C6; }
.p25-ai span{ font-size:30px; } .p25-ai b{ font-size:12.5px; line-height:1.15; }
.p25-va{ align-self:center; margin-top:auto; border-color:var(--pg) !important; color:var(--pg) !important; }
/* about */
.p25-dl{ margin:0; display:flex; flex-direction:column; }
.p25-dl > div{ display:grid; grid-template-columns:118px 1fr; gap:8px; padding:6px 0; border-bottom:1px dashed #E8DFC6; }
.p25-dl > div:last-child{ border-bottom:0; }
.p25-dl dt{ font-weight:800; color:#14213D; font-size:14px; } .p25-dl dd{ margin:0; font-size:14px; overflow-wrap:anywhere; }
.p25-pend{ color:#8A6A12; font-weight:700; font-size:13px; }
.p25-edit{ background:#FFF4D1 !important; color:#5A4300 !important; border:1.5px solid var(--gold) !important; padding:5px 12px !important; }
/* avatar row */
.p25-avrow{ display:flex; align-items:center; gap:12px; background:var(--cream); border:1.5px solid #E8DFC6; border-radius:18px; padding:10px 14px; }
.p25-avrow > div{ flex:1; display:flex; flex-direction:column; min-width:0; }
.p25-avimg img{ width:52px; height:52px; border-radius:50%; object-fit:cover; border:3px solid var(--gold); background:#fff; display:block; }
.p25-pick{ background:var(--pg) !important; color:#fff !important; white-space:nowrap; }
/* four worlds */
.p25-worlds{ display:grid; grid-template-columns:1.1fr repeat(4,1fr); gap:12px; background:#fff; border:1.5px solid #E8DFC6; border-radius:20px; padding:12px; }
.p25-wh{ display:flex; gap:10px; align-items:center; background:linear-gradient(135deg,#FFF4D1,#FFFBF1); border-radius:16px; padding:12px; }
.p25-wh > span{ font-size:34px; } .p25-wh h2{ margin:0; font:800 21px var(--display); color:#14213D; } .p25-wh p{ margin:2px 0 0; }
.p25-world{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:8px; padding:10px; border-radius:16px; background:var(--ws); border:2px solid color-mix(in srgb,var(--wc) 30%,#fff); min-width:0; transition:transform .15s; }
.p25-world:hover:not([disabled]){ transform:translateY(-2px); } .p25-world:focus-visible{ outline:3px solid var(--wc); outline-offset:2px; }
.p25-world[disabled]{ cursor:default; }
.p25-world img{ width:62px; height:72px; object-fit:contain; flex:none; }
.p25-world span{ display:flex; flex-direction:column; min-width:0; }
.p25-world b{ font:800 17px/1.05 var(--display); color:var(--wc); } .p25-world small{ font-weight:700; font-size:12.5px; color:#14213D; }
.p25-world em{ font-style:normal; font-size:12px; color:var(--muted); line-height:1.2; margin-top:2px; } .p25-world i{ font-style:normal; font-size:11.5px; font-weight:800; color:var(--wc); margin-top:3px; }
/* activity & lists */
.p25-acts{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.p25-acts .p25-stat b{ font-size:20px; }
.p25-list{ display:flex; flex-direction:column; gap:5px; font-size:14px; } .p25-lt{ font-weight:800; color:var(--pg); margin-top:4px; }
.p25-goals{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.p25-goals li{ display:flex; flex-direction:column; background:var(--cream); border-radius:12px; padding:7px 10px; border-left:4px solid var(--gold); }
.p25-recs{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.p25-note{ margin:4px 0 0; }
.p25-msg{ position:sticky; bottom:12px; align-self:center; background:#14213D; color:#fff; padding:8px 16px; border-radius:999px; font-weight:800; }
/* preview banner */
.p25-prevbar{ display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; background:#FFF4D1; border:1.5px dashed var(--gold); border-radius:14px; padding:10px 14px; }
.p25-prevbar b{ color:#5A4300; }
/* avatar picker */
.p25-modal{ position:fixed; inset:0; z-index:120; background:rgba(15,25,45,.55); display:grid; place-items:center; padding:16px; }
.p25-mbox{ background:#fff; border-radius:22px; max-width:760px; width:100%; max-height:min(86vh,800px); overflow:auto; padding:16px 18px 20px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.p25-mbox header{ display:flex; align-items:center; justify-content:space-between; position:sticky; top:-16px; background:#fff; padding:6px 0; z-index:1; }
.p25-mbox h2{ margin:0; font:800 22px var(--display); color:var(--pg,#1F5E32); } .p25-mbox h3{ margin:14px 0 6px; font:800 16px var(--display); color:#14213D; }
.p25-x{ all:unset; cursor:pointer; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#F1F1F1; font-size:18px; }
.p25-avgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px; }
.p25-av{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; border-radius:14px; border:2px solid #EEE6CF; background:#FFFDF6; text-align:center; }
.p25-av img{ width:64px; height:64px; object-fit:contain; border-radius:50%; } .p25-av span{ font-size:12px; font-weight:700; line-height:1.1; }
.p25-av:hover,.p25-av:focus-visible{ border-color:#1F5E32; } .p25-av.on{ border-color:#D9A520; background:#FFF4D1; box-shadow:0 0 0 3px rgba(217,165,32,.3); }
/* tablet */
@media (max-width:1100px){ .p25-row3{ grid-template-columns:1fr 1fr; } .p25-row3 > .p25-card:first-child{ grid-row:span 2; } .p25-worlds{ grid-template-columns:repeat(2,1fr); } .p25-wh{ grid-column:1/-1; } .p25-sum{ grid-template-columns:repeat(3,1fr); } }
/* phone */
@media (max-width:700px){ .p25-row3,.p25-row2{ grid-template-columns:1fr; } .p25-row3 > .p25-card:first-child{ grid-row:auto; } .p25-world img{ width:54px; height:62px; }
  .p25-sum{ grid-template-columns:repeat(2,1fr); } .p25-sum .p25-stat:last-child{ grid-column:1/-1; }
  .p25-worlds{ grid-template-columns:1fr; } .p25-dl > div{ grid-template-columns:104px 1fr; }
  .p25-avrow{ flex-wrap:wrap; } .p25-pick{ width:100%; justify-content:center; }
  .p25-acts{ grid-template-columns:1fr 1fr; } .p25-tn{ font-size:22px; } }
.p25-mbox{ --ink:#1F2747; color:#1F2747; }

/* Bilcho's signature on the celebration certificate */
.bsig-wrap{ display:flex; justify-content:flex-end; margin-top:6px; } .bsig-wrap .bsig{ max-width:58%; height:auto; }
/* test44: the avatar window opens under the blue top bar (it was hidden behind it) and moves by its title bar */
@media (min-width:701px){ .p25-modal{ z-index:310; align-items:start; padding-top:96px } .p25-mbox{ max-height:calc(100vh - 112px) } }

/* ---- test45 (Beti's spec 4F): profile page — one hero card like the Ranking page, a Learning Board, a calm green theme ---- */
#view.tn-prof{ --p25g:#2E8B57 }
.p25-hero{ display:grid; grid-template-columns:auto minmax(0,1.4fr) minmax(0,1fr); gap:18px; align-items:center; background:linear-gradient(160deg,#E7F6EC,#F6FCF8); border:2px solid #BFE3C8; border-radius:22px; padding:16px 20px; margin-bottom:14px }
.p25-hav .p25-avf{ position:relative; display:inline-block; width:118px; height:118px; padding:5px; border-radius:50%; background:var(--rc); box-shadow:0 0 0 3px #F2C14E, 0 6px 16px rgba(0,0,0,.16) }
.p25-hav .p25-avf .avatar{ width:108px!important; height:108px!important; border-radius:50%; object-fit:cover; display:grid; place-items:center; background:#fff; font-size:44px }
.p25-hav .p25-avf .rkseal{ right:-2px!important; bottom:2px!important; min-width:36px!important; height:36px!important; border-radius:18px!important; font-size:19px!important }
.p25-hid h3{ margin:0; font:800 26px/1.15 'Baloo 2',Nunito,sans-serif; color:#14402A } .p25-hlv{ font-weight:700; color:#2F5A3A; margin:2px 0 6px }
.p25-hch{ display:flex; flex-direction:column; gap:3px; background:#fff; border:2px solid #CDE9D5; border-radius:18px; padding:12px 14px } .p25-hch small{ font-weight:800; color:#2E8B57; text-transform:uppercase; letter-spacing:.04em }
.p25-hch .p25-be{ font-size:28px } .p25-hst{ display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; font-size:14px; color:#2F5A3A }
.p25-board{ background:linear-gradient(160deg,#F1FAF3,#FFFFFF); border:2px solid #BFE3C8; border-radius:22px; padding:14px 18px; margin-bottom:14px }
.p25-board h3{ margin:0 0 10px; font:800 20px/1.2 'Baloo 2',Nunito,sans-serif; color:#14402A }
.p25-bgrid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px }
.p25-bc{ display:flex; flex-direction:column; gap:4px; border-radius:16px; padding:12px; border:2px solid transparent } .p25-bc small{ font-weight:800; color:#2F5A3A }
.p25-bc ul{ margin:2px 0 0; padding-left:18px } .p25-bc li{ margin:2px 0 }
.p25-bc.g1{ background:#E8F6EC; border-color:#C8E8D2 } .p25-bc.g2{ background:#FFF6DA; border-color:#F2DE9B } .p25-bc.g3{ background:#E8F1FF; border-color:#C9DBF7 } .p25-bc.g4{ background:#FCE8F2; border-color:#F3C6DB }
.p25-subjs{ display:flex; flex-wrap:wrap; gap:6px } .p25-subj{ background:#fff; border:2px solid var(--wc); color:var(--wc); border-radius:999px; padding:2px 10px; font-weight:800; font-size:13px }
/* test53: the old green card border is removed; My Profile cards use the brown My Profile theme like every other world */
@media (max-width:1000px){ .p25-hero{ grid-template-columns:auto minmax(0,1fr) } .p25-hch{ grid-column:1/-1 } .p25-bgrid{ grid-template-columns:1fr 1fr } }
@media (max-width:600px){ .p25-hero{ grid-template-columns:1fr; text-align:center } .p25-hav{ justify-self:center } .p25-bgrid{ grid-template-columns:1fr } }

/* test45 (Beti's spec 4F): Choose My Avatar is a compact window — title bar stays visible, the avatars scroll inside,
   and a Cancel button (plus ✕) closes it without picking */
@media (min-width:701px){ .p25-mbox{ max-width:600px!important; max-height:min(72vh,640px)!important } }
.p25-mbox .p25-avgrid{ grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important; gap:8px!important }
.p25-mbox .p25-av img{ width:72px!important; height:72px!important }
.p25-mfoot{ position:sticky; bottom:-20px; display:flex; justify-content:flex-end; background:#fff; padding:10px 0 4px; margin-top:10px; border-top:1px solid #EEE7D6 }
.p25-mfoot .btn{ min-height:44px }
/* the hero and the Learning Board are full-row cards in the page grid */
html body #view.tn.tn-prof .tngrid > .tnc:has(> .p25-hero), html body #view.tn.tn-prof .tngrid > .tnc:has(> .p25-board){ grid-column:1/-1!important }
html body #view.tn.tn-prof .tngrid > .tnc > .p25-hero, html body #view.tn.tn-prof .tngrid > .tnc > .p25-board{ margin:0!important; width:auto!important }
/* the window stays above the dark bottom bar and never runs under it */
@media (min-width:701px){ html body .p25-modal{ z-index:2000!important } html body .p25-modal .p25-mbox{ max-height:min(72vh,calc(100dvh - 170px))!important } }
@media (max-width:700px){ html body .p25-modal{ z-index:2000!important } }

/* ==== liq-reg25.css ==== */
/* Website 23 (Nov 8 build) · Student Registration Form (forest green, cream, gold, Ethiopian tibeb borders) */
.r25,.r25-desk,.r25-full,.p25-modal{ --g:#123F22; --g2:#1F5E32; --g3:#2E7D43; --gs:#E8F3EA; --cream:#FFFBF1; --cream2:#FBF5E6; --gold:#D9A520; --gold2:#F2C230; --ink:#1F2747; --muted:#5E6584; --line:#E5DCC3;
}
.r25{ container-type:inline-size; font-family:var(--body); color:var(--ink); background:var(--cream); border-radius:22px; overflow:hidden; border:1.5px solid var(--line); box-shadow:0 10px 30px rgba(18,63,34,.08); }
.r25 .muted{ color:var(--muted); } .r25 small{ font-size:12.5px; }
/* header */
.r25-head{ display:flex; align-items:center; gap:18px; padding:14px 22px; background:radial-gradient(120% 140% at 0% 0%,#1C5A31,#0F3A1F 70%); color:#fff; }
.r25-brand img{ height:62px; width:auto; display:block; filter:drop-shadow(0 2px 4px rgba(0,0,0,.25)); background:rgba(255,255,255,.92); border-radius:14px; padding:4px 8px; }
.r25-sep{ width:2px; align-self:stretch; background:rgba(255,255,255,.5); border-radius:2px; }
.r25-ht{ flex:1; min-width:0; } .r25-ht h1{ margin:0; font:800 30px/1.1 var(--display); color:#fff; } .r25-ht p{ margin:2px 0 0; opacity:.92; }
.r25-new{ all:unset; cursor:pointer; padding:10px 18px; border-radius:16px; border:2px solid var(--gold2); color:#fff; font-weight:800; white-space:nowrap; background:rgba(255,255,255,.06); }
.r25-new:hover,.r25-new:focus-visible{ background:rgba(242,194,48,.18); }
.r25-tibeb{ height:14px; background:
   repeating-linear-gradient(45deg,transparent 0 5px,rgba(0,0,0,.0) 5px 7px),
   linear-gradient(90deg,#1E9E5A 0 33.3%,#F2C230 33.3% 66.6%,#D2443A 66.6%) 0 0/36px 100%;
  -webkit-mask:repeating-linear-gradient(45deg,#000 0 4px,transparent 4px 6px),repeating-linear-gradient(-45deg,#000 0 4px,transparent 4px 6px); mask:repeating-linear-gradient(45deg,#000 0 4px,transparent 4px 6px),repeating-linear-gradient(-45deg,#000 0 4px,transparent 4px 6px);
  border-block:2px solid #C99300; }
/* three columns */
.r25-main{ display:grid; grid-template-columns:240px minmax(0,1fr) 300px; gap:16px; padding:18px; align-items:start; }
.r25-steps{ background:#fff; border:1.5px solid var(--line); border-radius:20px; padding:14px 10px; position:sticky; top:12px; overflow:hidden; }
.r25-steps h2{ margin:2px 8px 10px; font:800 20px var(--display); color:var(--g); }
.r25-steps ol{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:3px; }
.r25-steps button{ all:unset; box-sizing:border-box; cursor:pointer; width:100%; display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:14px; font-weight:700; font-size:14.5px; border-bottom:1px solid #F1EBDA; }
.r25-steps button i{ font-style:normal; flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; border:2px solid #C9C2AE; font-weight:800; font-size:13px; background:#fff; color:var(--ink); }
.r25-steps button.on{ background:linear-gradient(90deg,#8A4B12,#A55D1C); color:#fff; border-color:transparent; }
.r25-steps button.on i{ border-color:#fff; background:#5E3209; color:#fff; }
.r25-steps button.done i{ background:var(--g3); border-color:var(--g3); color:#fff; }
.r25-steps button:hover:not(.on){ background:var(--cream2); } .r25-steps button:focus-visible{ outline:3px solid var(--gold); }
.r25-art{ margin:14px -10px -14px; padding:22px 10px 16px; font-size:40px; text-align:center; background:linear-gradient(180deg,transparent,#FCEBC2); letter-spacing:6px; }
/* form */
.r25-form{ background:#fff; border:1.5px solid var(--line); border-radius:20px; overflow:hidden; min-width:0; }
.r25-fh{ display:flex; gap:14px; align-items:center; padding:16px 20px; border-bottom:1px solid #EFE7D2; }
.r25-fh > i{ font-style:normal; flex:none; width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:#7A3E0E; color:#fff; font:800 22px var(--display); }
.r25-fh h2{ margin:0; font:800 28px/1.1 var(--display); color:var(--g); } .r25-fh p{ margin:2px 0 0; color:var(--muted); }
.r25-fh > div:nth-child(2){ flex:1; min-width:0; }
.r25-cnt{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; } .r25-cnt > span:first-child{ background:#F4F1E8; border-radius:999px; padding:3px 12px; font-weight:800; font-size:13px; }
.r25-pb{ width:150px; height:10px; border-radius:999px; background:#E7E9EE; overflow:hidden; } .r25-pb b{ display:block; height:100%; background:var(--g3); border-radius:999px; }
.r25-fb{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:16px; }
.r25-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.r25-f{ display:flex; flex-direction:column; gap:6px; min-width:0; } .r25-f.wide{ grid-column:1/-1; }
.r25-f > span:first-child{ font-weight:800; color:var(--g); font-size:15px; } .r25-f em{ font-style:normal; font-weight:600; color:var(--muted); font-size:13px; } .req{ color:#D2443A; font-style:normal; }
.r25-in{ display:flex; align-items:center; gap:8px; border:1.5px solid #CFC8B6; border-radius:14px; padding:0 12px; background:#fff; min-height:48px; }
.r25-in:focus-within{ border-color:var(--g3); box-shadow:0 0 0 3px rgba(46,125,67,.18); }
.r25-in.ro{ background:#EEF1F5; } .r25-in b{ font-weight:400; opacity:.8; }
.r25-in input,.r25-in select,.r25-in output{ all:unset; flex:1; min-width:0; font:600 16px var(--body); color:var(--ink); padding:11px 0; }
.r25-in select{ cursor:pointer; } .r25-in input::placeholder{ color:#8C90A3; font-weight:500; }
.r25-f textarea{ font:500 15px var(--body); color:var(--ink); border:1.5px solid #CFC8B6; border-radius:14px; padding:10px 12px; resize:vertical; background:#fff; }
.r25-f textarea:focus{ outline:none; border-color:var(--g3); box-shadow:0 0 0 3px rgba(46,125,67,.18); }
.r25-f.bad .r25-in{ border-color:#D2443A; background:#FFF6F5; } .r25-err{ color:#C0392B; font-weight:700; }
/* photo row */
.r25-photo{ display:grid; grid-template-columns:150px minmax(0,1fr) 250px; gap:16px; align-items:center; padding-bottom:16px; border-bottom:1px solid #EFE7D2; }
.r25-pbox{ position:relative; width:150px; height:150px; border-radius:22px; background:#E9EEF5; display:grid; place-items:center; }
.r25-pbox img{ width:100%; height:100%; object-fit:cover; border-radius:22px; } .r25-ph{ font-size:70px; opacity:.55; }
.r25-cam{ all:unset; cursor:pointer; position:absolute; right:-6px; bottom:-6px; width:40px; height:40px; border-radius:50%; background:var(--g); color:#fff; display:grid; place-items:center; border:3px solid #fff; }
.r25-pt{ display:flex; flex-direction:column; gap:6px; } .r25-pt b{ font:800 20px var(--display); color:var(--g); }
.r25-pbtns{ display:flex; flex-wrap:wrap; gap:8px; }
.r25-idbox{ background:linear-gradient(180deg,#FFF6DD,#FFF1CC); border:1.5px solid #F0D58A; border-radius:18px; padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.r25-id{ background:#FFFDF6; border:1.5px solid #EAD18A; border-radius:12px; text-align:center; font:800 30px var(--display); letter-spacing:1px; color:#5A3A0E; padding:2px 6px; }
/* buttons */
.r25-btn{ all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 16px; border-radius:14px; font-weight:800; font-size:15px; border:1.5px solid transparent; text-align:center; }
.r25-btn.small{ white-space:nowrap; min-height:36px; padding:5px 12px; font-size:13.5px; } .r25-btn.wide{ width:100%; }
.r25-btn.ghost{ border-color:var(--g3); color:var(--g); background:#fff; } .r25-btn.gold{ border-color:#EAC659; background:#FFF4D1; color:#4A3600; }
.r25-btn.green{ background:var(--g2); color:#fff; } .r25-btn.green:hover{ background:var(--g); }
.r25-btn:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; } .r25-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.r25-link{ all:unset; cursor:pointer; color:#1F5E32; font-weight:800; text-decoration:underline; }
/* chips / radios */
.r25-chips,.r25-radios,.r25-prof{ border:0; padding:0; margin:0; min-width:0; } .r25-chips legend,.r25-radios legend,.r25-prof legend{ font-weight:800; color:var(--g); font-size:15px; margin-bottom:8px; padding:0; }
.r25-chips > div,.r25-radios > div{ display:flex; flex-wrap:wrap; gap:8px; }
.r25-chip,.r25-radio{ position:relative; cursor:pointer; display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:6px 14px; border-radius:999px; border:1.5px solid #CFC8B6; background:#fff; font-weight:700; font-size:14.5px; }
.r25-chip input,.r25-radio input{ position:absolute; opacity:0; pointer-events:none; }
.r25-radio::before{ content:''; width:18px; height:18px; border-radius:50%; border:2px solid #9AA1B5; box-sizing:border-box; }
.r25-radio.on{ border-color:var(--g3); background:var(--gs); } .r25-radio.on::before{ border:5px solid var(--g3); }
.r25-chip.on{ border-color:var(--g3); background:var(--gs); color:var(--g); } .r25-chip.on::after{ content:'✓'; font-weight:900; color:var(--g3); }
.r25-chip:focus-within,.r25-radio:focus-within{ outline:3px solid var(--gold); outline-offset:1px; }
/* english proficiency table */
.r25-ptab{ display:flex; flex-direction:column; border:1.5px solid var(--line); border-radius:16px; overflow:hidden; }
.r25-ptab > div{ display:grid; grid-template-columns:110px repeat(5,1fr); align-items:center; border-bottom:1px solid #F0E9D6; }
.r25-ptab > div:last-child{ border-bottom:0; } .r25-ptab .h{ background:var(--cream2); font-weight:800; font-size:12.5px; text-align:center; } .r25-ptab .h span{ padding:8px 2px; }
.r25-ptab [role=rowheader]{ font-weight:800; padding:0 12px; }
.r25-ptab label{ cursor:pointer; display:grid; place-items:center; min-height:46px; position:relative; }
.r25-ptab label input{ position:absolute; opacity:0; } .r25-ptab label i{ width:22px; height:22px; border-radius:50%; border:2px solid #9AA1B5; box-sizing:border-box; }
.r25-ptab label.on i{ border:7px solid var(--g3); } .r25-ptab label:focus-within i{ outline:3px solid var(--gold); outline-offset:2px; }
.r25-note{ margin:0; background:var(--gs); border-radius:14px; padding:10px 14px; font-size:14px; }
/* review */
.r25-rvgrid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.r25-rv{ border:1.5px solid var(--line); border-radius:16px; padding:10px 14px; background:#fff; }
.r25-rv header{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; } .r25-rv header b{ color:var(--g); font-size:15.5px; }
.r25-sum{ margin:0; } .r25-sum > div{ display:grid; grid-template-columns:120px 1fr; gap:8px; padding:3px 0; font-size:14px; } .r25-sum dt{ font-weight:800; color:#3B4262; } .r25-sum dd{ margin:0; overflow-wrap:anywhere; }
.r25-rvp{ display:flex; align-items:center; gap:10px; margin-bottom:4px; } .r25-rvp img{ width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); }
.r25-alert{ border-radius:14px; padding:10px 14px; font-size:14.5px; } .r25-alert.bad{ background:#FDECEA; border:1.5px solid #F2B8B0; } .r25-alert.warn{ background:#FFF6DA; border:1.5px solid #F0D58A; }
.r25-alert ul{ margin:4px 0 0; padding-left:20px; }
.r25-confirm{ display:flex; gap:10px; align-items:center; font-weight:800; background:var(--cream2); border-radius:14px; padding:12px 14px; cursor:pointer; }
.r25-confirm input{ width:22px; height:22px; accent-color:#2E7D43; }
/* live preview */
.r25-prev{ background:#fff; border:1.5px solid var(--line); border-radius:20px; overflow:hidden; position:sticky; top:12px; }
.r25-prev > header{ background:var(--g); color:#fff; font:800 21px var(--display); padding:12px 16px; }
.r25-pv{ padding:14px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.r25-pvimg img{ width:118px; height:118px; border-radius:50%; object-fit:cover; background:#FCEBC2; border:4px solid #FCEBC2; display:block; }
.r25-pvn{ font:800 24px/1.1 var(--display); color:var(--g); text-align:center; overflow-wrap:anywhere; }
.r25-pvid{ background:#FFF4D1; border:1.5px solid #F0D58A; border-radius:999px; padding:3px 14px; font-weight:800; } .r25-pvid small{ font-weight:600; }
.r25-pvs{ font-size:12.5px; color:var(--muted); font-weight:700; }
.r25-pv dl{ align-self:stretch; margin:6px 0; border-bottom:1px solid #EFE7D2; padding-bottom:8px; } .r25-pv dl > div{ display:flex; gap:6px; padding:4px 2px; font-size:14.5px; } .r25-pv dt{ font-weight:800; white-space:nowrap; } .r25-pv dd{ margin:0; overflow-wrap:anywhere; }
.r25-four{ align-self:stretch; background:#EDF7EC; border-radius:16px; padding:10px; } .r25-four > b{ display:block; text-align:center; color:var(--g); margin-bottom:6px; }
.r25-four > div{ display:grid; grid-template-columns:repeat(4,1fr); gap:4px; } .r25-four span{ display:flex; flex-direction:column; align-items:center; text-align:center; } .r25-four img{ width:40px; height:44px; object-fit:contain; } .r25-four small{ font-weight:800; color:var(--wc); line-height:1.05; font-size:11.5px; }
/* bottom bar */
.r25-nav{ display:flex; align-items:center; gap:12px; padding:14px 22px; background:#FFFDF8; border-top:1.5px solid var(--line); flex-wrap:wrap; }
.r25-status{ flex:1; min-width:120px; font-size:14px; } .r25-status .bad{ color:#C0392B; } .r25-status .good{ color:#1E7A46; }
.r25-btn.draft{ background:#FBF3E4; border-color:#E0CDA6; color:#5A3A0E; min-width:170px; min-height:52px; font-size:17px; }
.r25-btn.back{ background:#EEF0F4; border-color:#D5D9E2; color:#3B4262; min-width:150px; min-height:52px; font-size:17px; }
.r25-btn.next{ background:var(--g); color:#fff; min-width:220px; min-height:56px; font-size:20px; box-shadow:0 4px 0 #0A2A15; }
.r25-btn.next:hover:not([disabled]){ background:#0B3019; }
/* done */
.r25-done{ text-align:center; padding:34px 20px 40px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.r25-done h2{ margin:0; font:800 32px var(--display); color:var(--g); } .r25-dimg img{ width:130px; height:130px; border-radius:50%; object-fit:cover; border:5px solid var(--gold); }
.r25-done .r25-id{ display:inline-block; font-size:22px; padding:0 10px; } .r25-dbtns{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.r25-loading{ padding:40px; text-align:center; font-weight:800; }
/* full preview overlay */
.r25-full{ position:fixed; inset:0; z-index:110; background:rgba(12,30,18,.6); overflow:auto; padding:14px; }
.r25-fullbar{ position:sticky; top:0; z-index:2; display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; background:#FFF4D1; border:2px solid var(--gold); border-radius:16px; padding:10px 14px; max-width:1180px; margin:0 auto 10px; }
.r25-fullbar span{ flex:1; font-size:14px; } .r25-fullin{ max-width:1180px; margin:0 auto; background:var(--paper,#FBF8F0); border-radius:22px; padding:14px; }
/* parent desk list */
.r25-desk{ display:flex; flex-direction:column; gap:10px; margin-top:8px; font-family:var(--body); }
.r25-dh{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; } .r25-dh h3{ margin:0; font:800 22px var(--display); }
.r25-sc{ display:flex; gap:12px; align-items:center; background:#fff; border:1.5px solid #E5DCC3; border-radius:18px; padding:10px 14px; flex-wrap:wrap; }
.r25-sc.todo{ background:#FFF8E3; border-style:dashed; border-color:#E0B840; } .r25-sc.draft{ background:#FAFAF6; }
.r25-sc > img{ width:56px; height:56px; border-radius:50%; object-fit:cover; border:3px solid #D9A520; background:#fff; }
.r25-sc > div:nth-child(2){ flex:1 1 220px; display:flex; flex-direction:column; min-width:0; }
.r25-scid{ display:inline-block; width:max-content; font-weight:800; background:#E8F3EA; color:#1F5E32; border-radius:999px; padding:1px 10px; margin:2px 0; } .r25-scid.pend{ background:#FFF1C9; color:#6B4E00; }
.r25-scb{ display:flex; gap:8px; flex-wrap:wrap; } .r25-dic{ font-size:30px; }
.r25-desk h4{ margin:10px 0 0; }
@container (max-width:1150px){ .r25-main{ grid-template-columns:205px minmax(0,1fr) 250px; gap:12px; padding:14px; } .r25-photo{ grid-template-columns:130px minmax(0,1fr); } .r25-pbox{ width:130px; height:130px; } .r25-idbox{ grid-column:1/-1; flex-direction:row; flex-wrap:wrap; align-items:center; } .r25-idbox .r25-id{ flex:0 0 auto; padding:2px 16px; font-size:24px; } .r25-idbox small{ flex:1 1 160px; } .r25-fh h2{ font-size:24px; } .r25-steps button{ font-size:13.5px; padding:7px 8px; gap:8px; } .r25-pvn{ font-size:21px; } .r25-btn.next{ min-width:180px; } .r25-grid{ gap:12px 14px; } }
/* tablet */
@container (max-width:900px){ .r25-main{ grid-template-columns:200px minmax(0,1fr); } .r25-prev{ grid-column:1/-1; position:static; } .r25-pv{ display:grid; grid-template-columns:auto 1fr; justify-items:start; column-gap:16px; }
  .r25-pvimg{ grid-row:1/5; } .r25-pv dl,.r25-four,.r25-pv .r25-btn{ grid-column:1/-1; } .r25-photo{ grid-template-columns:130px 1fr; } .r25-idbox{ grid-column:1/-1; } .r25-pbox{ width:130px; height:130px; } }
/* phone */
@container (max-width:640px){ .r25{ border-radius:16px; } .r25-head{ flex-wrap:wrap; gap:10px; padding:12px; } .r25-brand img{ height:44px; } .r25-sep{ display:none; } .r25-ht{ flex:1 1 60%; } .r25-ht h1{ font-size:22px; } .r25-ht p{ font-size:13.5px; } .r25-new{ padding:8px 12px; font-size:14px; }
  .r25-main{ grid-template-columns:1fr; padding:10px; gap:10px; }
  .r25-steps{ position:static; padding:8px; } .r25-steps h2{ display:none; } .r25-art{ display:none; }
  .r25-steps ol{ flex-direction:row; overflow-x:auto; gap:6px; scrollbar-width:thin; } .r25-steps li{ flex:none; } .r25-steps button{ width:auto; border:1.5px solid #EFE7D2; padding:6px 10px; font-size:13px; white-space:nowrap; } .r25-steps button:not(.on) span{ display:none; }
  .r25-fh{ flex-wrap:wrap; padding:12px; } .r25-fh h2{ font-size:22px; } .r25-cnt{ flex-direction:row; align-items:center; width:100%; } .r25-pb{ flex:1; }
  .r25-fb{ padding:12px; } .r25-grid,.r25-rvgrid{ grid-template-columns:1fr; } .r25-photo{ grid-template-columns:1fr; justify-items:center; text-align:center; } .r25-pbtns{ justify-content:center; }
  .r25-ptab > div{ grid-template-columns:78px repeat(5,1fr); } .r25-ptab .h span{ font-size:9px; padding:6px 0; overflow-wrap:anywhere; hyphens:auto; } .r25-ptab > div{ grid-template-columns:70px repeat(5,minmax(0,1fr)) !important; } .r25-ptab [role=rowheader]{ padding:0 6px; font-size:13px; }
  .r25-pv{ display:flex; } .r25-nav{ padding:10px; position:sticky; bottom:0; z-index:5; gap:8px; } .r25-status{ order:-1; flex:1 1 100%; }
  .r25-btn.draft,.r25-btn.back{ min-width:0; flex:1; font-size:15px; } .r25-btn.next{ min-width:0; flex:1.4; font-size:17px; } .r25-sum > div{ grid-template-columns:104px 1fr; } }
/* Website 23 (Nov 8 build) · Weekly AI report (Parent area) */
.i25{ display:flex; flex-direction:column; gap:12px; margin-top:8px; font-family:var(--body); }
.i25h{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; } .i25h h3{ margin:0; font:800 22px var(--display); }
.i25s{ background:#fff; border:1.5px solid #E5DCC3; border-radius:18px; padding:12px 14px; } .i25s h4{ margin:0 0 6px; font:800 17px var(--display); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.i25tag{ font:700 11.5px var(--body); padding:2px 8px; border-radius:999px; } .i25tag.ai{ background:#EEEAFD; color:#4C2BA8; } .i25tag.fact{ background:#E1F5E9; color:#14632F; } .i25tag.est{ background:#FFF4D1; color:#6B4E00; }
.i25m{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; } .i25c{ display:flex; gap:10px; background:#FBF8F0; border-radius:14px; padding:8px 10px; } .i25c img{ width:48px; height:56px; object-fit:contain; } .i25c p{ margin:4px 0 0; } .i25c b{ display:block; }
.i25f{ margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:4px 16px; } .i25f > div{ display:grid; grid-template-columns:120px 1fr; gap:6px; font-size:14px; padding:3px 0; border-bottom:1px dashed #EEE6CF; } .i25f dt{ font-weight:800; } .i25f dd{ margin:0; }
.i25grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; } .i25k{ border-radius:12px; padding:7px 10px; border-left:5px solid #C9D1E3; background:#F7F8FB; display:flex; flex-direction:column; font-size:13.5px; }
.i25k.introduced{ border-color:#9AA1B5; } .i25k.developing{ border-color:#F2A900; background:#FFF8E3; } .i25k.proficient{ border-color:#2F6BDE; background:#EEF3FD; } .i25k.mastered{ border-color:#1E9E5A; background:#E9F7EF; }
.i25plan{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:14px; } .i25p{ display:inline-block; font-size:12px; font-weight:800; border-radius:999px; padding:1px 8px; background:#EEF0F4; }
.i25p.remedial{ background:#FDE8E4; color:#9B2C1F; } .i25p.reinforcement{ background:#FFF4D1; color:#6B4E00; } .i25p.mastery{ background:#E7EEFC; color:#1D4FB8; } .i25p.advanced{ background:#EEEAFD; color:#4C2BA8; } .i25p.retention{ background:#E1F5E9; color:#14632F; }
/* G4-C (test27): optional next steps after registration */
.r25-opt{margin:14px auto 0;max-width:720px;background:#FFFDF4;border:2px solid #F0DFA8;border-radius:18px;padding:12px 16px}
.r25-opt h3{margin:0 0 6px;font-size:17px}
.r25-opt ul{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.r25-goal label{display:flex;flex-direction:column;font-weight:700;font-size:13px;gap:3px}
.r25-goal input{font:inherit;padding:6px 10px;border:2px solid #E3D8B6;border-radius:10px}

/* ===================== test54 (Beti, Nov 16): the student form inside the Parent Desk =====================
   Same frame, banner, top menu, breadcrumb and title strip as every Parent Desk page; the form uses the Parent Desk
   colours (green active step, soft tinted cards, the standard buttons) instead of its own brown/green header. */
.r54host{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important }
.r54host > .phero, .r54host > .pgrp, .r54host > h2:not(.b29tt), .r54host > p.lead{ display:none!important }
.r54host .r25{ background:transparent; border:0; box-shadow:none; border-radius:0; overflow:visible }
.r54host .r25-tibeb{ display:none }
.r54host .r25-main{ padding:4px 0 14px; gap:16px }
.b29tt .r54sub{ display:inline-block; margin-left:14px; padding-left:14px; border-left:2px solid #CFE3D3; font:600 15px/1.35 var(--body); color:#3E4A6B; letter-spacing:0; vertical-align:middle; max-width:560px }
.r54crumb{ color:#5B6788; font-weight:700 } b.r54crumb{ color:#17306B }
.r54link{ cursor:pointer; text-decoration:underline; text-underline-offset:3px }
/* cards: the Parent Desk card look */
.r54host .r25-steps, .r54host .r25-form, .r54host .r25-prev{ border:2px solid #CFE3D3; border-radius:22px; background:#FFFFFF; box-shadow:0 6px 18px rgba(46,125,79,.07) }
.r54host .r25-steps{ background:linear-gradient(180deg,#F4FAF5,#FFFFFF) }
.r54host .r25-steps h2{ color:#17306B; font-size:18px }
.r54host .r25-steps button{ border-bottom:0; border-radius:14px; color:#17306B }
.r54host .r25-steps button.on{ background:#2E7D4F; color:#fff; box-shadow:0 3px 0 #1F5E3A }
.r54host .r25-steps button.on i{ background:#fff; border-color:#fff; color:#2E7D4F }
.r54host .r25-steps button.done i{ background:#2E7D4F; border-color:#2E7D4F }
.r54host .r25-steps button:hover:not(.on){ background:#E8F3EA }
.r54host .r25-art{ display:none }
.r54host .r25-fh{ background:#E8F3EA; border-bottom:2px solid #CFE3D3 }
.r54host .r25-fh > i{ background:#2E7D4F!important; color:#fff!important }
.r54host .r25-fh h2{ color:#17306B }
.r54host .r25-pb b{ background:#2E7D4F }
.r54host .r25-prev > header{ background:#E8F3EA; color:#17306B; border-bottom:2px solid #CFE3D3 }
/* fields: one look for every input */
.r54host .r25-f > span{ color:#17306B; font-weight:800 }
.r54host .r25-in{ border:2px solid #D9D2C0; border-radius:12px; background:#FFFDF8 }
.r54host .r25-in:focus-within{ border-color:#2E7D4F; box-shadow:0 0 0 3px rgba(46,125,79,.18) }
.r54host .r25-in input, .r54host .r25-in select, .r54host .r25-in output{ border:0!important; outline:0!important; background:transparent!important; box-shadow:none!important }
.r54host .r25-f textarea{ border:2px solid #D9D2C0; border-radius:12px; background:#FFFDF8 }
.r54host .r25-f textarea:focus{ border-color:#2E7D4F; outline:3px solid rgba(46,125,79,.18); outline-offset:0 }
/* bottom bar: the standard buttons */
.r54host .r25-nav{ background:#F4FAF5; border:2px solid #CFE3D3; border-radius:18px; margin-top:4px }
.r54host .r25-btn.next{ background:#2E7D4F; color:#fff; border-color:#2E7D4F; box-shadow:0 3px 0 #1F5E3A }
.r54host .r25-btn.next:disabled{ background:#A9C9B4; border-color:#A9C9B4; box-shadow:none }
.r54host .r25-btn.draft, .r54host .r25-btn.back, .r54host .r25-btn.ghost{ background:#fff; color:#17306B; border:2px solid #CFE3D3 }
@media (max-width:700px){ .r54host .r25-nav{ position:static!important; border-radius:14px; padding:10px; gap:8px } .r54host .r54all{ display:none } .r54host .r25-nav .r25-btn{ flex:1 1 0; min-width:0; padding:10px 8px; font-size:14px; white-space:nowrap } .r54host .r25-status:empty{ display:none } }

/* ==== liq-home26.css ==== */
/* Nov 9 · Student home: the test 13 layout, rearranged (see liq-home26.js). Remove both lines in index.html to get test 13. */
/* one light-blue box around the whole home */
html body #view.h24v > .dash.h24.h24{ background:linear-gradient(180deg,#EEF6FF,#E2EEFF)!important; border:2px solid #B7D2F4!important; border-radius:28px!important; padding:18px!important; box-shadow:0 6px 20px rgba(30,70,150,.10)!important; }
/* desktop: notebook left; Message Board top right with room; My Progress small underneath; light-green box below */
@media (min-width:1051px){
  html body #view.h24v .dash.h24.h24.h26{ grid-template-rows:1fr auto auto!important; }
  html body #view.h24v .dash.h26 > .h24-board{ display:flex!important; flex-direction:column; } html body #view.h24v .dash.h26 > .h24-board > *{ flex:1 1 auto; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-now{ grid-area:1 / 1 / span 2 / span 7!important; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-board{ grid-area:1 / 8 / span 1 / span 5!important; margin-top:14px!important; align-self:stretch; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-prog{ grid-area:2 / 8 / span 1 / span 5!important; align-self:end; }
  html body #view.h24v .dash.h24.h24.h26 > .h26low{ grid-area:3 / 1 / span 1 / -1!important; }
}
html body #view.h24v .dash.h24.h24.h26 > .h26low{ grid-column:1 / -1; }
/* My Progress as a small progress bar; its All lessons button is hidden (the notebook has one) */
html body #view.h24v .dash.h26 > .h24-prog .btn{ display:none!important; }
html body #view.h24v .dash.h26 > .h24-prog{ padding:12px 16px!important; min-height:0!important; }
html body #view.h24v .dash.h26 > .h24-prog .h24h{ font-size:20px!important; margin-bottom:4px!important; }
/* the light-green box: Upcoming Challenges · This Week · Recent Wins · Coming Next · Math Lab */
html body #view.h24v .dash.h26 > .h26low{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; background:linear-gradient(180deg,#EEFAEF,#E0F3E3); border:2px solid #A9DDB3; border-radius:24px; padding:16px; }
html body #view.h24v .dash.h26 > .h26low > *{ margin:0!important; min-width:0; grid-area:auto!important; }
html body #view.h24v .dash.h26 > .h26low > .h24-chp{ grid-column:1 / span 5!important; }
html body #view.h24v .dash.h26 > .h26low > .h24-week{ grid-column:6 / span 3!important; }
html body #view.h24v .dash.h26 > .h26low > .h24-wins{ grid-column:9 / span 4!important; }
html body #view.h24v .dash.h26 > .h26low > .h24-next{ grid-column:1 / span 6!important; }
html body #view.h24v .dash.h26 > .h26low > .h24-lab{ grid-column:7 / span 6!important; }
@media (max-width:1050px){
  html body #view.h24v .dash.h26 > .h26low > .h24-chp{ grid-column:1 / -1!important; }
  html body #view.h24v .dash.h26 > .h26low > .h24-week{ grid-column:1 / span 5!important; }
  html body #view.h24v .dash.h26 > .h26low > .h24-wins{ grid-column:6 / span 7!important; }
}
@media (max-width:640px){
  html body #view.h24v > .dash.h24.h24{ padding:10px!important; border-radius:20px!important; }
  html body #view.h24v .dash.h26 > .h26low{ grid-template-columns:1fr; padding:10px; gap:12px; }
  html body #view.h24v .dash.h26 > .h26low > *{ grid-column:1 / -1!important; }
}
/* tablet and phone: Notebook, Message Board, My Progress, then the light-green box */
@media (max-width:1050px){
  html body #view.h24v .dash.h24.h24.h26 > .h24-now{ order:1!important; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-board{ order:2!important; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-prog{ order:3!important; }
  html body #view.h24v .dash.h24.h24.h26 > .h26low{ order:4!important; grid-area:auto / 1 / auto / -1!important; }
  html body #view.h24v .dash.h24.h24.h26 > .h24-more{ order:5!important; }
}

/* ==== liq-bank27.css ==== */
/* Nov 9 · My Star Bank v3: coffee-brown/gold banner; royal purple #45205F, warm cream, gold inside.
   The overview fits one desktop screen; the page ends after "Trade your stars for real rewards". */
html body #view.b29v > .pg{ background:linear-gradient(180deg,#FFF9EE,#FBF0DC)!important; border:2px solid #E9D3A6!important; border-radius:24px!important; box-shadow:0 8px 24px rgba(112,69,47,.14)!important; padding:12px!important; }
html body #view.b29v > .pg > .stk{ display:none!important; }
/* the overview ends with the trade panel: no footer art under it */
html body #view.b29v > img.appsav{ display:none!important; }
.b27hide,.b27dash > .b27hide,.b27main .b27dash > .row2.b27hide{ display:none!important; }
/* banner */
html body #view .phero.b27hero{ padding:0!important; margin:0!important; background:none!important; border:0!important; border-radius:22px!important; overflow:hidden!important; min-height:0!important; display:block!important; box-shadow:0 5px 14px rgba(112,69,47,.25)!important; }
html body #view .phero.b27hero::before,html body #view .phero.b27hero::after{ display:none!important; content:none!important; }
html body #view .phero.b27hero > .pht{ position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; }
html body #view .phero.b27hero > :not(.pht):not(.b27ban){ display:none!important; }
.b27ban{ display:block; width:100%; height:auto; max-height:150px; object-fit:cover; object-position:center; }
/* layout */
.b27{ display:grid; grid-template-columns:24% minmax(0,1fr); gap:14px; align-items:stretch; margin-top:12px; }
/* side menu */




 

/* Phase 2: the group that holds the page you are on is marked, even when it is closed (a dark edge on the left) */

.b29k:focus-visible{ outline:3px solid #1B4FA8!important; outline-offset:2px; }
 

.b29k:focus-visible{ outline:3px solid #fff; outline-offset:2px; }


.b29k{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:8px; min-height:32px; padding:2px 10px 2px 4px; border-radius:12px; background:linear-gradient(180deg,#FFFFFF,#F3EBFA); border:2px solid #E7DAF4; color:#2E1240; font:800 clamp(13px,calc(1.15 * var(--uxvw,1vw)),16px)/1.05 var(--display); }
.b29k img{ width:28px; height:24px; object-fit:contain; } .b29k:hover{ background:#fff; }
.b29k.on{ background:linear-gradient(180deg,#FFF6CC,#FFE68A); border-color:#E9A800; }
.b29tip{ width:100%; height:auto; border-radius:16px; display:block; margin-top:auto; border:2px solid #9BCB6B; }
/* main */
.b27main{ min-width:0; background:linear-gradient(180deg,#FFFDF8,#FFF7E8); border:2px solid #EAD7B0; border-radius:22px; overflow:hidden; display:flex; flex-direction:column; }
.b27title{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; background:linear-gradient(90deg,#45205F,#651B84 50%,#45205F); min-height:50px; padding:2px 14px; }
.b27title img{ grid-column:2; height:44px; width:auto; display:block; }
.b27tnote{ grid-column:3; justify-self:end; text-align:right; color:#fff; font-weight:700; font-size:clamp(11px,calc(1 * var(--uxvw,1vw)),14px); line-height:1.25; max-width:170px; }
.b27main > .bankdash.b27dash{ padding:12px 14px!important; margin:0!important; flex:1; display:flex; flex-direction:column; gap:12px; }
.b27main > .bankdash.b27dash > *{ margin:0!important; }
/* overview */
.b27dash > .b27top{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:14px; align-items:stretch; }
.b27left,.b27right{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.b27bal{ position:relative; flex:1; text-align:center; border-radius:22px; padding:8px 16px 10px; background:radial-gradient(120% 95% at 50% 0%,#6E2496,#5A1C80 55%,#45205F); box-shadow:0 6px 16px rgba(69,32,95,.32); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.b27crown{ width:min(100%,300px); height:auto; display:block; margin:0 auto -4px; }
.b27pill{ position:relative; z-index:1; background:linear-gradient(180deg,#FFE36E,#F5B700); color:#2E1240; font:800 clamp(16px,calc(1.6 * var(--uxvw,1vw)),22px) var(--display); padding:4px 22px; border-radius:14px; box-shadow:0 3px 0 rgba(120,80,0,.35); margin-bottom:-12px; }
.b27num{ width:min(100%,330px); background:linear-gradient(180deg,#FFFEF8,#FFF0CE); border-radius:20px; padding:18px 10px 8px; font:900 clamp(44px,calc(5.2 * var(--uxvw,1vw)),72px)/1 var(--display); color:#2A0B40; box-shadow:inset 0 -4px 0 rgba(160,110,0,.15),0 4px 10px rgba(0,0,0,.15); }
.b27num span{ font-size:.62em; vertical-align:middle; }
.b27sub{ display:block; margin-top:8px; color:#FFF3FF; font-weight:700; font-size:clamp(12px,calc(1.05 * var(--uxvw,1vw)),15px); }
.b27acts{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.b27tile{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:86px; padding:6px 4px; border-radius:18px; text-align:center; font:800 clamp(14px,calc(1.45 * var(--uxvw,1vw)),20px)/1 var(--display); color:#2E1240; border:2px solid; box-shadow:0 4px 0 rgba(0,0,0,.12); }
.b27tile span{ font-size:clamp(22px,calc(2.4 * var(--uxvw,1vw)),32px); margin-bottom:2px; } .b27tile:hover{ transform:translateY(-2px); } .b27tile:focus-visible{ outline:3px solid #45205F; outline-offset:2px; }
.b27tile.earn{ background:linear-gradient(180deg,#FFF3B8,#FFD64D); border-color:#EDB800; } .b27tile.spend{ background:linear-gradient(180deg,#F5ECFF,#DCC6F7); border-color:#C3A2EC; } .b27tile.rew{ background:linear-gradient(180deg,#FFFDF5,#FFEFD2); border-color:#E7CF9E; }
.b27goal{ all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:auto minmax(0,1fr) 92px; gap:10px; align-items:center; background:linear-gradient(180deg,#FFFDF7,#FFF4DE); border:2px solid #EAD7B0; border-radius:20px; padding:10px 14px; box-shadow:0 4px 0 rgba(112,69,47,.08); }
.b27goal:focus-visible{ outline:3px solid #45205F; outline-offset:2px; }
.b27gi{ font-size:clamp(28px,calc(2.6 * var(--uxvw,1vw)),38px); align-self:start; } .b27gt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.b27gh{ font:800 clamp(17px,calc(1.7 * var(--uxvw,1vw)),24px)/1.05 var(--display); color:#2E1240; } .b27gn{ font:800 clamp(14px,calc(1.35 * var(--uxvw,1vw)),19px)/1.1 var(--display); color:#45205F; }
.b27gbar{ position:relative; height:22px; border-radius:999px; background:#F6E6B8; border:2px solid #EBC24A; overflow:hidden; }
.b27gbar i{ position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,#45205F,#7E3BA8); border-radius:999px; }
.b27gbar span{ position:absolute; right:10px; top:50%; transform:translateY(-50%); font:800 13px var(--display); color:#2E1240; }
.b27gm{ margin:0; color:#45205F; font-weight:700; font-size:clamp(12px,calc(1.05 * var(--uxvw,1vw)),14.5px); line-height:1.25; }
.b27gp{ width:92px; height:92px; display:grid; place-items:center; overflow:hidden; } .b27gp img{ width:100%; height:100%; object-fit:contain; }
.b27recent{ flex:1; background:#fff; border:2px solid #EAD7B0; border-radius:20px; overflow:hidden; box-shadow:0 4px 0 rgba(112,69,47,.08); display:flex; flex-direction:column; }
.b27recent header{ display:flex; align-items:center; gap:10px; background:linear-gradient(90deg,#45205F,#651B84); color:#fff; padding:7px 14px; }
.b27li{ display:flex; flex-direction:column; gap:3px; } .b27li i{ width:18px; height:3px; background:#fff; border-radius:2px; }
.b27recent header b{ font:800 clamp(15px,calc(1.5 * var(--uxvw,1vw)),21px) var(--display); flex:1; }
.b27all{ all:unset; cursor:pointer; color:#fff; font-weight:800; text-decoration:underline; font-size:14px; } .b27all:focus-visible{ outline:2px solid #FFE36E; }
.b27act{ list-style:none; margin:0; padding:2px 14px 4px; flex:1; display:flex; flex-direction:column; justify-content:space-around; } .b27act li{ display:grid; grid-template-columns:auto minmax(0,1fr) auto 46px; gap:10px; align-items:center; padding:5px 0; border-bottom:1px solid #F0E3C6; font-size:clamp(12px,calc(1.1 * var(--uxvw,1vw)),15px); } .b27act li:last-child{ border-bottom:0; }
.b27ai{ font-size:18px; } .b27ad{ font-weight:700; color:#45205F; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .b27act b{ font:800 clamp(14px,calc(1.3 * var(--uxvw,1vw)),17px) var(--display); } .b27act b.pos{ color:#1E8B4C; } .b27act b.neg{ color:#D2443A; } .b27act small{ color:#4A3626; font-weight:700; text-align:right; }
.b27empty{ padding:12px 14px; margin:0; color:#6B4A2E; }
/* trade panel (green, compact) */
.b27feat{ display:grid; grid-template-columns:minmax(0,1fr) 2px minmax(0,1.6fr); gap:14px; align-items:center; background:linear-gradient(180deg,#F3FBE8,#E3F4CF); border:2px solid #A9D67F; border-radius:20px; padding:8px 12px; }
.b29fh{ display:flex; align-items:center; background:linear-gradient(90deg,#1E8B3C,#25A145); color:#fff; border-radius:999px; padding:2px 18px 2px 4px; box-shadow:0 3px 0 rgba(15,80,30,.35); }
.b29fh img{ width:52px; height:auto; border-radius:50%; margin-right:6px; } .b29fh b{ font:800 clamp(14px,calc(1.45 * var(--uxvw,1vw)),20px)/1.05 var(--display); }
.b27fdiv{ align-self:stretch; background:#70452F; border-radius:2px; margin:4px 0; }
.b27fb{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.b27fb > button.b29cash{ margin:0!important; min-width:0!important; min-height:0!important; padding:6px 4px!important; border-radius:16px!important; background:linear-gradient(180deg,#FFFDF5,#FFF1CF)!important; border:2px solid #E7C568!important; box-shadow:0 3px 0 rgba(160,110,0,.25)!important; color:#2E1240!important; display:flex!important; flex-direction:column!important; align-items:center!important; gap:0!important; }
.b27fb > button.b29cash *{ color:#2E1240!important; } .b27fb > button.b29cash > :first-child{ font:800 clamp(18px,calc(1.8 * var(--uxvw,1vw)),26px)/1.1 var(--display)!important; }
.b27fb > button.b29cash > :nth-child(2){ font:800 clamp(13px,calc(1.3 * var(--uxvw,1vw)),18px)/1.1 var(--display)!important; } .b27fb > button.b29cash > :nth-child(n+3){ font:700 11px/1.1 var(--body,inherit)!important; color:#6B5A3A!important; }
/* test46: Trade Stars for Cash — rules text on the left, amounts + any amount on the right */
.b27feat{ align-items:start; }
.b27fl{ display:flex; flex-direction:column; gap:6px; min-width:0; } .b27fl .b29fh{ align-self:flex-start; }
.b27fpa{ align-self:flex-start; font:800 12px/1 var(--body,inherit); color:#1E6B33; background:#fff; border:1.5px solid #A9D67F; border-radius:999px; padding:4px 10px; }
.b27fl .cashtx{ color:#23331A; } .b27fl .cashrate{ margin:2px 0 4px; font-size:15px; } .b27fl .cashrate b{ font:800 22px/1 var(--display); color:#1E8B3C; }
.b27fl .cashrules{ margin:0; padding-left:18px; font-size:14px; line-height:1.4; } .b27fl .cashkeep{ margin:6px 0 0; font-weight:700; font-size:14px; color:#1E6B33; }
.b27fr{ display:flex; flex-direction:column; gap:10px; min-width:0; } .b27fr .cashst{ margin:0; }
.b27fb{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.b27fr .cashfree{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; background:#fff; border:2px dashed #A9D67F; border-radius:16px; padding:8px 12px; font-weight:700; color:#23331A; }
.b27fr .cashfree input{ width:90px; font:700 16px inherit; padding:8px; border-radius:10px; border:2px solid #A9D67F; min-height:40px; }
.b27fr .cashout{ font:800 18px/1 var(--display); color:#1E8B3C; }
.b27fr .cashfree .btn{ min-height:40px; }
/* prize ladder page */
.b27dash > .b29ladder{ }
.b27dash .tiers > .t,.b27dash > .row2 > *{ border-radius:20px!important; border:2px solid #EAD7B0!important; background:#fff!important; box-shadow:0 4px 0 rgba(112,69,47,.08)!important; }
.b27dash > .row2{ display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:12px!important; }
.b27dash > h2.dh{ color:#45205F!important; font-size:24px!important; }
/* tablet */
@media (max-width:1100px){ .b27dash > .row2{ grid-template-columns:1fr 1fr!important; } }
@media (max-width:900px){ .b27{ grid-template-columns:1fr; }   .b29tip{ display:none; }
  .b27dash > .b27top{ grid-template-columns:1fr; } .b27feat{ grid-template-columns:1fr; } .b27fdiv{ display:none; } .b29fh{ justify-self:start; } .b27title{ grid-template-columns:1fr; justify-items:center; } .b27title img{ grid-column:1; } .b27tnote{ grid-column:1; justify-self:center; text-align:center; max-width:none; padding-bottom:4px; } }
/* phone */
@media (max-width:600px){  .b27main > .bankdash.b27dash{ padding:10px!important; } .b27dash > .row2{ grid-template-columns:1fr!important; }
  .b27goal{ grid-template-columns:auto minmax(0,1fr); } .b27gp{ display:none; } .b27act li{ grid-template-columns:auto minmax(0,1fr) auto; } .b27act small{ display:none; } .b27fb{ grid-template-columns:repeat(2,minmax(0,1fr)); } .b27title img{ height:36px; } }
/* short laptop screens: shrink proportionally so the overview still fits one screen */
@media (min-width:901px) and (max-height:820px){
  .b27ban{ max-height:110px; } .b27{ margin-top:8px; gap:10px; } html body #view.b29v > .pg{ padding:8px!important; }
  .b27title{ min-height:40px; } .b27title img{ height:34px; }
  .b27main > .bankdash.b27dash{ padding:8px 10px!important; gap:8px; }
  .b27crown{ width:min(100%,220px); } .b27num{ padding:12px 8px 4px; font-size:clamp(40px,calc(4.4 * var(--uxvw,1vw)),58px); } .b27bal{ padding:4px 12px 6px; } .b27sub{ margin-top:4px; }
  .b27tile{ min-height:64px; } .b27tile span{ font-size:22px; }
  .b27goal{ padding:6px 12px; grid-template-columns:auto minmax(0,1fr) 70px; } .b27gp{ width:70px; height:70px; }
  .b27recent header{ padding:5px 12px; } .b27act li{ padding:3px 0; }
  .b27feat{ padding:5px 10px; } .b29fh img{ width:40px; } .b27fb > button.b29cash{ padding:3px 4px!important; }
    .b29k{ min-height:27px; } .b29k img{ width:22px; height:20px; }  
  .b29tip{ max-height:120px; object-fit:contain; }
}
@media (min-width:901px) and (max-height:740px){
  .b27ban{ max-height:92px; } .b27crown{ width:min(100%,180px); } .b27num{ font-size:clamp(36px,calc(4 * var(--uxvw,1vw)),50px); } .b27tile{ min-height:56px; font-size:15px; } .b27tile span{ font-size:18px; }
  .b29tip{ max-height:96px; } .b29k{ min-height:25px; font-size:13px; } 
}

.b27dash > .b27top{ flex:1 1 auto; } .b27left > .b27bal{ flex:1 1 auto; } .b27right > .b27recent{ flex:1 1 auto; }
/* room for the extra My Cart item */
@media (min-width:901px){   .b29k{ min-height:30px; } .b29tip{ max-height:128px; object-fit:contain; }  }
@media (min-width:901px) and (max-height:820px){ .b29k{ min-height:25px; } .b29tip{ max-height:104px; }  }
@media (min-width:901px) and (max-height:740px){ .b29k{ min-height:23px; font-size:12.5px; } .b29k img{ height:18px; } .b29tip{ max-height:84px; }   }

/* v4 (Nov 9): constant menu, same-size pages, topic title */
.b27{ align-items:start!important; }

.b29tip{ margin-top:4px!important; }
.b27main{ height:auto; }
.b27main > .bankdash.b27dash{ overflow-y:auto; min-height:0; scrollbar-width:thin; }
.b27title{ display:grid!important; grid-template-columns:1fr auto 1fr!important; }
.b29tt{ grid-column:2; display:flex; align-items:center; gap:10px; margin:0; color:#fff; font:800 clamp(22px,calc(2.5 * var(--uxvw,1vw)),36px)/1 var(--display); white-space:nowrap; }
.b29tl,.b29tr{ height:44px; width:auto; display:block; }
.b27title img.b29tl,.b27title img.b29tr{ grid-column:auto!important; }
/* the card and shop pages inside the cream panel */
.b27dash.cardhub > .hubbody{ border:0!important; box-shadow:none!important; background:transparent!important; padding:0!important; margin:0!important; }
@media (min-width:901px) and (max-height:820px){ .b29tl,.b29tr{ height:34px; } .b29tt{ font-size:26px; } }
@media (max-width:900px){ .b29tt{ font-size:22px; } .b29tl,.b29tr{ height:30px; } .b27main > .bankdash.b27dash{ overflow:visible; } }

/* v5: no repeated headings under the title; dynamic tip card (always the same place and size) */
.b27dash > h2.dh{ display:none!important; }
.b29tip{ display:grid!important; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:6px; height:128px; max-height:none!important; padding:8px 10px 8px 4px; border-radius:16px; border:2px solid #9BCB6B!important; background:linear-gradient(180deg,#FBFFF2,#ECF7D9); overflow:hidden; box-sizing:border-box; }
.b29tip img{ width:72px; height:auto; display:block; }
.b29tip b{ display:inline-block; background:linear-gradient(180deg,#2FA650,#1E8B3C); color:#fff; font:800 15px var(--display); padding:3px 12px; border-radius:999px; margin-bottom:4px; }
.b29tip p{ margin:0; color:#2E1240; font:700 13.5px/1.25 var(--display); text-align:center; }
@media (min-width:901px) and (max-height:820px){ .b29tip{ height:104px; grid-template-columns:58px minmax(0,1fr); } .b29tip img{ width:58px; } .b29tip p{ font-size:12px; } .b29tip b{ font-size:13px; } }
@media (min-width:901px) and (max-height:740px){ .b29tip{ height:88px; } .b29tip img{ width:48px; } .b29tip p{ font-size:11.5px; } }
@media (max-width:900px){ .b29tip{ display:grid!important; height:auto; } }

/* page icon in the title (one per page) */
.b29ti{ height:40px; width:40px; object-fit:contain; border-radius:10px; background:rgba(255,255,255,.12); padding:2px; }
@media (min-width:901px) and (max-height:820px){ .b29ti{ height:32px; width:32px; } }
@media (max-width:900px){ .b29ti{ height:28px; width:28px; } }

/* =============== English LiQ theme (pink / magenta, navy text) for the same left-menu layout =============== */
html body #view.lmE > .pg{ background:linear-gradient(180deg,#FFF7FB,#FDEAF3)!important; border-color:#F3C4D8!important; box-shadow:0 8px 24px rgba(176,51,122,.14)!important; }
html body #view.lmE .phero.w25ban{ margin:0!important; }







.e29ic{ width:28px; height:26px; display:grid; place-items:center; font-size:18px; background:#fff; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.12); flex:none; }

.lmE .b29tip{ border-color:#F3A9CB!important; background:linear-gradient(180deg,#FFF9FC,#FDE6F1); }
.lmE .b29tip img{ object-fit:contain; height:100%; max-height:110px; }
.lmE .b29tip b{ background:linear-gradient(180deg,#E0479A,#B8237A); }
.lmE .b27main{ background:linear-gradient(180deg,#FFFFFF,#FFF6FA); border-color:#F3C4D8; }
.lmE .b27title{ background:linear-gradient(90deg,#B8237A,#D63384 50%,#B8237A); }
.e29tic{ width:40px; height:40px; display:grid; place-items:center; font-size:26px; background:rgba(255,255,255,.9); border-radius:10px; }
/* overview cards */
.e29top{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:14px; align-items:stretch; flex:1 1 auto; }
.e29prog{ position:relative; flex:1; text-align:center; border-radius:22px; padding:8px 16px 10px; background:radial-gradient(120% 95% at 50% 0%,#E45AA5,#C2287F 55%,#9C1A66); box-shadow:0 6px 16px rgba(156,26,102,.3); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.e29book{ font-size:54px; line-height:1; filter:drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.e29pbox{ width:min(100%,330px); background:linear-gradient(180deg,#FFFEF8,#FFF0F6); border-radius:20px; padding:18px 14px 12px; box-shadow:0 4px 10px rgba(0,0,0,.15); }
.e29pct{ font:900 clamp(44px,calc(5.2 * var(--uxvw,1vw)),70px)/1 var(--display); color:#2A0B40; }
.e29bar{ height:16px; border-radius:999px; background:#E7E9EE; border:2px solid #D7DBE3; overflow:hidden; margin-top:8px; } .e29bar i{ display:block; height:100%; background:linear-gradient(90deg,#2DB34A,#1E8E36); border-radius:999px; }
.lmE .b27sub{ color:#FFF0F7; }
.lmE .b27tile.earn{ background:linear-gradient(180deg,#FFF3B8,#FFD64D); } .lmE .b27tile.spend{ background:linear-gradient(180deg,#F5ECFF,#DCC6F7); } .lmE .b27tile.rew{ background:linear-gradient(180deg,#FFFDF5,#FFEFD2); }
.e29goal{ cursor:default; background:linear-gradient(180deg,#FFFDF8,#FFF3E2); }
.e29gp{ font-size:64px; } .e29gbtn:empty{ display:none; } .e29gbtn .btn{ margin-top:6px; padding:6px 14px!important; font-size:14px!important; }
.lmE .b27recent header{ background:linear-gradient(90deg,#B8237A,#D63384); }
.lmE .b27ad{ color:#1F2747; }
.e29focus{ background:linear-gradient(180deg,#FFF5FA,#FCE4EF)!important; border-color:#E9A5C8!important; grid-template-columns:minmax(0,1fr) 2px minmax(0,1.6fr)!important; }
.e29fh{ display:flex; align-items:center; gap:10px; background:linear-gradient(90deg,#9C1A66,#C2287F); color:#fff; border-radius:999px; padding:6px 18px 6px 10px; box-shadow:0 3px 0 rgba(90,10,60,.35); }
.e29fh > span{ font-size:26px; } .e29fh b{ display:block; font:800 clamp(15px,calc(1.5 * var(--uxvw,1vw)),21px)/1.05 var(--display); } .e29fh div span{ font-weight:700; font-size:13px; }
.e29sk{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; align-items:center; text-align:center; gap:1px; padding:6px 4px; border-radius:16px; background:linear-gradient(180deg,#FFFDF5,#FFF1CF); border:2px solid #E7C568; box-shadow:0 3px 0 rgba(160,110,0,.25); color:#1F2747; }
.e29sk > span{ font-size:24px; } .e29sk b{ font:800 clamp(12px,calc(1.1 * var(--uxvw,1vw)),15px)/1.05 var(--display); } .e29sk small{ font-size:11px; color:#6B4A2E; font-weight:700; }
.e29sk.focus{ border-color:#C2287F; box-shadow:0 0 0 2px #F7B6D2,0 3px 0 rgba(160,110,0,.25); } .e29sk:focus-visible{ outline:3px solid #C2287F; }
@media (max-width:1100px){ .e29focus{ grid-template-columns:1fr!important; } }
@media (max-width:900px){ .e29top{ grid-template-columns:1fr; } }
@media (min-width:901px) and (max-height:820px){ .e29book{ font-size:38px; } .e29pbox{ padding:10px 10px 8px; } .e29pct{ font-size:clamp(38px,calc(4.2 * var(--uxvw,1vw)),56px); } .e29tic{ width:32px; height:32px; font-size:20px; } }

/* English fixes: icon never stretches; one-line group names; laurels without the purple square */



 
.lmE .b27dash > .w25learn,.lmE .b27dash > .eh-top,.lmE .b27dash > .eh-prog,.lmE .b27dash > .enfun{ }
html body #view.lmE[data-b29="home"] .b27dash > .w25learn{ display:none!important; }
@media (min-width:901px) and (max-height:820px){   .lmE .e29ic{ width:22px; height:20px; font-size:14px; }  }
/* English has 13 menu items: a slightly tighter menu so the page still fits one screen */
@media (min-width:901px){     .lmE .b29tip{ height:112px; } .lmE .e29ic{ width:24px; height:21px; font-size:15px; } }
@media (min-width:901px) and (max-height:820px){   .lmE .b29tip{ height:88px; } .lmE .e29ic{ width:20px; height:18px; font-size:12px; }   }
@media (min-width:901px) and (max-height:740px){  .lmE .b29tip{ height:76px; } }

/* ---- test45 (Beti's spec 4E): Earn / Spend / View Rewards are smaller and grouped under a gentle "Quick Actions" title,
   lined up with the cards next to them ---- */
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts{ position:relative; padding-top:44px!important }
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts::before{ content:"⚡ Quick Actions"; position:absolute; top:12px; left:18px; font:800 17px/1.2 'Baloo 2',Nunito,sans-serif; color:#4A2F86 }
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts > .b27acts{ grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:10px!important; align-content:start!important; grid-auto-rows:auto!important }
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts > .b27acts > :first-child:nth-last-child(3){ grid-column:auto!important }
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts .b27tile{ min-height:84px!important; height:auto!important; padding:10px 8px!important; font-size:15px!important; border-radius:16px!important }
html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts .b27tile span{ font-size:22px!important }
@media (max-width:700px){ html body #view.tn.tn-bank .tngrid > .tnc.tn-part.tnx-b27acts > .b27acts{ grid-template-columns:1fr 1fr 1fr!important } }
.e29gprog{display:block;height:8px;border-radius:6px;background:#E8EEF8;margin:6px 0 2px;overflow:hidden;max-width:260px}.e29gprog i{display:block;height:100%;background:linear-gradient(90deg,#2E9E5B,#5BC27F);border-radius:6px}.e29gpt{font-size:12px;color:#4A5672;font-weight:700}

/* ==== liq-fracstudio.css ==== */
/* Fraction Studio (G2-A, test27): a paper card that sits on the chalkboard, the Learn slide or the Lab page */
.fs{background:#FFFBEF;color:#2B2A33;border:2px solid #E7D9AE;border-radius:16px;padding:10px 12px;box-shadow:0 2px 0 rgba(0,0,0,.08);text-align:left;font-size:15px;line-height:1.35;max-width:100%;box-sizing:border-box}
.fs *{box-sizing:border-box}
.fs-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:8px}
.fs-top b{font-size:16px;color:#5B3A00}
.fs-tgt{font-weight:800;color:#1E3A8A;background:#E8F0FF;border-radius:999px;padding:2px 10px}
.fs-body{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.fs-left{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.fs-right{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:8px}
.fs-sqwrap{position:relative}
.fs-sq{width:clamp(150px,22vw,210px);aspect-ratio:1;display:grid;background:#fff;border:3px solid #2B2A33;border-radius:2px;overflow:hidden}
.fs-empty{background:repeating-linear-gradient(45deg,#fff,#fff 8px,#F4EFE0 8px,#F4EFE0 16px)}
.fs-c{position:relative;background:#fff;transition:background .18s}
.fs-c.cl{border-right:2px solid #6B6A75}
.fs-c.rl{border-bottom:2px dashed #6B6A75}
.fs-c.rl0{border-bottom:0}
.fs-c.lt{background:#FFE08A}
.fs-c.dk{background:#5B9BEA}
.fs-c[data-fsc],.fs-c[data-fsr]{cursor:pointer}
.fs-c[data-fsc]:hover,.fs-c[data-fsr]:hover{outline:3px solid #F59E0B;outline-offset:-3px}
/* folded: the rows exist only on the shaded part; unfolding spreads them across the whole */
.fs-sqwrap.folded .fs-c:not(.lt){background:#EEE9DA}
.fs-sqwrap.unf .fs-sq{animation:fsUnf .5s ease-out}
@keyframes fsUnf{from{transform:scaleX(.82)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.fs-sqwrap.unf .fs-sq{animation:none}.fs-c{transition:none}}
.fs-one{position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:22px;color:#5B3A00;pointer-events:none}
.fs-kb{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;max-width:clamp(150px,22vw,210px)}
.fs-k{min-width:34px;min-height:34px;border-radius:8px;border:2px solid #C9B98A;background:#fff;font:inherit;font-weight:800;cursor:pointer;color:#2B2A33}
.fs-k.on{background:#FFE08A;border-color:#B7791F}
.fs-k:focus-visible,.fs-pm:focus-visible,.fs .btn:focus-visible,.fs-ins input:focus-visible{outline:3px solid #1D4ED8;outline-offset:2px}
.fs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.fs-list li{color:#7A7685}
.fs-list li.ok{color:#15803D;font-weight:700}
.fs-list li.now{color:#1E3A8A;font-weight:800}
.fs-eq{font-size:20px;font-weight:800;color:#1E3A8A;background:#F2F6FF;border:2px dashed #A9C0F2;border-radius:12px;padding:4px 10px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:46px}
.fs-eql{font-size:12px;font-weight:700;color:#55607A;text-transform:uppercase;letter-spacing:.05em}
.fs-q{color:#B45309}
.fs .fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;font-size:.95em}
.fs .fr>span:first-child{border-bottom:2px solid currentColor;padding:0 2px}
.fs-say{margin:0;font-weight:600}
.fs-ctl{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.fs-ctl .btn{margin:0}
.fs-step{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.fs-step b{min-width:26px;text-align:center;font-size:20px}
.fs-pm{width:38px;height:38px;border-radius:50%;border:2px solid #C9B98A;background:#fff;font-size:22px;font-weight:900;line-height:1;cursor:pointer;color:#2B2A33}
.fs-pm:disabled{opacity:.4;cursor:default}
.fs-pick{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.fs-x{font-size:22px;font-weight:900}
.fs-ins{display:flex;flex-wrap:wrap;gap:8px}
.fs-ins label{display:flex;flex-direction:column;font-size:13px;font-weight:700}
.fs-ins input{width:88px;font:inherit;font-size:20px;font-weight:800;padding:4px 8px;border:2px solid #C9B98A;border-radius:10px;background:#fff;color:#2B2A33}
.fs-msg{display:flex;gap:8px;align-items:flex-start;background:#FFF3D6;border:2px solid #F3C969;border-radius:12px;padding:6px 10px;font-size:14px}
.fs-msg img{flex:0 0 auto;border-radius:50%;background:#fff;object-fit:cover}
.fs-msg.good{background:#E7F8EC;border-color:#86D19C;display:block}
.fs-motto{display:block;margin-top:4px;font-weight:800;color:#5B3A00}
/* where it lives */
.diagram.fs-host{display:block!important;padding:0!important;background:transparent!important}
.qleft .diagram.fs-host .fs{margin:6px 0 4px}
.sl-l .fs{margin-top:6px}
.fs-labwrap{margin:0 0 6px}
.fs-labwrap .fs{max-width:720px}
@media (max-width:560px){.fs-body{flex-direction:column;align-items:stretch}.fs-left{align-self:center}.fs-sq{width:min(64vw,220px)}.fs-kb{max-width:min(64vw,220px)}}
/* Learn slide: the square and buttons on the board, the steps and equation in the notebook */
.fs.fs-side{background:transparent;border:0;box-shadow:none;padding:0;display:flex;flex-direction:column;gap:10px}
.fs.fs-side .fs-list{font-size:16px;gap:4px}
.fs.fs-side .fs-eq{font-size:24px}
.fs.fs-main .fs-body{flex-wrap:nowrap}
@media (max-width:560px){.fs.fs-main .fs-body{flex-wrap:wrap}}

/* ==== liq-worlds30.css ==== */
/* Nov 9 · Investment LiQ (green), Life LiQ (blue), MathLiQ Lab (coffee brown, cream, gold)
   in the standard left-menu layout (liq-worlds30.js). Uses the Star Bank / English layout classes. */

/* the world footers stay where they were (Beti, Nov 9); only the Star Bank decides later */
html body #view.b29v.lmW > img.appsav,html body #view.b29v.lmE > img.appsav{ display:block!important; }
html body #view.lmW .phero.w25ban{ margin:0!important; }
html body #view.lmW > .pg > .stk{ display:none!important; }
.w30dash > section.card,.w30dash > section.lfwrap,.w30dash > .acbody{ border:0!important; box-shadow:none!important; background:transparent!important; padding:0!important; margin:0!important; }
.w30dash > section.card > *:first-child{ margin-top:0!important; }




.w30bdg{ font-style:normal; background:#D2443A; color:#fff; font:800 11px var(--display); padding:2px 7px; border-radius:999px; flex:none; }
.w30lock{ font-style:normal; font-size:13px; flex:none; opacity:.8; }
.lmW .b29tip img{ object-fit:contain; height:100%; max-height:110px; }
.w30acts{ display:grid; gap:10px; }
.b27tile.w30t4{ background:linear-gradient(180deg,#EAF7FF,#C9E8FB); border-color:#9CCDEB; }
.w30goal .b27gbar{ margin-top:4px; }
.w30chips{ display:flex; flex-wrap:wrap; gap:8px; }
.w30chips .chipf{ margin:0; }
/* English: Word of the Day board and Ridiculous English at the top of Vocabulary */
.w30vocab{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; align-items:stretch; }
.w30vocab > *{ margin:0!important; }
@media (max-width:900px){ .w30vocab{ grid-template-columns:1fr; } }

/* ---------- Investment LiQ: green ---------- */
html body #view.lmI > .pg{ background:linear-gradient(180deg,#F6FBF2,#E8F4DF)!important; border-color:#B9DCA4!important; box-shadow:0 8px 24px rgba(30,110,50,.14)!important; }







.lmI .b29tip{ border-color:#9BCB6B!important; background:linear-gradient(180deg,#FBFFF2,#ECF7D9); }
.lmI .b29tip b{ background:linear-gradient(180deg,#2FA650,#1E8B3C); }
.lmI .b27main{ border-color:#C9E2B6; }
.lmI .b27title{ background:linear-gradient(90deg,#1B7A35,#2E9F48 50%,#1B7A35); }
.lmI .w30prog{ background:radial-gradient(120% 95% at 50% 0%,#3DB25A,#1E8B3C 55%,#14662B); box-shadow:0 6px 16px rgba(20,102,43,.3); }
.lmI .b27sub{ color:#EFFFF2; }
.lmI .b27recent{ border-color:#C9E2B6; } .lmI .b27recent header{ background:linear-gradient(90deg,#1B7A35,#2E9F48); }
.lmI .b27ad{ color:#163A20; }
.lmI .e29focus{ background:linear-gradient(180deg,#F3FBE8,#E3F4CF)!important; border-color:#A9D67F!important; }
.lmI .e29fh{ background:linear-gradient(90deg,#14662B,#2E9F48); }
.lmI .e29sk.focus{ border-color:#1E8B3C; box-shadow:0 0 0 2px #BFE7A8,0 3px 0 rgba(160,110,0,.25); }
.lmI .b27gh,.lmI .b27gn{ color:#163A20; } .lmI .b27gm{ color:#2B5A36; }
.lmI .w30dash .acbal{ margin-bottom:8px; }

/* ---------- Life LiQ: deep blue ---------- */
html body #view.lmL > .pg{ background:linear-gradient(180deg,#F4F8FF,#E3EDFD)!important; border-color:#B8CDF2!important; box-shadow:0 8px 24px rgba(23,71,166,.14)!important; }







.lmL .b29tip{ border-color:#8FB3EE!important; background:linear-gradient(180deg,#F7FAFF,#E2ECFC); }
.lmL .b29tip b{ background:linear-gradient(180deg,#2A6FD6,#1747A6); }
.lmL .b27main{ border-color:#C3D5F4; }
.lmL .b27title{ background:linear-gradient(90deg,#1747A6,#2A6FD6 50%,#1747A6); }
.lmL .w30prog{ background:radial-gradient(120% 95% at 50% 0%,#3D7FE0,#1F55BF 55%,#163F91); box-shadow:0 6px 16px rgba(22,63,145,.3); }
.lmL .b27sub{ color:#EEF4FF; }
.lmL .b27recent{ border-color:#C3D5F4; } .lmL .b27recent header{ background:linear-gradient(90deg,#1747A6,#2A6FD6); }
.lmL .b27ad{ color:#132A63; }
.lmL .e29focus{ background:linear-gradient(180deg,#F2F7FF,#E0EBFC)!important; border-color:#A9C6F5!important; }
.lmL .e29fh{ background:linear-gradient(90deg,#163F91,#2A6FD6); }
.lmL .e29sk.focus{ border-color:#1F55BF; box-shadow:0 0 0 2px #A9C6F5,0 3px 0 rgba(160,110,0,.25); }
.lmL .b27gh,.lmL .b27gn{ color:#132A63; } .lmL .b27gm{ color:#2C4580; }
.lmL .e29sk b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

/* ---------- MathLiQ Lab: Ethiopian coffee brown #70452F, warm cream, gold ---------- */
html body #view.lmM > .pg{ background:linear-gradient(180deg,#FFF9EE,#F6EAD6)!important; border-color:#E2C9A0!important; box-shadow:0 8px 24px rgba(112,69,47,.16)!important; }







.lmM .b29tip{ border-color:#E2B848!important; background:linear-gradient(180deg,#FFFBEF,#FBEBC8); }
.lmM .b29tip b{ background:linear-gradient(180deg,#8A5A3E,#70452F); }
.lmM .b27main{ border-color:#E2C9A0; }
.lmM .b27title{ background:linear-gradient(90deg,#5E3824,#70452F 50%,#5E3824); }
.lmM .w30prog{ background:radial-gradient(120% 95% at 50% 0%,#7D3FB0,#5A2A82 55%,#41195F); box-shadow:0 6px 16px rgba(65,25,95,.3); }
.lmM .b27sub{ color:#FFF3E2; }
.lmM .b27recent{ border-color:#E2C9A0; } .lmM .b27recent header{ background:linear-gradient(90deg,#5E3824,#8A5A3E); }
.lmM .b27ad{ color:#3B2112; }
.lmM .e29focus{ background:linear-gradient(180deg,#7A4B32,#5E3824)!important; border-color:#5E3824!important; }
.lmM .e29fh{ background:transparent; box-shadow:none; color:#FFE27A; } .lmM .e29fh div span{ color:#FFF3E2; }
.lmM .b27fdiv{ background:#FFE7B8; }
.lmM .e29sk.focus{ border-color:#F5B800; box-shadow:0 0 0 2px #FFE27A,0 3px 0 rgba(0,0,0,.25); }
.lmM .b27gh,.lmM .b27gn{ color:#3B2112; } .lmM .b27gm{ color:#5E3824; }
.lmM .w30gbar{ background:#F6E6B8; } .lmM .w30gbar i{ background:linear-gradient(90deg,#2DB34A,#1E8E36); }
.lmM .b27tile.earn{ background:linear-gradient(180deg,#FFF3B8,#FFD64D); } .lmM .b27tile.spend{ background:linear-gradient(180deg,#F5ECFF,#DCC6F7); } .lmM .b27tile.rew{ background:linear-gradient(180deg,#FFFDF5,#FFEFD2); } .lmM .b27tile.w30t4{ background:linear-gradient(180deg,#F5ECFF,#DCC6F7); border-color:#C3A2EC; }
/* the Lab's own inner banners and tab rows are replaced by the menu and the title */
.lmM .w30dash .phero,.lmM .w30dash .labnav21,.lmM .w30dash .labhtabs{ display:none!important; }

/* menu sizes: all three menus fit one screen beside the overview */
@media (min-width:901px){     .lmW .b29tip{ height:116px; } .lmW .e29ic{ width:24px; height:21px; font-size:15px; } }
@media (min-width:901px) and (max-height:820px){   .lmW .b29tip{ height:90px; } .lmW .e29ic{ width:20px; height:18px; font-size:12px; }   }
@media (min-width:901px) and (max-height:740px){  .lmW .b29tip{ height:78px; } }

/* compact overview so it fits beside the menu on one screen */
@media (min-width:901px){ .lmW .b27{ grid-template-columns:25.5% minmax(0,1fr); } }
@media (min-width:901px){
  
  .lmW .w30prog{ padding:6px 14px 8px; } .lmW .w30prog .e29book{ font-size:34px; }
  .lmW .e29pbox{ padding:12px 12px 8px; } .lmW .e29pct{ font-size:clamp(40px,calc(4 * var(--uxvw,1vw)),58px); }
  .lmW .w30acts .b27tile{ min-height:66px; font-size:clamp(13px,calc(1.25 * var(--uxvw,1vw)),17px); } .lmW .w30acts .b27tile span{ font-size:24px; }
  .lmW .w30goal{ padding:8px 12px; grid-template-columns:auto minmax(0,1fr) 68px; } .lmW .w30goal .b27gp{ width:68px; height:68px; font-size:50px; }
  .lmW .w30goal .b27gh{ font-size:clamp(16px,calc(1.5 * var(--uxvw,1vw)),21px); }
  .lmW .w30focus{ grid-template-columns:minmax(0,1fr) 2px minmax(0,1.9fr)!important; padding:6px 10px; }
  .lmW .w30focus .e29fh{ padding:5px 14px 5px 8px; } .lmW .w30focus .e29fh div span{ font-size:12px; display:block; line-height:1.2; }
  .lmW .w30focus .e29sk{ padding:4px 3px; } .lmW .w30focus .e29sk > span{ font-size:20px; }
  .lmW .b27act li{ padding:4px 0; }
}
/* the Lab menu is the longest (4 groups): slightly tighter rows */
@media (min-width:901px){   .lmM .b29tip{ height:104px; }  }
@media (min-width:901px) and (max-height:820px){   .lmM .b29tip{ height:84px; } }

.lmW .b29tip{ margin-top:auto!important; } 
.lmL .w30dash .lfpathh h2{ display:none!important; }

/* ---------- Savings Projection (Phase G1, read-only) — Investment LiQ colours ---------- */
.lmI .w30proj{ display:flex; flex-direction:column; gap:12px; padding:4px 2px; }
.lmI .w30proj h3{ margin:6px 0 0; font:700 18px/1.2 var(--ux-title,inherit); color:#13502A; }
.lmI .w30pj-note{ display:flex; align-items:center; gap:12px; background:#F1FAEF; border:2px solid #9FD4A6; border-radius:16px; padding:10px 14px; }
.lmI .w30pj-note img{ width:64px; height:auto; flex:none; }
.lmI .w30pj-note p{ margin:0; color:#1D4A2A; }
.lmI .w30pj-rule{ margin:0; color:#1D4A2A; }
.lmI .w30pj-t{ width:100%; border-collapse:collapse; background:#fff; border:1px solid #CFE8D2; border-radius:12px; overflow:hidden; }
.lmI .w30pj-t th{ text-align:left; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#3D6B49; background:#EAF6EC; padding:8px 10px; }
.lmI .w30pj-t td{ padding:8px 10px; border-top:1px solid #E3F1E5; color:#183B24; }
.lmI .w30pj-t tr.w30pj-now td{ color:#55705E; font-style:italic; }
.lmI .w30pj-ctl{ display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; }
.lmI .w30pj-ctl label{ display:flex; align-items:center; gap:8px; font-weight:700; color:#183B24; }
.lmI .w30pj-ctl input,.lmI .w30pj-ctl select{ font:inherit; min-height:40px; padding:4px 10px; border:2px solid #9FD4A6; border-radius:10px; background:#fff; width:auto; }
.lmI .w30pj-ctl input{ width:90px; }
.lmI .w30pj-math{ background:#FFF9E6; border:2px solid #F2D27A; border-radius:14px; padding:10px 14px; color:#3B2F12; line-height:1.5; }
@media (max-width:600px){ .lmI .w30pj-t th,.lmI .w30pj-t td{ padding:6px; font-size:14px; } }

/* ==== liq-certs30.css ==== */
/* Nov 9 · My Certificate Wall: coffee brown, warm cream and gold (liq-certs30.js) */
.cw30hide{ display:none!important; }
html body #view.cw30v > .pg{ background:linear-gradient(180deg,#FFF9EC,#FBEFD6)!important; border:3px solid #F2C94C!important; border-radius:26px!important; box-shadow:0 8px 24px rgba(112,69,47,.16)!important; padding:12px!important; }
html body #view.cw30v > .pg > .stk{ display:none!important; }
html body #view.cw30v .phero.cw30ban{ margin:0 0 12px!important; box-shadow:0 6px 16px rgba(112,69,47,.25)!important; }
html body #view.cw30v section.cw-page{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; gap:14px; }
/* progress */
.cw30prog{ display:flex; align-items:center; gap:18px; background:linear-gradient(180deg,#FFFDF6,#FFF4DC); border:3px solid #F2C94C; border-radius:24px; padding:10px 22px; box-shadow:0 4px 0 rgba(160,110,0,.15); }
.cw30troph{ width:clamp(90px,calc(12 * var(--uxvw,1vw)),150px); height:auto; flex:none; }
.cw30pt{ flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; min-width:0; }
.cw30track{ list-style:none; margin:0; padding:0; display:flex; align-items:center; width:100%; max-width:640px; }
.cw30track li{ flex:1; display:flex; align-items:center; }
.cw30track li:first-child{ flex:none; }
.cw30track li::before{ content:''; flex:1; height:4px; background:#1E8B3C; margin:0 4px; border-radius:2px; }
.cw30track li:first-child::before{ display:none; }
.cw30track span{ width:clamp(46px,calc(6 * var(--uxvw,1vw)),74px); aspect-ratio:1; border-radius:50%; display:grid; place-items:center; font:900 clamp(22px,calc(2.8 * var(--uxvw,1vw)),36px) var(--display); color:#1E8B3C; border:3px dashed #1E8B3C; background:#FFFDF6; flex:none; }
.cw30track li.on span{ color:#FFF6C8; background:radial-gradient(circle at 50% 40%,#2FB052,#17803A 70%); border:4px solid #E9B93A; box-shadow:0 0 0 3px #FFF1B8,0 4px 8px rgba(23,128,58,.35); }
.cw30pt p{ margin:0; text-align:center; color:#14244F; font:800 clamp(15px,calc(1.6 * var(--uxvw,1vw)),22px)/1.2 var(--display); }
/* wall */
.cw30wall{ position:relative; background:linear-gradient(180deg,#FFFDF6,#FFF6E2); border:3px solid #F2C94C; border-radius:24px; padding:44px 18px 18px; margin-top:22px; box-shadow:0 4px 0 rgba(160,110,0,.12); }
.cw30h{ position:absolute; left:10px; top:-24px; margin:0; display:flex; align-items:center; gap:10px; background:linear-gradient(180deg,#83553B,#5E3824); color:#fff; border:3px solid #F2C94C; border-radius:999px; padding:4px 28px 4px 6px; font:800 clamp(20px,calc(2.2 * var(--uxvw,1vw)),30px)/1.1 var(--display); box-shadow:0 4px 0 rgba(60,30,10,.3); }
.cw30h b{ color:#FFD84D; }
.cw30med{ width:46px; height:46px; border-radius:50%; background:#FFF6DC; border:2px solid #F2C94C; display:grid; place-items:center; font-size:26px; }
.cw30grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cw30card{ position:relative; min-height:190px; border-radius:20px; border:3px solid #E5D6B8; background:linear-gradient(180deg,#FBF6EC,#F1E8D8); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; text-align:center; padding:10px; box-shadow:inset 0 0 0 6px #FFFDF6,0 3px 0 rgba(120,90,40,.12); overflow:hidden; }
.cw30card.lock::before,.cw30card.lock::after{ content:''; position:absolute; top:22%; width:20%; height:58%; background:url(../bank/w29-tl2a.png) center/contain no-repeat; opacity:.22; filter:grayscale(1); }
.cw30card.lock::before{ left:8%; } .cw30card.lock::after{ right:8%; background-image:url(../bank/w29-tra.png); }
.cw30lk{ font-size:44px; filter:grayscale(1) brightness(.9); }
.cw30card.lock b{ font:800 clamp(18px,calc(1.9 * var(--uxvw,1vw)),26px) var(--display); color:#8B7F86; } .cw30card.lock small{ font:700 clamp(13px,calc(1.3 * var(--uxvw,1vw)),17px) var(--display); color:#9C9097; }
.cw30card.next{ border-color:#E9B93A; } .cw30card em{ font-style:normal; margin-top:4px; font:800 13px var(--display); color:#70452F; background:#FFF1C2; border-radius:999px; padding:2px 10px; }
.cw30card.got{ flex-direction:row; align-items:stretch; gap:12px; border-color:#E9B93A; background:linear-gradient(180deg,#FFF9E6,#FBEBC4); box-shadow:inset 0 0 0 6px #FFFDF2,0 4px 0 rgba(160,110,0,.2); text-align:left; }
.cw30card.got::before{ content:''; position:absolute; left:-30px; top:12px; width:120px; height:22px; transform:rotate(-38deg); background:linear-gradient(180deg,#1E9E45 0 33%,#F5D90A 33% 66%,#E03A2B 66%); opacity:.95; }
.cw30thumb{ all:unset; cursor:pointer; flex:none; width:clamp(100px,calc(9 * var(--uxvw,1vw)),132px); display:block; border-radius:6px; box-shadow:0 4px 10px rgba(80,50,0,.25); position:relative; z-index:1; }
.cw30thumb svg{ display:block; width:100%; height:auto; border-radius:6px; }
.cw30thumb:focus-visible{ outline:3px solid #70452F; outline-offset:3px; }
.cw30cap{ display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; }
.cw30k{ font:800 12px var(--display); letter-spacing:.06em; text-transform:uppercase; color:#B8860B; }
.cw30cap b{ font:800 clamp(14px,calc(1.35 * var(--uxvw,1vw)),18px)/1.15 var(--display); color:#14244F; }
.cw30cap > span:not(.cw30acts):not(.cw30k){ font-weight:700; font-size:13px; color:#5E3824; }
.cw30acts{ display:flex; gap:6px; flex-wrap:wrap; margin-top:4px; }
.cw30acts button{ all:unset; cursor:pointer; font:800 13px var(--display); padding:4px 10px; border-radius:999px; background:#fff; border:2px solid #E9B93A; color:#5E3824; }
.cw30acts button:first-child{ background:linear-gradient(180deg,#83553B,#5E3824); color:#fff; border-color:#5E3824; }
.cw30acts button:focus-visible{ outline:3px solid #70452F; }
.cw30card.grand{ border-color:#E9B93A; background:linear-gradient(180deg,#FFF6D6,#FFE9A8); }
.cw30gift{ font-size:48px; } .cw30card.grand:not(.open) .cw30gift{ filter:saturate(.6); }
.cw30card.grand b{ font:800 clamp(17px,calc(1.7 * var(--uxvw,1vw)),23px) var(--display); color:#5E3824; } .cw30card.grand small{ font:700 13px var(--display); color:#70452F; }
/* the cards that stay below: same cream / brown family */
html body #view.cw30v section.cw-page > .card{ background:linear-gradient(180deg,#FFFDF6,#FFF6E2)!important; border:2px solid #EAD7B0!important; border-radius:20px!important; }
html body #view.cw30v section.cw-page > .card h2{ color:#5E3824!important; }
@media (max-width:1000px){ .cw30grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .cw30prog{ flex-direction:column; padding:10px; gap:8px; } .cw30troph{ width:96px; } .cw30grid{ grid-template-columns:1fr 1fr; gap:10px; } .cw30card{ min-height:150px; } .cw30card.got{ flex-direction:column; align-items:center; text-align:center; } .cw30thumb{ width:100px; } .cw30acts{ justify-content:center; } .cw30h{ font-size:19px; padding-right:16px; } .cw30med{ width:36px; height:36px; font-size:20px; } }
@media (max-width:600px){ .cw30card.got{ grid-column:1/-1; flex-direction:row; text-align:left; align-items:center; } .cw30card.got .cw30acts{ justify-content:flex-start; } }

/* ==== liq-home31.css ==== */
/* Nov 9 (task 28) · Student home in the standard left-menu layout — light blue / blue (home theme) */
.w31hide{ display:none!important; }
#view.lmH > .b27.w31{ margin-top:0; }
@media (min-width:901px){ #view.lmH .b27.w31{ grid-template-columns:23% minmax(0,1fr); align-items:start; } }
/* menu: blue side, gold group bars (like the reference) */



.lmH .b29k > .e29ic{ flex:none!important; }
.lmH .b29k > span:not(.e29ic){ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }


.lmH .b29k{ background:linear-gradient(180deg,#FFFFFF,#F0F5FE); border-color:#CADBF7; color:#13306B; min-height:30px; font-size:15px; }
.lmH .b29k.on{ background:linear-gradient(180deg,#EFE6FF,#DCCBFA); border-color:#B79BEA; }

/* the tip sits right under the menu and moves with it; its text is never cut */
.lmH .b29tip{ margin-top:6px!important; height:auto!important; min-height:96px; overflow:visible; border-color:#8FB3EE!important; background:linear-gradient(180deg,#FFFDF2,#FFF2C9); }
.lmH .b29tip img{ object-fit:contain; height:auto; max-height:110px; }
.lmH .b29tip b{ background:linear-gradient(180deg,#FFD84D,#F5B800); color:#13306B; }
.lmH .b29tip p{ color:#13306B; }
/* panel: natural height (no fixed size), the cards keep their own look */
.lmH .b27main{ height:auto!important; overflow:visible; background:linear-gradient(180deg,#F5F9FF,#E9F1FD); border-color:#BCD1F2; }
.lmH .b27title{ display:flex!important; justify-content:center; background:linear-gradient(90deg,#1B4FA8,#2F78DA 50%,#1B4FA8); }
.lmH .b29tt{ gap:12px; }
html body #view.lmH .b27main > .dash.h24.w31d{ margin:0!important; padding:14px!important; max-width:none!important; width:auto!important; overflow:visible!important; }
/* the reference arrangement */
@media (min-width:1001px){
  html body #view.lmH .dash.h24.h24.h26.w31d{ grid-template-columns:repeat(12,minmax(0,1fr))!important; grid-template-rows:auto auto auto!important; gap:14px!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-now{ grid-area:1 / 1 / span 1 / span 7!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-board{ grid-area:1 / 8 / span 1 / span 5!important; margin-top:0!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-prog{ grid-area:2 / 1 / span 1 / span 6!important; align-self:stretch; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-chp{ grid-area:2 / 7 / span 1 / span 6!important; margin:0!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h26low{ grid-area:3 / 1 / span 1 / -1!important; }
}
html body #view.lmH .dash.h26.w31d > .h26low{ background:none!important; border:0!important; padding:0!important; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px; }
html body #view.lmH .dash.h26.w31d > .h26low > .w31class{ grid-column:1 / span 5!important; }
html body #view.lmH .dash.h26.w31d > .h26low > .h24-week{ grid-column:6 / span 3!important; }
html body #view.lmH .dash.h26.w31d > .h26low > .h24-wins{ grid-column:9 / span 4!important; }
@media (max-width:1000px){
  html body #view.lmH .dash.h24.h24.h26.w31d{ grid-template-columns:minmax(0,1fr)!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > *{ grid-area:auto / 1 / auto / -1!important; }
  html body #view.lmH .dash.h26.w31d > .h26low{ grid-template-columns:1fr!important; }
  html body #view.lmH .dash.h26.w31d > .h26low > *{ grid-column:1 / -1!important; }
}
/* Join Today's Class card (calls the same joinClass() as the blue-bar link) */
.w31class{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:22px; color:#fff; background:linear-gradient(135deg,#5B2BB5,#7B3FE0 60%,#4C2399); box-shadow:0 5px 0 rgba(60,20,120,.35); min-height:96px; }
.w31class.off{ background:linear-gradient(135deg,#8C7BB3,#A493CF); }
.w31cam{ font-size:38px; flex:none; } .w31ct{ display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.w31ct b{ font:800 clamp(18px,calc(1.6 * var(--uxvw,1vw)),23px) var(--display); } .w31ct small{ font-weight:700; font-size:13px; opacity:.9; }
.w31ct em{ font-style:normal; align-self:flex-start; background:#E5322D; color:#fff; font:800 12px var(--display); padding:2px 8px; border-radius:6px; }
.w31go{ width:34px; height:34px; border-radius:50%; background:#fff; color:#5B2BB5; display:grid; place-items:center; font:900 22px var(--display); flex:none; }
.w31class:focus-visible{ outline:3px solid #FFD84D; outline-offset:3px; }


/* ===== one-screen home (Beti, Nov 9 05:46): everything visible at once like the reference; long inner pages may scroll ===== */
body.w31home #bigBanner{ margin-bottom:10px!important; }
body.w31home #bigBanner img.banner{ height:auto!important; max-height:none!important; width:100%!important; object-fit:contain!important; display:block; }
@media (min-width:1001px){
  html body #view.lmH .b27main > .dash.h24.w31d{ padding:10px 12px!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d{ gap:10px!important; }
  /* notebook: compact like the reference (text left, picture right, the four steps) */
  html body #view.lmH .dash.w31d > .h24-now{ padding:8px 18px 8px 34px!important; min-height:0!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit{ gap:2px 10px!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit > span{ font-size:14px!important; padding:3px 12px!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit > b{ font-size:clamp(17px,calc(1.5 * var(--uxvw,1vw)),21px)!important; line-height:1.1!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit > i{ font-size:12px!important; padding:3px 10px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage{ display:grid!important; grid-template-columns:minmax(0,1fr) 120px; grid-template-areas:"k pic" "h2 pic" "goal pic" "steps steps"; gap:4px 12px!important; padding:8px 12px!important; margin-top:6px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .nk{ grid-area:k; margin:0!important; font-size:12px!important; padding:2px 10px!important; justify-self:start; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > h2{ grid-area:h2; margin:0!important; font-size:clamp(20px,calc(1.9 * var(--uxvw,1vw)),26px)!important; line-height:1.1!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .ngoal{ grid-area:goal; margin:0!important; font-size:13px!important; line-height:1.3!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .nowpic{ grid-area:pic; margin:0!important; padding:4px!important; min-height:0!important; height:auto!important; align-self:center; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .nowpic svg{ width:100%!important; height:auto!important; max-height:96px; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .ncap,html body #view.lmH .dash.w31d > .h24-now .nbpage > .ncta{ display:none!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .nsteps{ grid-area:steps; margin:4px 0 0!important; gap:6px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nsteps button{ padding:6px 4px!important; font-size:14px!important; min-height:0!important; }
  html body #view.lmH .dash.w31d > .h24-now .nsteps small{ display:none!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nbtabs{ top:46px!important; gap:8px!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nbtabs i{ height:34px!important; }
  /* Message Board: compact, same height as the notebook */
  html body #view.lmH .dash.w31d > .h24-board{ padding:10px!important; display:flex!important; flex-direction:column; gap:8px; min-height:0!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnote{ min-height:0!important; height:auto!important; padding:8px 10px!important; margin:0!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnote.main{ flex:none; }
  html body #view.lmH .dash.w31d > .h24-board .mnote.main img.bil{ height:56px!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnote h3{ font-size:16px!important; margin:2px 0!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnote p{ font-size:13px!important; margin:0!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnotes2{ flex:1; display:grid!important; grid-template-columns:1fr 1fr; gap:8px!important; margin:0!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnotes2 > .mnote{ transform:none!important; }
  /* rows 2 and 3: compact */
  html body #view.lmH .dash.w31d > .h24-prog{ padding:10px 14px!important; }
  html body #view.lmH .dash.w31d > .h24-chp{ padding:10px 14px!important; }
  html body #view.lmH .dash.w31d > .h24-chp h3,html body #view.lmH .dash.w31d > .h24-chp h2{ margin:0 0 6px!important; font-size:18px!important; }
  html body #view.lmH .dash.w31d > .h24-chp img,html body #view.lmH .dash.w31d > .h24-chp .chi{ max-height:30px!important; }
  html body #view.lmH .dash.w31d > .h26low > *{ min-height:0!important; padding:10px 12px!important; }
  html body #view.lmH .dash.w31d > .h26low > .w31class{ min-height:0; padding:12px 16px!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins img{ max-height:26px!important; }
}
@media (min-width:1001px){
  /* rows 2 and 3 tighter */
  html body #view.lmH .dash.w31d > .h24-prog .row{ margin:2px 0!important; } html body #view.lmH .dash.w31d > .h24-prog .track{ margin:4px 0!important; }
  html body #view.lmH .dash.w31d > .h24-prog .btn.small{ display:none!important; }
  html body #view.lmH .dash.w31d > .h24-chp .icons{ gap:8px!important; } html body #view.lmH .dash.w31d > .h24-chp .ic{ padding:6px!important; min-height:0!important; }
  html body #view.lmH .dash.w31d > .h24-chp .ic > span{ font-size:22px!important; } html body #view.lmH .dash.w31d > .h24-chp .ic em{ font-size:12.5px!important; line-height:1.2!important; }
  html body #view.lmH .dash.w31d > .h26low .h24-week .week i{ width:22px!important; height:22px!important; font-size:11px!important; }
  html body #view.lmH .dash.w31d > .h26low .h24-week{ font-size:12.5px!important; }
  html body #view.lmH .dash.w31d > .h26low .h24-wins{ font-size:13px!important; }
  html body #view.lmH .dash.w31d > .h26low .h24-wins li,html body #view.lmH .dash.w31d > .h26low .h24-wins .win{ padding:2px 0!important; margin:0!important; }
}
@media (min-width:1001px){
  html body #view.lmH .dash.w31d > .h26low > .h24-wins{ display:flex!important; flex-direction:column; gap:4px; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .k{ margin:0!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins{ display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto 1fr; gap:4px 6px!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .k{ grid-column:1 / -1; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow{ display:flex!important; flex-direction:column; align-items:center; text-align:center; gap:2px; padding:2px!important; margin:0!important; min-width:0; border:0!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow img,html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow .wi{ width:28px!important; height:28px!important; font-size:22px!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow b{ font-size:12px!important; line-height:1.1; display:block; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow .mini{ display:none!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-week .week{ margin:4px 0!important; }
  html body #view.lmH .dash.w31d > .h24-prog .h24h,html body #view.lmH .dash.w31d > .h24-chp .h24h{ font-size:18px!important; margin:0 0 4px!important; }
  html body #view.lmH .dash.w31d > .h24-prog .track{ height:44px!important; }
  html body #view.lmH .dash.w31d > .h24-prog .mini{ margin:0!important; font-size:12px!important; }
  html body #view.lmH .dash.w31d > .h24-chp .ic > span{ font-size:20px!important; margin:0!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > h2{ font-size:clamp(19px,calc(1.7 * var(--uxvw,1vw)),24px)!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .ngoal{ font-size:12.5px!important; }
  html body #view.lmH .dash.w31d > .h24-now{ padding-top:6px!important; padding-bottom:6px!important; }
}
@media (min-width:1001px){
  .lmH .b27title{ min-height:44px!important; } .lmH .b29tt{ font-size:clamp(22px,calc(2.2 * var(--uxvw,1vw)),32px)!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage{ grid-template-columns:minmax(0,1fr) 96px!important; padding:6px 10px!important; margin-top:4px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > h2{ font-size:clamp(18px,calc(1.55 * var(--uxvw,1vw)),22px)!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .nowpic svg{ max-height:80px; }
  html body #view.lmH .dash.w31d > .h24-now .nsteps button{ padding:4px!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit > b{ font-size:clamp(16px,calc(1.4 * var(--uxvw,1vw)),19px)!important; }
  html body #view.lmH .dash.w31d > .h24-board .mnote.main img.bil{ height:48px!important; }
  html body #view.lmH .dash.w31d > .h24-prog .track{ height:36px!important; }
  html body #view.lmH .dash.w31d > .h24-prog,html body #view.lmH .dash.w31d > .h24-chp{ padding:8px 12px!important; }
  html body #view.lmH .dash.w31d > .h24-chp .ic{ padding:4px!important; }
  html body #view.lmH .dash.w31d > .h26low > *{ padding:8px 10px!important; }
  html body #view.lmH .dash.w31d > .h26low > .w31class{ padding:10px 14px!important; text-align:left!important; }
  html body #view.lmH .dash.w31d > .h26low > .w31class .w31ct b{ font-size:20px!important; line-height:1.1!important; }
  html body #view.lmH .dash.w31d > .h26low > .w31class .w31cam{ font-size:30px!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-week .k,html body #view.lmH .dash.w31d > .h26low > .h24-wins .k{ margin:0!important; }
}
@media (min-width:1001px){
  html body #view.lmH .dash.w31d > .h24-prog{ display:flex!important; flex-direction:column; gap:4px; }
  html body #view.lmH .dash.w31d > .h24-prog > *{ margin:0!important; }
  html body #view.lmH .dash.w31d > .h24-chp{ display:flex!important; flex-direction:column; gap:4px; }
  html body #view.lmH .dash.w31d > .h24-chp > *{ margin:0!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow > span{ display:block; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow{ height:auto!important; min-height:0!important; justify-content:flex-start; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow img{ height:26px!important; width:26px!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-wins > .winrow b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  html body #view.lmH .dash.w31d > .h26low > .h24-week > .mini{ margin:0!important; line-height:1.25; }
}
@media (min-width:1001px){
  body.w31home #bigBanner{ margin-bottom:4px!important; }
  html body #view.lmH .b27main > .dash.h24.w31d{ padding:8px 10px!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d{ gap:8px!important; } html body #view.lmH .dash.h26.w31d > .h26low{ gap:8px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage{ gap:2px 10px!important; padding:4px 10px!important; }
  html body #view.lmH .dash.w31d > .h24-now .nbpage > .ngoal{ font-size:12px!important; line-height:1.25!important; }
  html body #view.lmH .dash.w31d > .h24-now > .nunit{ margin-bottom:0!important; }
  html body #view.lmH .dash.w31d > .h24-chp .ic em{ font-size:11.5px!important; line-height:1.15!important; }
  html body #view.lmH .dash.w31d > .h24-chp .ic > span{ font-size:18px!important; }
  html body #view.lmH .dash.w31d > .h24-prog .k{ margin:0!important; }
  html body #view.lmH .dash.w31d > .h26low > .h24-week > .mini{ font-size:11.5px!important; }
}
/* shorter laptop screens: the whole home scales down a little so it still shows in one view */
@media (min-width:1001px) and (max-height:820px){ body.w31home #view.lmH{ zoom:.84; width:calc(min(100vw - 32px, 1148px) / .84); max-width:none; } }
@media (min-width:1001px) and (max-height:700px){ body.w31home #view.lmH{ zoom:.76; width:calc(min(100vw - 32px, 1148px) / .76); } }
/* the blue menu holder always fills the height beside the page; the menu and tip move inside it */
@media (min-width:901px){ #view.lmH .b27.w31{ align-items:stretch!important; }  html body #view.lmH .b27main{ align-self:start; } }
/* ---------- test44 (Beti, Nov 13): the Math LiQ home sits in the same frame as the other LiQ home pages (English LiQ etc.):
   one 1180 px frame for banner + content (no wider frame on big screens, no squeezed content), and a banner of the same
   height as the world banners, inset like theirs. The blue bar under the banner stays blue. ---------- */
html body.w31home main.wrap{ max-width:var(--liq-w)!important; margin-inline:auto!important }
html body.w31home #hud #bigBanner.headbanner{ max-width:var(--liq-w)!important; margin-inline:auto!important; padding:16px 16px 0!important; box-sizing:border-box!important }
html body.w31home #hud #bigBanner img.banner{ height:131px!important; max-height:131px!important; width:100%!important; object-fit:contain!important; object-position:center!important;
  background:#fff!important; border-radius:16px!important; margin:0!important }   /* test45: the new banner has a white surround */
@media (max-width:700px){ html body.w31home #hud #bigBanner img.banner{ height:auto!important; max-height:none!important } html body.w31home #hud #bigBanner.headbanner{ padding:8px 8px 0!important } }
/* test47: no wide-screen stretch here any more — the Universal Content Width Standard (liq-ds35.css) sets the width */


/* ==== liq-today.css ==== */
/* G3 (test27): Today card on Student Home + the warm-up window */
.td3{background:#FFFDF4;border:2px solid #F0DFA8;border-radius:18px;padding:10px 14px;margin:14px 14px 0;color:#2B2A33}
.td3h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.td3h h3{margin:0;font-size:18px;color:#4A2A00}
.td3n{font-size:13px;font-weight:700;color:#6B6A75;background:#F4EEDA;border-radius:999px;padding:2px 10px}
.td3warm{margin-left:auto;border:2px solid #F59E0B;background:#FFF3D6;color:#7A3E00;font:inherit;font-weight:800;font-size:14px;border-radius:999px;padding:5px 14px;cursor:pointer}
.td3warm.ok{border-color:#86D19C;background:#E7F8EC;color:#166534}
.td3l{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.td3l li{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #ECE3C6;border-radius:14px;padding:6px 10px;min-width:0}
.td3l li.ok{background:#F1FBF3;border-color:#BFE6C8}
.td3i{font-size:22px;flex:0 0 auto}
.td3t{display:flex;flex-direction:column;min-width:0;flex:1}
.td3t b{font-size:14.5px;line-height:1.25;overflow-wrap:anywhere}
.td3t small{font-size:12.5px;color:#6B6A75}
.td3s{font-weight:800;color:#15803D;font-size:13px;white-space:nowrap}
.td3go{border:0;background:#2563EB;color:#fff;font:inherit;font-weight:800;font-size:13px;border-radius:999px;padding:5px 12px;cursor:pointer;white-space:nowrap}
.td3go:focus-visible,.td3warm:focus-visible,.td3c:focus-visible,.td3close:focus-visible{outline:3px solid #1D4ED8;outline-offset:2px}
.td3f{margin:6px 2px 0;font-size:12px;color:#7A7685}
.td3dlg{position:fixed;inset:0;z-index:9000;background:rgba(20,18,40,.45);display:grid;place-items:center;padding:16px}
.td3box{background:#FFFDF4;color:#2B2A33;border-radius:20px;border:3px solid #F0DFA8;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:16px 18px;box-shadow:0 18px 40px rgba(0,0,0,.25)}
.td3top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.td3box h3{margin:0;font-size:20px;color:#4A2A00}
.td3close{border:0;background:#F4EEDA;border-radius:50%;width:36px;height:36px;font-size:16px;cursor:pointer}
.td3w{display:flex;flex-direction:column;margin:8px 0 4px}.td3w span{font-weight:800}.td3w small{color:#6B6A75}
.td3q{font-size:17px;font-weight:600;margin:8px 0}
.td3svg svg{max-width:100%;height:auto;max-height:220px}
.td3ch{display:flex;flex-direction:column;gap:6px}
.td3c{text-align:left;border:2px solid #E3D8B6;background:#fff;border-radius:12px;padding:8px 12px;font:inherit;font-size:15px;cursor:pointer;color:#2B2A33}
.td3c.on{border-color:#2563EB;background:#EEF4FF}.td3c.right{border-color:#16A34A;background:#E7F8EC}.td3c.wrong{border-color:#DC2626;background:#FDECEC}
.td3in{display:flex;flex-direction:column;font-weight:700;gap:4px}.td3in input{font:inherit;font-size:20px;padding:6px 10px;border:2px solid #C9B98A;border-radius:12px;max-width:200px}
.td3row{display:flex;gap:8px;margin-top:12px}
.td3motto,.td3box .td3motto{margin-top:6px;font-weight:800;color:#5B3A00}
/* Bilcho's encouraging line */
.bil-motto{display:block;margin-top:4px;font-weight:800;color:#5B3A00;font-size:.92em}
@media (max-width:640px){.td3{margin:10px 8px 0}.td3warm{margin-left:0}.td3l{grid-template-columns:1fr}}
.td3pas{display:block;margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#FFFBEF;border:1px solid #EADDB6;font-size:15px;line-height:1.5;color:#3B2F1A}

/* ==== liq-home32.css ==== */
/* test28: Student Home layout (see liq-home32.js). Positions and sizes only; the cards keep their own styles. */
html body #view:has(> #h32wrap){gap:12px!important}
#h32wrap{font-family:var(--body,system-ui);display:flex;flex-direction:column;gap:12px}
/* ---------- blue bar ---------- */
.h32bar{display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,#2E6BE0,#1B4FB8);border-radius:20px;padding:6px 14px 6px 10px;margin-top:6px;box-shadow:0 4px 0 rgba(20,50,110,.16);color:#fff}
.h32hi{display:flex;align-items:center;gap:10px;flex:0 0 auto}
html body #view .h32hi img{height:64px!important;width:auto!important;margin:-12px 0 -6px}
.h32hi b{display:block;font:800 22px/1.1 var(--display,system-ui)}
.h32hi small{font-size:15px;opacity:.95}
.h32step{border-left:2px solid rgba(255,255,255,.45);padding-left:14px;display:flex;flex-direction:column;font-size:15px;line-height:1.25;min-width:170px;flex:1 1 220px}
.h32step b{color:#FFD24A;font-weight:800}
.h32swoosh{flex:1 1 120px;min-width:40px;max-width:260px;height:40px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 50'%3E%3Cpath d='M4 40 C 90 46 190 40 296 8' stroke='%23F5C451' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cg fill='%23FFE7A3'%3E%3Cpath d='M60 14l2 5 5 2-5 2-2 5-2-5-5-2 5-2z'/%3E%3Cpath d='M150 8l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z'/%3E%3Cpath d='M230 30l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
/* icon buttons drawn like the compass / home / bell at the top: plain icons, no big boxes */
.h32menus{display:flex;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto;padding-left:12px;border-left:2px solid rgba(255,255,255,.35)}
.h32dd{position:relative}
.h32ib{position:relative;width:46px;height:46px;border-radius:50%;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .15s}
.h32ib svg{width:28px;height:28px}
.h32ib:hover,.h32dd.open .h32ib{background:rgba(255,255,255,.18)}
.h32dd.open .h32ib{color:#FFD24A}
.h32ib:focus-visible{outline:3px solid #FFD24A;outline-offset:1px}
.h32warmib svg{color:#FFC54D}
.h32badge,.h32ok{position:absolute;top:2px;right:0;min-width:18px;height:18px;border-radius:9px;background:#E5484D;color:#fff;font:800 11px/18px var(--body,system-ui);padding:0 4px;box-sizing:border-box;border:2px solid #1F57C3}
.h32ok{background:#2FA34B}
.h32ddp{display:none;position:absolute;right:-6px;top:calc(100% + 8px);z-index:60;background:#fff;border:2px solid #F0B429;border-radius:14px;padding:6px;min-width:240px;box-shadow:0 14px 30px rgba(10,30,80,.25)}
.h32ddt{font:800 12.5px/1 var(--display,system-ui);text-transform:uppercase;letter-spacing:.06em;color:#8A4B00;padding:8px 12px 6px}
.h32dd.open .h32ddp{display:flex;flex-direction:column;gap:2px}
.h32ddp .b29k{display:flex;align-items:center;gap:10px;background:none;border:0;border-radius:10px;padding:10px 12px;font:700 16px/1.2 var(--body,system-ui);color:#14244F;text-align:left;cursor:pointer}
.h32ddp .b29k:hover{background:#FFF6DA}
/* ---------- one light-blue box, three columns like the reference ---------- */
.h32home{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:"nb nb nb nb nb nb nb board board board board board" "tip tip tip tip week week week week wins wins wins wins" "today today today today today today today cls cls cls cls cls" "prog prog prog prog prog prog prog prog prog prog prog prog";grid-template-rows:auto auto auto auto;gap:14px;background:#E6F1FF;border:2px solid #C5DBF7;border-radius:24px;padding:14px;align-items:stretch}
.h32nbcell{grid-area:nb}.h32tipcell{grid-area:tip}.h32weekcell{grid-area:week}.h32boardcell{grid-area:board}.h32winscell{grid-area:wins}.h32progcell{grid-area:prog}.h32todaycell{grid-area:today}.h32class2{grid-area:cls}
.h32home > div{display:flex;min-width:0}
html body #view #h32wrap .h32nbhost.dash.h24.h24.h26{display:flex!important;flex:1;margin:0!important;padding:0!important;background:none!important;border:0!important;max-width:none!important;width:auto!important;min-height:0!important;grid-template-columns:none!important}
html body #view #h32wrap .h32nbhost.dash.h24.h24.h26 > *{flex:1;margin:0!important;width:auto!important;max-width:none!important;min-height:0!important;height:auto!important}
/* message board: big note on top, two small below, filling the board */
html body #view #h32wrap .h32bhost.dash.h24.h24.h26 > .mboard.h24-board.p.p{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:stretch;gap:14px!important;padding:16px 14px!important;box-sizing:border-box}
html body #view #h32wrap .h32bhost .mboard > *{margin:0!important;min-width:0;max-width:100%;box-sizing:border-box;width:auto!important;display:flex!important;flex-direction:column;justify-content:center}
html body #view #h32wrap .h32bhost .mboard > .h32big{grid-column:1 / -1}
html body #view #h32wrap .h32bhost .mboard > .h32big.mnote.main .mrow{width:100%}
.h32c{background:#FFFDF3;border-radius:18px;border:2px solid #F3D88A;padding:12px 14px;box-sizing:border-box;min-width:0}
.h32tip{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:linear-gradient(180deg,#F2F8FF,#E2EEFF);border-color:#9FC2F2;position:relative;padding-right:84px;justify-content:center}
html body #view .h32tip img{position:absolute;right:8px;bottom:6px;height:96px!important;width:auto!important}
.h32pill{display:inline-block;background:#FFD24A;border-radius:999px;padding:3px 12px;font:800 14.5px/1.2 var(--display,system-ui);color:#2A1E00}
.h32tip p{margin:4px 0 0;font-size:15px;line-height:1.4;color:#14244F}
.h32ch{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.h32ch h3{margin:0;font:800 19px/1 var(--display,system-ui);color:#14244F}
.h32n{background:#F1F3F7;border-radius:999px;padding:3px 9px;font-size:12.5px;color:#4A5568}
.h32today2 ul{list-style:none;margin:0;padding:0}
.h32today2 li{display:flex;align-items:center;gap:8px;padding:5px 4px;border-top:1px solid #EFE8D2;font-size:14px;color:#14244F}
.h32today2 li:first-child{border-top:0}
.h32today2 li.ok b{color:#1E7A35}
.h32today2 li b{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h32box{width:18px;height:18px;flex:0 0 18px;border:2px solid #4A5568;border-radius:4px;display:grid;place-items:center;font-weight:900;font-size:12px;color:#fff;box-sizing:border-box}
li.ok .h32box{background:#2FA34B;border-color:#2FA34B}
.h32done{color:#1E7A35;font-weight:900}
.h32go{border:0;background:#1D5BC9;color:#fff;border-radius:9px;padding:5px 9px;font:800 12.5px/1 var(--body,system-ui);cursor:pointer;white-space:nowrap}
.h32class2{display:flex;align-items:center;gap:14px;text-decoration:none;color:#14244F;background:linear-gradient(180deg,#F4F8FF,#E3ECFB);border-color:#A9C6F2}
.h32camb{width:70px;height:70px;flex:0 0 70px;border-radius:18px;background:#fff;border:2px solid #C9DBF7;display:grid;place-items:center;font-size:36px}
.h32class2 b{display:block;font:800 22px/1.15 var(--display,system-ui)}
.h32class2 small{display:block;margin-top:4px;font-size:13.5px;color:#4A5568}
.h32arr{margin-left:auto;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#1D5BC9;color:#fff;display:grid;place-items:center;font:900 22px/1 var(--body,system-ui)}
.h32class2.off .h32arr{background:#9AA4B6}
/* ---------- smaller screens ---------- */
@media (max-width:1100px){ .h32swoosh{display:none} }
@media (max-width:1100px){ .h32home{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"nb nb" "board board" "tip week" "today today" "wins cls" "prog prog";grid-template-rows:auto} }
@media (max-width:700px){ .h32home{grid-template-columns:minmax(0,1fr);grid-template-areas:"nb" "board" "tip" "today" "cls" "prog" "week" "wins";padding:8px;gap:12px} }
@media (max-width:640px){ .h32bar{flex-wrap:wrap;padding:8px;gap:6px}.h32step{border:0;padding:0;font-size:14px;flex-basis:100%}
  .h32hi b{font-size:20px}.h32menus{border:0;padding:4px 0 0;margin:0;width:100%;justify-content:space-around;border-top:1px solid rgba(255,255,255,.3)}
  .h32grid,#h32x{padding:8px!important;gap:12px!important}
  .h32ddp{position:fixed;left:8px;right:8px;top:auto;min-width:0}
  html body #view #h32wrap .h32bhost.dash.h24.h24.h26 > .mboard.h24-board.p.p{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding:14px 10px!important} }

html body #view #h32x.dash > .h24-prog{display:flex!important;flex-direction:column;justify-content:center}
.h32today2{display:flex;flex-direction:column;justify-content:center}.h32today2 ul{display:flex;flex-direction:column;gap:2px}

.h32tipcell > .b29tip{flex:1;margin:0!important;width:auto!important;max-width:none!important}
.h32todaycell > .td3{flex:1;margin:0!important;width:auto!important}
.h32todaycell .td3warm{display:none}
html body #view #h32wrap .h32bhost .mboard > .h32sm .mrow{flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
html body #view #h32wrap .h32bhost .mboard > .h32sm img.bil{height:48px!important}
html body #view #h32wrap .h32bhost .mboard > .h32sm .mtx p{display:none}

html body #view #h32wrap .h32bhost .mboard > .h32sm img.bil{height:48px!important}
html body #view #h32wrap .h32bhost .mboard > .h32sm .mtx p{display:none}

html body #view #h32wrap .h32bhost .mboard > .h32sm img.bil{display:none!important}
@media (min-width:901px){
/* notebook: picture beside the words, so Learn/Guided/Practice/Exit and Start Lesson show on the first screen */
html body #view #h32wrap .h32nbcell .nbpage{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:18px!important;row-gap:6px!important;align-items:start}
html body #view #h32wrap .h32nbcell .nbpage > *{grid-column:1!important;margin-top:0!important;margin-bottom:0!important}
html body #view #h32wrap .h32nbcell .nbpage > .nowpic{grid-column:2!important;grid-row:1 / span 3!important;align-self:center;width:auto!important;max-width:200px;margin:0!important}
html body #view #h32wrap .h32nbcell .nbpage > .nowpic svg{max-height:130px;width:auto}
html body #view #h32wrap .h32nbcell .nbpage > .nsteps,html body #view #h32wrap .h32nbcell .nbpage > .nsteps ~ *{grid-column:1 / -1!important}
/* fit notebook + board above the bottom bar on a normal laptop screen */
html body #view #h32wrap .h32nbcell .nbpage h2{font-size:34px!important;line-height:1.08!important}
html body #view #h32wrap .h32nbcell .nbpage .ngoal{font-size:15px!important;line-height:1.4!important}
html body #view #h32wrap .h32nbcell .nbpage > .ncap{display:none!important}
html body #view #h32wrap .h32nbcell .nbpage{padding-top:12px!important;padding-bottom:12px!important}
html body #view #h32wrap .h32nbcell .nunit{margin-bottom:4px!important}
html body #view #h32wrap .h32nbcell .nunit{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;column-gap:12px!important;height:auto!important}
html body #view #h32wrap .h32nbcell .nunit > *{grid-row:1!important;position:static!important;margin:0!important;transform:none!important}
html body #view #h32wrap .h32nbcell .nunit > b{font-size:22px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view #h32wrap .h32nbcell .nst small{display:none!important}
html body #view #h32wrap .h32nbcell .nbpage h2{font-size:31px!important}
html body #view #h32wrap .h32home{padding:12px!important}
html body #view #h32wrap .h32nbcell .nunit > span{grid-column:1!important}
html body #view #h32wrap .h32nbcell .nunit > b{grid-column:2!important}
html body #view #h32wrap .h32nbcell .nunit > i{grid-column:3!important}
html body #view #h32wrap .h32nbcell .nunit > span{position:relative!important;left:auto!important;top:auto!important}
html body #view #h32wrap .h32nbcell .nunit > b{grid-column:1 / -1!important;grid-row:2!important;font-size:19px!important;white-space:normal!important}
html body #view #h32wrap .h32nbcell .nunit > i{justify-self:end}
html body #view #h32wrap .h32nbcell .nunit{row-gap:4px!important}
html body #view #h32wrap .h32nbcell .nbpage > .nowpic svg{max-height:96px!important}
html body #view #h32wrap .h32nbcell .nbpage > .nowpic{max-width:130px!important}
html body #view #h32wrap .h32nbcell .ncta{min-height:0!important;padding-top:11px!important;padding-bottom:11px!important}
html body #view #h32wrap .h32nbcell .nbpage{row-gap:5px!important}
}
/* very narrow phones (320px): keep the notebook's decorative side tabs inside the page */
@media (max-width:380px){ .h32home{padding:6px!important;overflow-x:clip} }

/* ==== liq-std32.css ==== */
/* Nov 9 · Math LiQ standard page layout (liq-std32.js) — shared rules + Profile, Hall of Fame, Parent Desk, Medals, Secret Word */
.s32hide{ display:none!important; }
/* ---- one banner size (1440×200) on every page except the student home ---- */
html body #view .phero img.s32std{ display:block!important; width:100%!important; height:auto!important; aspect-ratio:1440/200; max-height:none!important; object-fit:fill!important; border-radius:22px; }
html body #view .phero.b27hero,html body #view .phero.w25ban{ border-radius:22px!important; overflow:hidden!important; }
html body #view .phero.s32hero{ padding:0!important; margin:0 0 12px!important; background:none!important; border:0!important; box-shadow:0 6px 16px rgba(60,40,20,.18)!important; min-height:0!important; display:block!important; }
html body #view .phero.s32hero > :not(.w25bimg){ position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; }
html body #view .phero.s32hero::before,html body #view .phero.s32hero::after{ display:none!important; content:none!important; }
/* ---- plain title bar: icon + page name ---- */
.b29tl,.b29tr{ display:none!important; }
.b27title{ display:flex!important; align-items:center; justify-content:center; gap:10px; position:relative; }
/* ---- the menu holder fills the height beside the page; menu + tip move inside it; pages keep their natural height ---- */
@media (min-width:901px){
  html body #view .b27{ align-items:stretch!important; }
  
  html body #view .b27 > .b27main{ align-self:start!important; height:auto!important; }
  html body #view .b27 > .b27main > .b27dash{ overflow:visible!important; }
}



/* ---- art at the bottom of the holder (only when there is room) ---- */



/* test47: the page width lives in ONE place — liq-ds35.css (Universal Content Width Standard) */

/* ============ shared brown pages (Profile, Hall of Fame) use the Lab's coffee-brown menu ============ */
.lmP .s32dash,.lmF .s32dash{ padding:12px 14px!important; }
/* Profile: cards keep their own look inside the cream panel */
.lmP .p25{ margin:0!important; }
.lmP .p25 > *{ margin-top:0!important; }
/* Hall of Fame: the page's own cards inside the panel */
.lmF .s32dash.card{ background:transparent!important; border:0!important; box-shadow:none!important; }
.lmF .s32dash > section.hofg{ margin-top:0!important; }

/* ============ Parent Desk (green) ============ */
.lmD .s32dash.card{ background:transparent!important; border:0!important; box-shadow:none!important; padding:12px 14px!important; }
html body #view.lmD > .pg{ background:linear-gradient(180deg,#F6FBF2,#E8F4DF)!important; }
.s32tools{ position:absolute; right:12px; top:50%; transform:translateY(-50%); display:flex; gap:8px; align-items:center; }
.s32tools > button{ margin:0!important; }
.s32tools .lxunit{ background:#fff; border:2px solid #CDE8BF; border-radius:999px; padding:4px 12px; font:800 13px var(--display); color:#163A20; }
@media (max-width:900px){ .s32tools{ position:static; transform:none; justify-content:center; padding:6px 0; } }
.s32ph{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:12px; }
.s32card{ background:#fff; border:2px solid #C9E2B6; border-radius:20px; overflow:hidden; box-shadow:0 4px 0 rgba(30,110,50,.08); display:flex; flex-direction:column; }
.s32card > header{ display:flex; align-items:center; gap:8px; background:linear-gradient(90deg,#1B7A35,#2E9F48); color:#fff; padding:6px 14px; font:800 18px var(--display); }
.s32card > header b{ flex:1; } .s32card > header .b27all{ color:#fff; }
.s32kids{ grid-column:1 / span 5; } .s32week{ grid-column:6 / span 7; } .s32worlds{ grid-column:1 / span 7; } .s32recent{ grid-column:8 / span 5; } .s32next{ grid-column:1 / -1; }
.s32kid{ display:flex; align-items:center; gap:14px; padding:14px; flex:1; background:linear-gradient(180deg,#F2F8FF,#E2EEFC); margin:10px; border-radius:16px; border:2px solid #BCD1F2; }
.s32av{ width:72px; height:72px; border-radius:50%; overflow:hidden; border:3px solid #2A6FD6; flex:none; display:grid; place-items:center; background:#fff; font-size:36px; } .s32av img{ width:100%; height:100%; object-fit:cover; }
.s32kid > div{ flex:1; display:flex; flex-direction:column; } .s32kid b{ font:800 22px var(--display); color:#13306B; } .s32kid small{ font-weight:700; color:#2C4580; }
.s32btn,.s32go{ all:unset; cursor:pointer; background:linear-gradient(180deg,#FFE680,#F5B800); border:2px solid #E9A800; color:#3B2112; font:800 15px var(--display); padding:8px 16px; border-radius:999px; box-shadow:0 3px 0 rgba(120,80,0,.3); white-space:nowrap; }
.s32btn:focus-visible,.s32go:focus-visible{ outline:3px solid #1B7A35; outline-offset:2px; }
.s32tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:10px; flex:1; }
.s32tiles > div{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:2px; padding:8px 4px; border-radius:16px; border:2px solid #E5EDF5; background:#F7FAFF; }
.s32tiles > div > span{ font-size:24px; } .s32tiles > div > b{ font:900 22px var(--display); color:#13306B; } .s32tiles > div > small{ font-weight:700; color:#41506E; font-size:12.5px; }
.s32week .s32tiles > div:nth-child(1){ background:#EAF4FF; } .s32week .s32tiles > div:nth-child(2){ background:#FFF8DE; } .s32week .s32tiles > div:nth-child(3){ background:#FFEDE6; } .s32week .s32tiles > div:nth-child(4){ background:#F2EAFE; }
.s32w-math{ background:#FFF4D1!important; } .s32w-invest{ background:#EDF8E6!important; } .s32w-english{ background:#FDEAF3!important; } .s32w-life{ background:#E8F0FD!important; }
.s32bar{ display:block; width:90%; height:8px; border-radius:99px; background:#E1E6EE; overflow:hidden; } .s32bar > i{ display:block; height:100%; background:linear-gradient(90deg,#2DB34A,#1E8E36); }
.s32recent ul{ list-style:none; margin:0; padding:6px 14px; } .s32recent li{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid #E6EFE0; font-size:14px; }
.s32recent li b{ font-weight:700; color:#163A20; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .s32recent li small{ color:#4A5A4E; font-weight:700; }
.s32next{ flex-direction:row; align-items:center; gap:16px; padding:12px 18px; background:linear-gradient(180deg,#F3FBE8,#E3F4CF); }
.s32cal{ font-size:46px; } .s32next > div{ flex:1; } .s32next b{ font:800 22px var(--display); color:#14662B; } .s32next ul{ margin:4px 0 0; padding-left:20px; font-weight:700; color:#163A20; }
@media (max-width:1000px){ .s32ph > *{ grid-column:1 / -1!important; } .s32next{ flex-wrap:wrap; } }
@media (max-width:600px){ .s32tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.lmD .b29tip b{ background:linear-gradient(180deg,#FFD84D,#F5B800)!important; color:#3B2112!important; }

/* ============ My Medal Collection (brown / cream / gold, no menu) ============ */
html body #view.s32m > .pg,html body #view.s32w > .pg{ background:linear-gradient(180deg,#FFF9EC,#FBEFD6)!important; border:3px solid #F2C94C!important; border-radius:26px!important; padding:12px!important; }
html body #view.s32m > .pg > .stk,html body #view.s32w > .pg > .stk{ display:none!important; }
html body #view.s32m section.card.stack,html body #view.s32w section.card.stack{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; gap:14px; }
.s32top{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:16px; align-items:center; background:linear-gradient(180deg,#FFFDF6,#FFF4DC); border:3px solid #F2C94C; border-radius:22px; padding:12px 18px; }
.s32intro{ margin:0!important; border-left:6px solid #F5B800; padding-left:12px; color:#14244F; font-weight:700; }
.s32vals{ display:flex; justify-content:space-around; gap:8px; flex-wrap:wrap; background:linear-gradient(180deg,#F5F0FF,#E9E1FB); border:2px solid #CBB8F2; border-radius:999px; padding:8px 14px; font:800 17px var(--display); color:#14244F; }
.s32mgrid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; align-items:start; }
html body #view.s32m .medbox{ margin:0!important; background:linear-gradient(180deg,#FFFDF6,#FFF6E2)!important; border:3px solid #F2C94C!important; border-radius:22px!important; padding:0 0 12px!important; overflow:hidden; }
html body #view.s32m .medbox > h2{ margin:0!important; padding:10px 18px!important; background:linear-gradient(90deg,#5E3824,#83553B)!important; color:#FFD84D!important; font:800 24px var(--display)!important; }
html body #view.s32m .medbox.todo > h2{ background:linear-gradient(90deg,#DCEBFF,#C7DCFA)!important; color:#13306B!important; }
html body #view.s32m .medbox > .mini{ margin:6px 18px!important; font-weight:700; }
html body #view.s32m .medbox .awards{ padding:0 12px; } html body #view.s32m .medbox .medals{ padding:0 12px; display:flex!important; flex-direction:column; gap:10px; }
html body #view.s32m .medbox .medal{ display:grid!important; grid-template-columns:auto auto minmax(0,1fr) auto; align-items:center; gap:10px; text-align:left!important; border:2px dashed #9CC0EE!important; border-radius:18px!important; padding:8px 12px!important; background:#fff!important; }
html body #view.s32m .medbox .medal.bronze{ border-color:#E0A26B!important; } html body #view.s32m .medbox .medal.gold{ border-color:#EBC24A!important; }
html body #view.s32m .medbox .medal > div:first-child{ font-size:28px!important; }
html body #view.s32m .medbox .medal .btn{ margin:0!important; background:linear-gradient(180deg,#FFE680,#F5B800)!important; border-color:#E9A800!important; color:#3B2112!important; }
@media (max-width:900px){ .s32top,.s32mgrid{ grid-template-columns:1fr; } html body #view.s32m .medbox .medal{ grid-template-columns:auto minmax(0,1fr); } }

/* ============ Secret-Word Prize Game ============ */
.s32wh{ display:flex; align-items:center; gap:24px; justify-content:center; flex-wrap:wrap; padding:6px 0; }
.s32wh h2{ margin:0; font:900 clamp(26px,calc(3 * var(--uxvw,1vw)),40px)/1 var(--display); color:#14244F; } .s32wh h2 span{ background:linear-gradient(180deg,#FFE680,#F5B800); padding:0 10px; border-radius:12px; }
.s32wh p{ margin:0; padding-left:24px; border-left:3px solid #E9B93A; font:700 clamp(16px,calc(1.6 * var(--uxvw,1vw)),22px) var(--display); color:#14244F; }
.s32rule{ margin:0 auto!important; max-width:980px; background:linear-gradient(180deg,#F5F0FF,#ECE4FD); border:2px solid #CBB8F2; border-radius:999px; padding:8px 18px; text-align:center; font-weight:700; color:#14244F; }
html body #view.s32w .letters{ justify-content:center; gap:14px!important; }
html body #view.s32w .letters > div{ width:clamp(56px,calc(7 * var(--uxvw,1vw)),92px)!important; height:clamp(56px,calc(7 * var(--uxvw,1vw)),92px)!important; border-radius:18px!important; font:900 clamp(30px,calc(4 * var(--uxvw,1vw)),52px) var(--display)!important; display:grid!important; place-items:center; background:#EFE8FD!important; color:#7B4FD6!important; border:3px dashed #9C7BE3!important; }
html body #view.s32w .letters > div.on,html body #view.s32w .letters > div:not(:empty):not([class=""]){ background:linear-gradient(180deg,#7B3FE0,#5B2BB5)!important; color:#fff!important; border:0!important; }
html body #view.s32w .tablewrap{ border:3px solid #F2C94C; border-radius:20px; overflow:hidden; background:#FFFDF6; }
html body #view.s32w .tablewrap th{ background:linear-gradient(90deg,#5E3824,#83553B)!important; color:#fff!important; text-transform:uppercase; letter-spacing:.04em; }
html body #view.s32w .tablewrap .btn{ background:#fff!important; border:2px solid #E9B93A!important; color:#3B2112!important; border-radius:14px!important; }
html body #view .s32dash > .pgrp.s32hide,html body #view .b27dash .s32hide{ display:none!important; }
.lmD .b27title{ padding:4px 170px!important; } .lmD .b29tt{ font-size:clamp(20px,calc(2 * var(--uxvw,1vw)),28px)!important; white-space:normal!important; text-align:center; }
@media (max-width:900px){ .lmD .b27title{ padding:4px 10px!important; flex-wrap:wrap; } }
/* profile: My Four Worlds wraps into the narrower panel */
.lmP .p25-worlds{ display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:10px!important; }
.lmP .p25-worlds > .p25-wh{ grid-column:1 / -1; flex-direction:row!important; text-align:left!important; }
@media (max-width:700px){ .lmP .p25-worlds{ grid-template-columns:1fr 1fr!important; } }
html body #view.s32m .medbox .medal{ grid-template-columns:auto auto minmax(0,1fr) auto!important; grid-template-rows:auto auto; column-gap:12px!important; row-gap:0!important; }
html body #view.s32m .medbox .medal > :nth-child(1){ grid-column:1; grid-row:1 / span 2; }
html body #view.s32m .medbox .medal > :nth-child(2){ grid-column:2; grid-row:1 / span 2; align-self:center; background:#F3F6FB; border:2px solid currentColor; border-radius:999px; padding:3px 12px; font-weight:800; white-space:nowrap; }
html body #view.s32m .medbox .medal > :nth-child(3){ grid-column:3; grid-row:1; font:800 17px var(--display)!important; color:#13306B; }
html body #view.s32m .medbox .medal > :nth-child(4){ grid-column:3; grid-row:2; }
html body #view.s32m .medbox .medal > :nth-child(5){ grid-column:4; grid-row:1 / span 2; align-self:center; }
/* the long "Still to Win" list scrolls inside its own box */
html body #view.s32m .medbox.todo .medals{ max-height:520px; overflow-y:auto; padding-right:6px; scrollbar-width:thin; }
@media (max-width:900px){ html body #view.s32m .medbox .medal{ grid-template-columns:auto minmax(0,1fr) auto!important; } html body #view.s32m .medbox .medal > :nth-child(2){ grid-column:2; grid-row:1; justify-self:start; } html body #view.s32m .medbox .medal > :nth-child(3){ grid-column:2; grid-row:2; } html body #view.s32m .medbox .medal > :nth-child(4){ grid-column:2; grid-row:3; } html body #view.s32m .medbox .medal > :nth-child(5){ grid-column:3; grid-row:1 / span 3; } }
/* Star Bank: standard text sizes (no oversized buttons) */
@media (min-width:901px){ html body #view .b27tile{ min-height:72px!important; font-size:16px!important; } html body #view .b27tile span{ font-size:24px!important; } .b29tt{ font-size:clamp(22px,calc(2.2 * var(--uxvw,1vw)),30px)!important; } }
/* MathLiQ Lab: coffee brown / cream / gold frame (Task 7), replacing the old aqua frame */
html body[data-view="lab"] #view.lmM > .pg.labg,html body #view.lmM > .pg.labg{ background:linear-gradient(180deg,#FFF9EE,#F6EAD6)!important; border:2px solid #E2C9A0!important; box-shadow:0 8px 24px rgba(112,69,47,.16)!important; }
/* ---- test45 (Beti's spec 4E): My Medal Collection — "My Medals So Far" and "Still to Win" are the same height and each
   scrolls inside itself, so more medals can pile up without stretching the page; the medal cards get distinct colours. ---- */
@media (min-width:901px){
  html body #view.s32m .s32mgrid{ align-items:stretch!important }
  html body #view.s32m .s32mgrid > .medbox{ display:flex!important; flex-direction:column; height:clamp(420px,62vh,600px) }
  html body #view.s32m .s32mgrid > .medbox > .awards, html body #view.s32m .s32mgrid > .medbox > .medals{ flex:1; min-height:0; overflow-y:auto!important; max-height:none!important; scrollbar-width:thin; padding-bottom:8px }
}
html body #view.s32m .medbox .medal:nth-child(4n+1){ background:linear-gradient(160deg,#FFF6DA,#FFFDF4)!important }
html body #view.s32m .medbox .medal:nth-child(4n+2){ background:linear-gradient(160deg,#E8F1FF,#F7FAFF)!important }
html body #view.s32m .medbox .medal:nth-child(4n+3){ background:linear-gradient(160deg,#E6F6EA,#F6FCF7)!important }
html body #view.s32m .medbox .medal:nth-child(4n+4){ background:linear-gradient(160deg,#FCE8F2,#FFF7FB)!important }
html body #view.s32m .awards .award:nth-child(3n+1){ background:linear-gradient(160deg,#FFF1DE,#FFFBF4)!important } html body #view.s32m .awards .award:nth-child(3n+2){ background:linear-gradient(160deg,#EEF1F7,#FBFCFF)!important } html body #view.s32m .awards .award:nth-child(3n){ background:linear-gradient(160deg,#FFF6D6,#FFFDF2)!important }
/* ---- test45 (Beti's spec 4G): Hall of Fame — nothing stretched or oversized ----
   Rankings: the big centred rank box becomes a normal two-column card (emblem left, name/title/progress right).
   Achievement Overview: smaller tiles; "Next badge" and "Latest recognition" sit side by side instead of full-width. */
@media (min-width:801px){
  html body #view.tn-fame .rankcard.withcrest{ flex-direction:row!important; align-items:center!important; justify-content:flex-start!important; gap:24px!important; text-align:left!important; padding:16px 22px!important; min-height:0!important }
  html body #view.tn-fame .rankcard.withcrest > .crest{ flex:none; transform:scale(.72); transform-origin:center; margin:-36px -24px!important }
  html body #view.tn-fame .rankcard.withcrest > .rk-info{ flex:1; min-width:0; text-align:left!important; align-items:flex-start!important }
  html body #view.tn-fame .f32ov{ display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:stretch }
  html body #view.tn-fame .f32ov > .f32tiles{ grid-column:1/-1 }
  html body #view.tn-fame .f32ov > .f32next, html body #view.tn-fame .f32ov > .f32recent{ margin:0!important; width:auto!important; height:100% }
}
html body #view.tn-fame .f32tiles > div{ padding:10px 8px!important; min-height:0!important }
html body #view.tn-fame .f32tiles > div b{ font-size:24px!important } html body #view.tn-fame .f32tiles > div span{ font-size:20px!important }
/* test53 (Beti): Rankings — the picture sits close to the rank text (the text block was centred in the free space) */
html body #view.tn-fame .rankcard.withcrest > .rk-info{ margin:0!important; max-width:640px!important; width:auto!important }
html body #view.tn-fame .rankcard.withcrest{ gap:8px!important }
/* test53 (Beti): Hall of Fame Overview — mixed platform colours, no two neighbours alike (not all gold) */
html body #view.tn-fame .f32tiles > div:nth-child(1){ background:linear-gradient(180deg,#F3F7FF,#E1EBFF)!important; border-color:#9DB8EE!important }
html body #view.tn-fame .f32tiles > div:nth-child(2){ background:linear-gradient(180deg,#F1FBF3,#DDF3E2)!important; border-color:#8FD0A2!important }
html body #view.tn-fame .f32tiles > div:nth-child(3){ background:linear-gradient(180deg,#FFFBEA,#FFF0C2)!important; border-color:#EDC85A!important }
html body #view.tn-fame .f32tiles > div:nth-child(4){ background:linear-gradient(180deg,#F8F3FF,#EAE0FF)!important; border-color:#B9A2EC!important }
html body.wpv #view.tn-fame .f32ov > button.f32next.f32next, html body #view.tn-fame .f32next{ background:linear-gradient(90deg,#FFF0F6,#FFE0EC)!important; border:2px solid #F0A6C5!important; color:#5A1E3A!important }
html body #view.tn-fame .f32next small{ color:#B0306A!important } html body #view.tn-fame .f32next i{ color:#B0306A!important } html body #view.tn-fame .f32next em{ color:#6B3550!important }
html body #view.tn-fame .f32recent{ background:linear-gradient(180deg,#F2FAFF,#E3F2FC)!important; border-color:#9ECBEA!important }
html body.wpv #view.tn-fame.tnhome .tngrid > .tnc.tn-tip.tn-tip{ grid-column:1/-1!important; max-width:none!important; width:auto!important }
html body.wpv #view.tn-fame .f32recent .b27all{ color:#1F5FA8!important; background:#fff!important; border:1.5px solid #9ECBEA!important; border-radius:10px!important; padding:2px 10px!important; font-weight:700!important; opacity:1!important }
/* test53: earned badges in mixed platform colours (blue · green · gold · purple · pink; a 5-colour cycle so neither side-by-side nor stacked badges match in a 6-wide grid) */
html body #view.tn-fame .bgrid > .bd.on:nth-child(5n+1){ background:#EEF4FF!important; border-color:#8FB0EC!important }
html body #view.tn-fame .bgrid > .bd.on:nth-child(5n+2){ background:#ECF9EF!important; border-color:#86CC98!important }
html body #view.tn-fame .bgrid > .bd.on:nth-child(5n+3){ background:#FFF7DD!important; border-color:#E8C04F!important }
html body #view.tn-fame .bgrid > .bd.on:nth-child(5n+4){ background:#F4EEFF!important; border-color:#B39BEA!important }
html body #view.tn-fame .bgrid > .bd.on:nth-child(5n+5){ background:#FFEFF5!important; border-color:#EFA3C2!important }

/* ==== liq-ux40.css ==== */
/* =====================================================================
   Math LiQ · Nov 9 · SHARED RESPONSIVE LAYOUT, NAVIGATION & TYPOGRAPHY SYSTEM (liq-ux40.css, loaded last)
   One set of rules for every page and every world. Presentation only.
   Breakpoints (content-driven):  ≥901 desktop sidebar · 601–900 tablet: menu stacked above the page, groups in a grid ·
                                  ≤600 mobile: one column, large touch targets.
   ===================================================================== */
:root{
  --ux-font:'Nunito','Noto Sans Ethiopic',system-ui,-apple-system,'Segoe UI',sans-serif;
  --ux-title:'Baloo 2','Noto Sans Ethiopic','Nunito',system-ui,sans-serif;
  --ux-s1:4px; --ux-s2:8px; --ux-s3:12px; --ux-s4:16px; --ux-s5:24px;
  --ux-r:18px;
  --ux-side:clamp(230px,calc(21 * var(--uxvw,1vw)),300px);
  --ux-nav-h:44px; --ux-item-h:38px;
  --ux-body:clamp(15px,calc(.25 * var(--uxvw,1vw)) + 13.4px,17px);
  --ux-small:clamp(13px,calc(.15 * var(--uxvw,1vw)) + 12px,14px);
  --ux-card-title:clamp(17px,calc(.5 * var(--uxvw,1vw)) + 13px,20px);
  --ux-page-title:clamp(22px,calc(1 * var(--uxvw,1vw)) + 16px,30px);
  --ux-focus:#1B4FA8;
  /* ZOOM STANDARD (Nov 9 18:48): sizes never follow the window width inside a layout band, so browser zoom scales
     everything evenly (zoom out = smaller + shows more, zoom in = larger + shows less). --uxvw is a fixed step per band. */
  --uxvw:4px;
}
@media (min-width:601px){ :root{ --uxvw:8px; } }
@media (min-width:901px){ :root{ --uxvw:14.4px; } }

/* ---------------- 1. base text: gentle, readable (the blue student bar is outside #view and is not touched) ---------------- */
body{ font-family:var(--ux-font); line-height:1.55; -webkit-text-size-adjust:100%; }
#view{ font-size:var(--ux-body); }
#view p,#view li,#view td,#view dd{ font-weight:500; line-height:1.55; overflow-wrap:anywhere; }
#view .mini,#view small{ font-size:max(var(--ux-small),1em*.8); font-weight:600; }
#view h1,#view h2,#view h3{ font-family:var(--ux-title); font-weight:700; letter-spacing:0; overflow-wrap:break-word; }
#view h3{ font-size:var(--ux-card-title); }
#view .b29tt{ font-family:var(--ux-title)!important; font-weight:700!important; font-size:var(--ux-page-title)!important; line-height:1.15!important; }
#view button,#view .btn{ font-weight:700; }
img{ max-width:100%; }
#view img{ height:auto; }
#view svg{ max-width:100%; }

/* ---------------- 2. page shell: fluid, no transform scaling, no zoom ---------------- */
html,body{ overflow-x:clip; }
#view{ min-width:0; }
#view > *{ max-width:100%; min-width:0; }
body.w31home #view.lmH{ zoom:1!important; width:auto!important; }   /* the home page no longer shrinks itself to fit */

/* ---------------- 3. the left-menu layout (every page that has a menu) ---------------- */
@media (min-width:901px){
  html body #view .b27{ display:grid!important; grid-template-columns:var(--ux-side) minmax(0,1fr)!important; gap:var(--ux-s4)!important; align-items:stretch!important; }
  
  html body #view .b27 > .b27main{ align-self:start!important; height:auto!important; min-width:0; }
}



/* group bar: consistent height, readable label that wraps instead of being cut */





/* items: consistent height, readable */



/* companion tip: the character and the message are one compact card */





   /* no decorative fill art under the menus */
/* title bar of the page panel */
html body #view .b27title{ display:flex!important; flex-wrap:wrap; align-items:center; justify-content:center; gap:var(--ux-s2) var(--ux-s3); padding:var(--ux-s2) var(--ux-s4)!important; min-height:52px; height:auto!important; box-sizing:border-box; }
html body #view .b27title .b29tt{ margin:0!important; display:flex; align-items:center; gap:10px; text-align:center; white-space:normal!important; }
html body #view .b27title{ position:relative; }
@media (min-width:901px){ html body #view .b27title .b27tnote{ position:absolute!important; right:16px; top:50%; transform:translateY(-50%); max-width:22%; text-align:right; } html body #view .b27title:has(.b27tnote){ padding-right:24%!important; padding-left:24%!important; } }
@media (max-width:900px){ html body #view .b27title .b27tnote{ position:static!important; } }
html body #view .b27main{ min-width:0; overflow:visible; }
html body #view .b27main > .b27dash{ min-width:0; max-width:100%; box-sizing:border-box; }

/* TABLET (601–900): the menu sits above the page, full width; groups in a grid, still opening inline; the page uses the full width */
@media (max-width:900px){
  html body #view .b27{ display:flex!important; flex-direction:column!important; gap:var(--ux-s3)!important; }
  html body #view .b27 > .b27main{ width:100%!important; height:auto!important; align-self:stretch!important; }
  
  
  
  
  html body #view .b27main{ height:auto!important; }
}
/* MOBILE (≤600): one column, bigger touch targets */
@media (max-width:600px){
  
  
  
  html body #view .b27title{ min-height:46px; }
}

/* ---------------- 4. horizontal navigation rows (tabs that still exist: lessons, Parent sub-pages, world tab rows, Hall of Fame tabs …) ---------------- */
.wtabs.lxnav,.pgrp.lxnav,.lxnavrow,.l21tabs,.ennav,.acnav,.lfnav,.labnav21,.labhtabs,.psub{
  flex-wrap:nowrap!important; min-width:0!important; max-width:100%!important; box-sizing:border-box;
  overflow-x:auto!important; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; -webkit-overflow-scrolling:touch; gap:var(--ux-s2); }
/* buttons keep their full readable label; the row scrolls instead of squeezing them */
.wtabs.lxnav > button,.pgrp.lxnav > button,.lxnavrow > button,.l21tabs > button,.ennav > button,.acnav > button,.lfnav > button,.labnav21 > button,.labhtabs > button,.psub > button{
  flex:1 0 auto!important; min-width:max-content; min-height:var(--ux-nav-h); white-space:nowrap; scroll-snap-align:start; box-sizing:border-box; }
@media (max-width:600px){ .wtabs.lxnav > button,.pgrp.lxnav > button,.lxnavrow > button,.l21tabs > button,.psub > button{ flex:0 0 auto!important; font-size:15px!important; padding:10px 14px!important; } }
/* "there is more" hints when a row scrolls */
.ux-more-r{ -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent); }
.ux-more-l{ -webkit-mask-image:linear-gradient(90deg,transparent,#000 36px); mask-image:linear-gradient(90deg,transparent,#000 36px); }
.ux-more-l.ux-more-r{ -webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent); }
/* rows that hold a navigation row must let it shrink */
#view .row,#view .card,#view section{ min-width:0; }
/* pop-up menus (LXNAV): kept inside the screen, long labels wrap, long lists scroll */
.lxdd{ max-width:calc(100vw - 16px)!important; overflow-y:auto!important; overscroll-behavior:contain; box-sizing:border-box; }
.lxdd .lxdi{ white-space:normal!important; min-height:40px; text-align:left; }

/* ---------------- 5. Parent Desk: primary navigation in the menu, utilities (Unit + Lock) as their own group ---------------- */
html body #view.lmD .b27title{ padding:var(--ux-s2) var(--ux-s4)!important; }
html body #view .s32tools{ position:static!important; transform:none!important; display:flex; flex-wrap:wrap; gap:var(--ux-s2); align-items:center; justify-content:center; }
@media (min-width:901px){ html body #view.lmD .b27title{ justify-content:space-between; } html body #view.lmD .b27title .b29tt{ flex:1 1 auto; justify-content:center; } }

/* ---------------- 6. banners and footers keep their proportions ---------------- */
html body #view .phero img.s32std{ object-fit:contain!important; aspect-ratio:auto!important; height:auto!important; }
#view img.appsav{ display:block!important; width:100%; height:auto!important; object-fit:contain; }
html body #view.b29v > img.appsav{ display:block!important; }    /* Star Bank has its footer again (new design) */
#bigBanner img.banner{ height:auto!important; object-fit:contain!important; }

/* ---------------- 7. cards, grids and media never overflow ---------------- */
#view [class*="grid"],#view .row{ min-width:0; }
#view .tablewrap{ max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media (max-width:700px){ #view table{ display:block; max-width:100%; overflow-x:auto; } }
#view pre,#view code{ white-space:pre-wrap; overflow-wrap:anywhere; }

/* ---------------- 8. forms ---------------- */
#view input:not([type=checkbox]):not([type=radio]):not([type=range]),#view select,#view textarea{ min-height:44px; max-width:100%; box-sizing:border-box; font-family:var(--ux-font); }
@media (max-width:900px){ #view input:not([type=checkbox]):not([type=radio]):not([type=range]),#view select,#view textarea{ font-size:16px; } }
#view label{ overflow-wrap:anywhere; }
#view [aria-invalid="true"]{ outline:2px solid #C62828; outline-offset:1px; }

/* ---------------- 9. pop-ups: inside the screen; nearly full-screen on phones ---------------- */
.lxpad .lxpadc,.p25-modal .p25-mbox,.mhelp > *,.honwrap{ max-width:min(560px,calc(100vw - 24px))!important; max-height:calc(100dvh - 24px)!important; overflow-y:auto!important; box-sizing:border-box; }
@media (max-width:600px){ .lxpad .lxpadc,.p25-modal .p25-mbox{ width:calc(100vw - 16px)!important; max-height:calc(100dvh - 16px)!important; border-radius:18px!important; } }
.bcwin{ max-width:calc(100vw - 16px)!important; max-height:calc(100dvh - 24px)!important; }

/* ---------------- 10. interaction & accessibility ---------------- */
:focus-visible{ outline:3px solid var(--ux-focus)!important; outline-offset:2px!important; }
#view button:disabled,#view .btn[disabled],#view [aria-disabled="true"]{ opacity:.55; cursor:not-allowed; }
@media (max-width:900px){ #view button,#view .btn,#view a.btn{ min-height:40px; } }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }

/* ---------------- 11. My Message Box (🔔) ---------------- */
html body #view.ux-notes > .pg{ background:linear-gradient(180deg,#FFF9EC,#FBEFD6)!important; border:3px solid #F2C94C!important; border-radius:26px!important; padding:var(--ux-s3)!important; }
html body #view.ux-notes > .pg > .stk{ display:none!important; }
html body #view.ux-notes section.card.stack{ background:linear-gradient(180deg,#FFFDF6,#FFF6E2)!important; border:3px solid #F2C94C!important; border-radius:22px!important; padding:var(--ux-s3)!important; gap:var(--ux-s2)!important; display:flex; flex-direction:column; }
html body #view.ux-notes .note{ display:flex!important; align-items:center; gap:var(--ux-s3); padding:10px 16px!important; margin:0!important; background:linear-gradient(180deg,#FFFFFF,#F2F6FD)!important; border:2px solid #D3DEF0!important; border-radius:16px!important; box-shadow:0 2px 0 rgba(20,40,90,.06); }
html body #view.ux-notes .note:first-child{ background:linear-gradient(180deg,#F2F8FF,#DCEAFD)!important; border-color:#8FB3EE!important; }
html body #view.ux-notes .note .ni{ font-size:28px; flex:none; width:40px; text-align:center; }
html body #view.ux-notes .note .nt2{ flex:1 1 auto; min-width:0; font:700 clamp(15px,calc(1.1 * var(--uxvw,1vw)),18px)/1.3 var(--ux-font); color:#13306B; }
html body #view.ux-notes .note .nd{ font:600 13px var(--ux-font); color:#4A5876; margin-top:2px; }
.ux-new{ flex:none; background:linear-gradient(180deg,#FFE680,#F5B800); border:2px solid #E9A800; color:#3B2112; font:800 13px var(--ux-font); padding:3px 12px; border-radius:999px; }
/* the student home keeps its one-view layout on desktop by layout (narrower menu, compact cards), never by shrinking text */
@media (min-width:901px){ html body #view.lmH .b27{ grid-template-columns:var(--ux-side) minmax(0,1fr)!important; } }
html body #view.lmH .dash.w31d h3{ font-size:inherit; }
/* navigation labels never smaller than 14px (lesson path tabs used 12.5px on phones) */
@media (max-width:900px){ html body #view .wtabs.lxnav > button,html body #view .lp21tabs > button{ font-size:14px!important; min-height:44px; } }
/* decorative page stickers never stick out of the page */
html body #view > .pg > .stk{ max-width:calc(100% - 16px); }
@media (max-width:1100px){ html body #view > .pg > .stk{ right:8px!important; } }

/* ---------------- 12. typography weights: regular/medium for reading, semibold/bold for labels, heavy only for big numbers ---------------- */
#view :is(b,strong):not([class*="pct"]):not([class*="num"]):not([class*="bal"]):not([class*="big"]){ font-weight:700; }
#view :is(.mini,.sub,.desc,.ngoal,.b27sub,.b27gm,.b27sub,.b27empty,.k){ font-weight:600; }
#view :is(.card,.b27dash,.s32card) :is(p,li){ font-weight:500; line-height:1.55; }
#view :is(label,.field){ font-weight:600; }
#view .lessontext,#view .lt,#view .expl,#view .learn p{ font-size:var(--ux-body); line-height:1.6; font-weight:500; }
/* reading width: long paragraphs do not stretch across very wide screens */
#view .card > p,#view .learn p,#view .expl{ max-width:80ch; }
/* card surfaces: one radius, one soft shadow family */
#view :is(.s32card,.b27recent,.b27goal,.e29prog,.cw30card,.medbox){ border-radius:var(--ux-r); }

/* navigation rows that a page replaced with its left menu stay hidden */
html body #view :is(.wtabs,.lxnav,.ennav,.acnav,.lfnav,.labnav21,.labhtabs,.l21tabs,.pgrp,.psub,.lxnavrow):is(.b27hide,.s32hide,.w31hide,.cw30hide){ display:none!important; }
/* phones: two columns of group bars when there is room, so the page content starts sooner */

/* ---------------- 13. My Learning Path (reference Nov 9 16:34) ---------------- */
html body[data-view] #view .pg .phero.s32hero{ margin-bottom:var(--ux-s3)!important; }
html body #view .lp21tabs{ gap:var(--ux-s3)!important; padding:2px!important; }
html body #view .lp21tabs > button{ flex:1 1 0!important; min-width:max-content; min-height:52px!important; border-radius:18px!important; font:700 clamp(15px,calc(1.2 * var(--uxvw,1vw)),19px) var(--ux-font)!important;
  background:linear-gradient(180deg,#F4F9FF,#DCEAFB)!important; border:2px solid #B8CDEB!important; color:#13306B!important; box-shadow:0 3px 0 rgba(20,50,110,.18)!important; }
html body #view .lp21tabs > button.on,html body #view .lp21tabs > button[aria-current],html body #view .lp21tabs > button[aria-selected="true"]{ background:linear-gradient(180deg,#1F4FB5,#123C8F)!important; border-color:#0E3070!important; color:#fff!important; }
html body #view .lp21grid > *{ background:linear-gradient(180deg,#FFFDF6,#FFF6E2)!important; border:2px solid #F2C94C!important; border-radius:var(--ux-r)!important; }
@media (min-width:1101px){ html body #view .lp21ms .lxchtiles{ grid-template-columns:repeat(4,minmax(0,1fr))!important; } }
html body #view .lp21ms .lxchtiles > *{ background:#fff!important; border:2px solid #E5DCC8!important; border-radius:16px!important; }

/* =====================================================================
   14. FINAL (Nov 9 17:38): one layout everywhere — sidebar and page panel are two columns of ONE grid
   · both columns stretch to the taller one (the panel background always reaches the bottom of the menu, and vice versa)
   · desktop: the menu stays in view while the page scrolls (sticky inside its own column; its list scrolls only if taller
     than the screen); the page panel keeps its natural height — no trapped inner scroll areas
   · the footer is its own region after the grid (never fixed, never overlapping); on phones it simply follows the content
   · the same sidebar width on every page (including the home page)
   ===================================================================== */
@media (min-width:901px){
  html body #view .b27{ grid-template-columns:var(--ux-side) minmax(0,1fr)!important; align-items:stretch!important; }
  html body #view.lmH .b27{ grid-template-columns:var(--ux-side) minmax(0,1fr)!important; }
  html body #view .b27 > .b27main{ align-self:stretch!important; display:flex!important; flex-direction:column; }
  html body #view .b27 > .b27main > .b27dash{ flex:1 1 auto; }
  
  
}
/* tablet & phone: natural page flow, menu above the page, footer after the page */

/* footer: its own block after the layout */
#view > img.appsav{ position:static!important; clear:both; margin-top:var(--ux-s4)!important; }

/* ---------- Student Home (final): welcoming strip with Bilcho; notebook + Message Board first ---------- */
html body #view.lmH .w31hello{ grid-column:1 / -1!important; grid-row:auto!important; display:flex; align-items:center; gap:var(--ux-s3); padding:var(--ux-s2) var(--ux-s4); border-radius:var(--ux-r);
  background:linear-gradient(90deg,#FFF6D6,#FFFBEC 60%,#EAF3FF); border:2px solid #F2D27A; }
html body #view.lmH .w31hello img{ width:auto; height:clamp(56px,calc(5 * var(--uxvw,1vw)),72px); flex:none; object-fit:contain; }
html body #view.lmH .w31hello h2{ margin:0; font:700 clamp(20px,calc(1.6 * var(--uxvw,1vw)),26px)/1.15 var(--ux-title); color:#13306B; }
html body #view.lmH .w31hello p{ margin:2px 0 0; font:500 15px/1.4 var(--ux-font); color:#2C4580; }
@media (min-width:1001px){
  html body #view.lmH .dash.h24.h24.h26.w31d{ grid-template-rows:auto auto auto auto!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-now{ grid-area:2 / 1 / span 1 / span 7!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-board{ grid-area:2 / 8 / span 1 / span 5!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-prog{ grid-area:3 / 1 / span 1 / span 6!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h24-chp{ grid-area:3 / 7 / span 1 / span 6!important; }
  html body #view.lmH .dash.h24.h24.h26.w31d > .h26low{ grid-area:4 / 1 / span 1 / -1!important; }
  html body #view.lmH .dash.h26.w31d > .h26low > .h24-week{ grid-column:1 / span 5!important; }
  html body #view.lmH .dash.h26.w31d > .h26low > .h24-wins{ grid-column:6 / span 7!important; }
}
/* the original home banner (Website 23 test13, banner-v3.jpg) at its own proportions */
body.w31home #bigBanner img.banner{ width:100%!important; height:auto!important; max-height:none!important; object-fit:contain!important; }

/* ---------- Hall of Mathematical Fame (final) ---------- */
html body #view.lmF section.hofg.s32show{ display:block!important; }

html body #view.lmF .rankcard.f32compact{ display:grid!important; grid-template-columns:clamp(120px,calc(14 * var(--uxvw,1vw)),190px) minmax(0,1fr); align-items:center; gap:var(--ux-s4); min-height:0!important; padding:var(--ux-s3) var(--ux-s4)!important; }
html body #view.lmF .rankcard.f32compact > *{ margin:0!important; }
html body #view.lmF .rankcard.f32compact svg,html body #view.lmF .rankcard.f32compact img{ max-width:100%; max-height:190px; height:auto; }
.f32ov{ display:grid; gap:var(--ux-s3); }
.f32tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--ux-s2); }
.f32tiles > div{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px; padding:var(--ux-s3) var(--ux-s2); border-radius:16px; background:linear-gradient(180deg,#FFFDF6,#FFF1D0); border:2px solid #F2C94C; }
.f32tiles span{ font-size:26px; } .f32tiles b{ font:800 clamp(20px,calc(1.8 * var(--uxvw,1vw)),26px) var(--ux-title); color:#5E3824; } .f32tiles small{ font:600 13px var(--ux-font); color:#6B4A30; }
.f32next{ all:unset; cursor:pointer; box-sizing:border-box; display:flex; align-items:center; gap:var(--ux-s3); padding:var(--ux-s3) var(--ux-s4); border-radius:16px; background:linear-gradient(90deg,#5E3824,#83553B); color:#fff; }
.f32next > span:first-child{ font-size:34px; } .f32next > span:nth-child(2){ display:flex; flex-direction:column; flex:1; min-width:0; }
.f32next small{ color:#FFD84D; font:700 12px var(--ux-font); text-transform:uppercase; letter-spacing:.06em; } .f32next b{ font:700 19px var(--ux-title); } .f32next em{ font:500 14px var(--ux-font); font-style:normal; opacity:.92; }
.f32next i{ font-style:normal; font:800 24px var(--ux-font); color:#FFD84D; }
.f32next:focus-visible{ outline:3px solid #FFD84D!important; }
.f32recent,.f32hist{ border:2px solid #E5D6B8; border-radius:16px; background:#FFFDF6; padding:var(--ux-s2) var(--ux-s4); }
.f32recent header{ display:flex; align-items:center; justify-content:space-between; } .f32recent header b{ font:700 17px var(--ux-title); color:#5E3824; }
.f32recent > div,.f32hist li{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:var(--ux-s2); align-items:center; padding:6px 0; border-top:1px solid #F0E6D2; }
.f32recent b,.f32hist b{ font:600 15px var(--ux-font); color:#3B2112; } .f32recent small,.f32hist small{ font:600 13px var(--ux-font); color:#7A5A40; }
.f32hist h3{ margin:var(--ux-s2) 0; color:#5E3824; } .f32hist ul{ list-style:none; margin:0; padding:0; } .f32hist summary{ cursor:pointer; font:700 14px var(--ux-font); color:#70452F; padding:6px 0; }
html body #view.lmF section.hofg{ border-radius:var(--ux-r); }
html body #view.lmF section.hofg.f32fold > :not(:first-child){ display:none!important; }
html body #view.lmF section.hofg.f32fold > :first-child,html body #view.lmF section.hofg.f32open > :first-child{ cursor:pointer; }
html body #view.lmF section.hofg.f32fold > :first-child::after{ content:' ▸ show'; font:700 13px var(--ux-font); color:#70452F; }
html body #view.lmF section.hofg.f32open > :first-child::after{ content:' ▾ hide'; font:700 13px var(--ux-font); color:#70452F; }
@media (max-width:700px){ .f32tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); } html body #view.lmF .rankcard.f32compact{ grid-template-columns:1fr; text-align:center; justify-items:center; } }
html body #view.lmH > img.appsav,html body #view > img.appsav.ux-foot,html body #view > img.appsav{ margin-top:var(--ux-s4)!important; }
html body #view.stack.stack.stack > img.appsav.appsav{ margin-top:var(--ux-s4)!important; border-radius:0 0 24px 24px; }

/* ---------------- 15. Compass World Explorer: adapts to every screen (Nov 9) ----------------
   full dynamic-viewport height; header, compass and town footer share the height in proportion; nothing scaled with zoom */
.lqc{ height:100dvh!important; inset:0 auto auto 0!important; width:100vw!important; }
.lqc .lqc-stage{ flex:1 1 auto!important; min-height:0!important; padding:0 clamp(4px,1vw,12px)!important; }
.lqc .lqc-stage svg{ width:100%!important; height:100%!important; max-width:min(100%,1400px); max-height:100%!important; display:block; }
.lqc .lqc-foot{ flex:none!important; height:clamp(64px,19vh,230px)!important; max-height:24vh; overflow:hidden; margin-bottom:0!important; width:100%; }
.lqc .lqc-foot > *{ height:100%!important; }
.lqc .lqc-foot img,.lqc .lqc-foot video{ height:100%!important; width:100%!important; object-fit:cover!important; object-position:center bottom!important; }
/* short screens (laptops 600–800px high, phones in landscape): smaller header and town, bigger compass */
@media (max-height:800px){ .lqc .lqc-head{ padding-top:clamp(6px,1.4vh,14px)!important; padding-bottom:2px!important; } .lqc .lqc-head h1{ font-size:clamp(20px,4vh,34px)!important; } .lqc .lqc-head h2{ font-size:clamp(14px,2.4vh,20px)!important; margin-top:2px!important; } .lqc .lqc-foot{ height:clamp(56px,15vh,130px)!important; } }
@media (max-height:520px){ .lqc .lqc-head p{ display:none; } .lqc .lqc-head h1::after{ display:none; } .lqc .lqc-foot{ height:12vh!important; } }
/* phones in portrait: compass uses the full width; town strip a little lower */
@media (max-width:600px) and (orientation:portrait){ .lqc .lqc-head{ padding-left:56px!important; padding-right:56px!important; } .lqc .lqc-foot{ height:clamp(64px,13vh,120px)!important; } }
/* very large screens: the compass grows with the screen */
@media (min-width:1600px) and (min-height:950px){ .lqc .lqc-stage svg{ max-width:min(100%,1600px); } }

/* ---------------- 16. Certificate viewer: the certificate always fits the screen (any size, any zoom, fullscreen) ---------------- */
.cw-viewer{ height:100dvh!important; width:100vw!important; overflow:auto!important; box-sizing:border-box; }
.cw-viewer .cw-stage{ flex:1 1 auto!important; min-height:0!important; width:100%!important; display:flex!important; align-items:center!important; justify-content:center!important; overflow:hidden; }
.cw-viewer .cw-paper{ height:auto!important; max-height:100%!important; aspect-ratio:850/1100; width:min(100%, calc((100dvh - 110px) * 850 / 1100))!important; max-width:100%!important; flex:none; }
.cw-viewer .cw-paper .cw-svg{ display:block; width:100%!important; height:auto!important; max-height:calc(100dvh - 110px)!important; }
.cw-viewer .cw-bar{ flex:none!important; max-width:100%; flex-wrap:wrap; justify-content:center; }
@media (max-height:520px){ .cw-viewer .cw-paper{ width:min(100%, calc((100dvh - 80px) * 850 / 1100))!important; } .cw-viewer .cw-bar{ margin-top:6px!important; } .cw-viewer .cw-nav,.cw-viewer .cw-tool{ width:40px!important; height:40px!important; } }
/* the small certificate pictures on the wall never grow past their box */
.cw30thumb{ max-width:100%; } .cw30thumb svg{ width:100%!important; height:auto!important; max-height:220px; }

/* ---------------- 17. DESKTOP APP FRAME (Nov 9 18:00, replaces the sticky-menu approach of section 14) ----------------
   On desktop screens the menu column and the page panel share one block exactly as tall as the screen space below the banner
   (--ux-avail, measured by liq-ux40.js). Long menus scroll inside the menu (the companion tip stays visible under it);
   long pages scroll inside the page panel under its title bar. Neither column ever stretches the page into a long strip.
   Tablets, phones and short screens keep natural page scrolling. The footer stays outside, after the block. */
@media (min-width:901px){
  /* the block is as tall as its longer column needs, but never taller than the screen space (--ux-avail): one flexible
     row inside a maximum height does exactly that in CSS, so the script only measures the screen space (Phase 1) */
  html body #view .b27{ height:auto!important; max-height:var(--ux-avail,640px)!important; grid-template-rows:minmax(0,1fr)!important; align-items:stretch!important; }
  
  
  
  
  html body #view .b27 > .b27main{ height:100%!important; overflow:hidden!important; display:flex!important; flex-direction:column; align-self:stretch!important; }
  html body #view .b27 > .b27main > .b27title{ flex:none; }
  html body #view .b27 > .b27main > .b27dash{ flex:1 1 auto!important; min-height:0!important; overflow-y:auto!important; overscroll-behavior:contain; scrollbar-width:thin; }
}
@media (min-width:901px){
  html body #view .b27 > .b27main > :not(.b27title){ flex:1 1 auto!important; min-height:0!important; overflow-y:auto!important; overscroll-behavior:contain; scrollbar-width:thin; }
  html body #view.lmH .b27main > .dash.h24.w31d{ height:auto!important; }
}
@media (min-width:901px){ html body #view.lmH.lmH .b27 > .b27main > .dash.h24.w31d{ overflow-y:auto!important; flex:1 1 auto!important; min-height:0!important; } }
/* home: the card grid keeps its natural height; the page panel itself scrolls (title included) */
@media (min-width:901px){
  html body #view.lmH.lmH .b27 > .b27main{ overflow-y:auto!important; display:block!important; overscroll-behavior:contain; scrollbar-width:thin; }
  html body #view.lmH.lmH .b27 > .b27main > .dash.h24.w31d{ overflow:visible!important; flex:none!important; min-height:auto!important; height:auto!important; }
}
@media (min-width:901px){ html body #view .b27 > .b27main > :not(.b27title) > *{ flex-shrink:0!important; } }
/* history tables: the date column stays on one line at every zoom level */
html body #view .tablewrap table td:first-child,html body #view .tablewrap table th:first-child{ white-space:nowrap; }
/* home on narrow desktops / zoomed-in laptops (901–1200 wide): the menu stays at the left, so the home cards stack in
   one column (like tablets) instead of squeezing the notebook into a third of the page */
@media (min-width:901px) and (max-width:1200px){
  html body #view.lmH.lmH .dash.h24.h24.h26.w31d{ display:grid!important; grid-template-columns:minmax(0,1fr)!important; grid-template-rows:none!important; }
  html body #view.lmH.lmH .dash.h24.h24.h26.w31d > *{ grid-area:auto / 1 / auto / -1!important; }
  html body #view.lmH.lmH .dash.h26.w31d > .h26low{ grid-template-columns:minmax(0,1fr)!important; }
  html body #view.lmH.lmH .dash.h26.w31d > .h26low > *{ grid-column:1 / -1!important; }
}

/* note 49 (test27): the footer art joins the page instead of floating under it. The space between the content frame and
   the art is removed (the art now starts right where the frame ends, tucked 2px under its edge) and the top fade that made
   it look detached is gone. The whole artwork stays visible: nothing is cropped, the titles and signposts in it stay whole. */
html body #view.stack.stack.stack.stack > img.appsav.appsav.ftart, html body #view > img.appsav.appsav.appsav.ftart{ position:relative!important; z-index:-1!important; margin-top:calc(-1 * var(--uxgap,16px) - 2px)!important;
  -webkit-mask-image:none!important; mask-image:none!important; border-radius:0 0 18px 18px!important; }
html body #view.lmH.lmH.stack.stack.stack > img.appsav.appsav.ftart{ --uxgap:8px; }
@media (max-width:600px){ html body #view.stack.stack.stack.stack > img.appsav.appsav.ftart, html body #view > img.appsav.appsav.appsav.ftart{ border-radius:0 0 12px 12px!important; } }

/* ==== liq-worlds25.css ==== */
/* =====================================================================
   Website 23 (Nov 8 build) · World identities (Task 3). Colours begin BELOW the light-blue
   student bar; #hud is never styled here.
   Math LiQ blue · English LiQ light pink · Investment LiQ green ·
   Life LiQ solid royal blue · MathLiQ Lab aqua (+ purple, white, gold)
   ===================================================================== */
/* ---------- every page: footer art joins the page, same width, no gap ---------- */
html body #view.stack.stack > img.appsav.appsav{ margin-top:-16px!important; position:relative; z-index:0; border-radius:0 0 24px 24px; display:block; }
html body #view.stack > .pg{ position:relative; z-index:1; }

/* ---------- English LiQ: light pink, gender-neutral (navy text, white, a little purple and gold) ---------- */
body[data-view="english"] #view .pg.pinkg .phero.eng{ background:linear-gradient(100deg,#FFFFFF 0%,#FFF5F9 55%,#FCE4EF 100%)!important; border:2px solid #F3C4D8!important; }
body[data-view="english"] #view .pg.pinkg .phero.eng h1{ color:#1F2A5C!important; }
body[data-view="english"] #view .pg.pinkg .phero.eng .pheb{ font-family:var(--am)!important; letter-spacing:.04em; color:#B0337A!important; }
.w25liq{ color:#C99300; position:relative; white-space:nowrap; }
.w25i{ position:relative; display:inline-block; }
.w25i::before{ content:'👑'; position:absolute; left:50%; top:-.62em; transform:translateX(-50%); font-size:.5em; line-height:1; }
body[data-view="english"] #view .w25learn{ background:linear-gradient(180deg,#FFF7FA,#FDEBF3); border:2px solid #F3C4D8; border-radius:24px; padding:14px 16px 16px; display:flex; flex-direction:column; gap:12px; }
body[data-view="english"] #view .w25learn > h3.eh-h{ margin:0!important; color:#1F2A5C!important; }
body[data-view="english"] #view .w25learn .enareas{ margin:0!important; gap:12px!important; }
body[data-view="english"] #view .w25learn .ena{ background:#fff!important; border:1.5px solid #F1D3E1!important; border-radius:18px!important; box-shadow:0 3px 0 rgba(176,51,122,.08)!important; }
body[data-view="english"] #view .w25learn .ena:focus-visible{ outline:3px solid #6B4FD8!important; outline-offset:2px; }

/* ---------- Investment LiQ: strong green; light green, cream and white panels; restrained gold ---------- */
body[data-view="invest"] #view .pg.grayg{ background:linear-gradient(180deg,#EAF6EC,#DFF0E3)!important; border:2px solid #A9D6B4!important; border-radius:24px!important; box-shadow:0 8px 22px rgba(15,107,71,.12)!important; }
body[data-view="invest"] #view .acnav button{ border-radius:16px!important; border:1.5px solid #BFE0C8!important; background:#fff!important; color:#0F3D24!important; }
body[data-view="invest"] #view .acnav button[aria-current="true"],body[data-view="invest"] #view .acnav button.on{ background:linear-gradient(180deg,#1E8B4C,#0F6B47)!important; color:#fff!important; border-color:#0F6B47!important; }
body[data-view="invest"] #view .acbal > .b,body[data-view="invest"] #view .acgrid2 > .acc,body[data-view="invest"] #view .acbiz > .bzc,body[data-view="invest"] #view .acmove{ background:#fff!important; border:1.5px solid #CFE7D6!important; border-radius:20px!important; box-shadow:0 3px 0 rgba(15,107,71,.08)!important; }
body[data-view="invest"] #view .acbal > .b.avail{ background:linear-gradient(180deg,#FFFDF5,#FFF6DA)!important; border-color:#EED69A!important; }
body[data-view="invest"] #view .acgrid2 > .acc .k,body[data-view="invest"] #view .acbody > .k{ color:#0F6B47!important; }
body[data-view="invest"] #view .shsay .shb{ background:#F3FAF2!important; border-color:#BFE0C8!important; }
body[data-view="invest"] #view .acbody .btn:not(.alt){ background:linear-gradient(180deg,#1E8B4C,#0F6B47)!important; }

/* ---------- Life LiQ: solid royal blue; light-blue and white panels; gold highlights ---------- */
body[data-view="life"] #view > .pg.journal{ background:linear-gradient(180deg,#E7F0FF,#DCE8FF)!important; border:2px solid #9DB8EE!important; border-radius:24px!important; box-shadow:0 8px 22px rgba(29,79,184,.14)!important; }
body[data-view="life"] #view .lfwrap{ background:rgba(255,255,255,.65)!important; border:1.5px solid #B9CDF3!important; border-radius:22px!important; }
body[data-view="life"] #view .lfnav button{ border-radius:16px!important; border:1.5px solid #B9CDF3!important; background:#fff!important; color:#123A8C!important; font-weight:800!important; }
body[data-view="life"] #view .lfnav button[aria-current="true"],body[data-view="life"] #view .lfnav button.on,body[data-view="life"] #view .lfnav button[aria-selected="true"]{ background:linear-gradient(180deg,#2457C5,#123A8C)!important; color:#fff!important; border-color:#123A8C!important; }
body[data-view="life"] #view .lfjk{ background:linear-gradient(180deg,#F5F8FF,#E8EFFF); border:1.5px solid #B9CDF3; border-radius:20px; padding:10px; gap:10px!important; }
body[data-view="life"] #view .lfjk > div{ background:#fff!important; border:1.5px solid #D6E2FA!important; border-radius:16px!important; }
body[data-view="life"] #view .lfjk > div:nth-child(2){ background:linear-gradient(180deg,#FFFBEA,#FFF1C4)!important; border-color:#EED69A!important; }
body[data-view="life"] #view .lfjp{ background:#fff!important; border:1.5px solid #D6E2FA!important; border-radius:20px!important; }
body[data-view="life"] #view .lfjp > h3{ color:#123A8C!important; }

/* ---------- MathLiQ Lab: aqua/turquoise dominant, purple + white + gold ---------- */
body[data-view="lab"] #view > .pg.labg{ background:linear-gradient(180deg,#E3F8F7,#D2F1EF)!important; border:2px solid #8FD9D3!important; box-shadow:0 8px 22px rgba(13,148,136,.15)!important; }
body[data-view="lab"] #view .labnav21 > button{ border-radius:999px!important; border:1.5px solid #9EDCD6!important; background:#fff!important; color:#134E5E!important; }
body[data-view="lab"] #view .labnav21 > button[aria-selected="true"],body[data-view="lab"] #view .labnav21 > button[aria-current="true"]{ background:linear-gradient(180deg,#14B8A6,#0D9488)!important; color:#fff!important; border-color:#0D9488!important; }
.w25lab{ display:grid!important; grid-template-columns:200px minmax(0,1fr) minmax(250px,300px)!important; gap:14px!important; align-items:start; }
.w25labside{ width:100%; height:auto; border-radius:22px; display:block; }
.w25book{ position:relative; background:linear-gradient(180deg,#FFFFFF,#F1FBFA); border:2px solid #A8E3DE; border-radius:26px; padding:16px 16px 16px 44px; display:flex; flex-direction:column; gap:12px; box-shadow:0 6px 18px rgba(13,148,136,.12); }
.w25book::before{ content:''; position:absolute; left:10px; top:22px; bottom:22px; width:22px; background:radial-gradient(circle at 11px 11px,#fff 5px,#1F6F86 6px,#1F6F86 8px,transparent 9px) 0 0/22px 44px repeat-y; }
.w25bh{ align-self:flex-start; display:flex; align-items:center; gap:10px; font:800 26px var(--display); color:#fff; padding:8px 26px 8px 12px; border-radius:16px; background:linear-gradient(90deg,#127A82,#16A3A0); box-shadow:0 3px 0 rgba(10,90,95,.3); position:relative; }
.w25bh img{ width:34px; height:34px; object-fit:contain; } .w25spark{ position:absolute; right:-26px; top:-6px; width:22px; height:22px; background:radial-gradient(circle,#F6C445 40%,transparent 42%); }
.w25row{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px; align-items:center; border-radius:20px; padding:12px 14px; border:1.5px solid; }
.w25-explore{ background:linear-gradient(90deg,#E9FAF8,#D6F3EF); border-color:#A8E3DE; } .w25-quests{ background:linear-gradient(90deg,#F4EEFF,#E7DDFF); border-color:#CDBDF6; } .w25-play{ background:linear-gradient(90deg,#EEF9E8,#DDF2D2); border-color:#B9DEA4; }
.w25pics{ display:flex; align-items:flex-end; } .w25pics img{ width:84px; height:84px; object-fit:contain; } .w25pics img + img{ margin-left:-26px; }
.w25rt{ display:flex; flex-direction:column; gap:6px; min-width:0; } .w25rn{ font:800 24px/1.1 var(--display); color:#123F57; } .w25-quests .w25rn{ color:#3B1E8F; } .w25-play .w25rn{ color:#1F5F18; } .w25rt small{ color:#334; font-size:14px; }
.w25links{ display:flex; flex-wrap:wrap; gap:8px; }
body[data-view="lab"] #view .w25links > .lcard.w25lk{ all:unset; box-sizing:border-box; cursor:pointer; position:relative; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 16px; border-radius:999px; font:800 15px var(--display); color:#fff; background:linear-gradient(180deg,#169C9A,#0E7C7B); box-shadow:0 3px 0 rgba(8,80,80,.35); }
body[data-view="lab"] #view .w25-quests .w25links > .lcard.w25lk{ background:linear-gradient(180deg,#7B4FE0,#5B2FC4); box-shadow:0 3px 0 rgba(60,20,140,.35); }
body[data-view="lab"] #view .w25-play .w25links > .lcard.w25lk{ background:linear-gradient(180deg,#2DB34A,#1E8E36); box-shadow:0 3px 0 rgba(20,90,30,.35); }
body[data-view="lab"] #view .w25links > .lcard.w25lk > :not(b):not(.lcnew){ display:none!important; }
body[data-view="lab"] #view .w25links > .lcard.w25lk > b{ font:inherit; color:inherit; } body[data-view="lab"] #view .w25links > .lcard.w25lk > b::after{ content:' →'; }
body[data-view="lab"] #view .w25links > .lcard.w25lk > .lcnew{ position:static!important; background:#E5383B!important; color:#fff!important; font-size:12px!important; padding:1px 7px!important; border-radius:999px!important; margin:0!important; }
body[data-view="lab"] #view .w25links > .lcard.w25lk:hover{ filter:brightness(1.08); } body[data-view="lab"] #view .w25links > .lcard.w25lk:focus-visible{ outline:3px solid #F2C230; outline-offset:2px; }
.w25side{ display:flex!important; flex-direction:column!important; gap:10px!important; background:#fff; border:2px solid #CDEFEC; border-radius:24px; padding:12px; position:sticky; top:12px; box-shadow:0 6px 18px rgba(13,148,136,.12); }
.w25sh{ display:flex; align-items:center; gap:10px; font:800 22px var(--display); color:#1F2747; background:linear-gradient(180deg,#FFF3C4,#FFE58A); border-radius:16px; padding:10px 12px; }
.w25bars{ display:inline-flex; align-items:flex-end; gap:3px; height:22px; } .w25bars i{ width:6px; border-radius:2px; background:#7B4FE0; } .w25bars i:nth-child(1){ height:9px; } .w25bars i:nth-child(2){ height:15px; } .w25bars i:nth-child(3){ height:22px; }
.w25side > .lscard{ margin:0!important; width:auto!important; border-radius:16px!important; }
.w25stats{ display:flex; flex-direction:column; gap:8px; } .w25stats > div{ display:flex; align-items:center; gap:10px; font:800 17px var(--display); background:#F7FBFF; border:1.5px solid #E1EAF5; border-radius:999px; padding:6px 16px; } .w25stats b{ margin-left:auto; }
@media (max-width:1100px){ .w25lab{ grid-template-columns:minmax(0,1fr) minmax(240px,280px)!important; } .w25labside{ display:none; } }
@media (max-width:760px){ .w25lab{ grid-template-columns:1fr!important; } .w25side{ position:static; } .w25book{ padding-left:16px; } .w25book::before{ display:none; } .w25row{ grid-template-columns:1fr; } .w25pics img{ width:64px; height:64px; } .w25rn{ font-size:21px; } }

/* ---------- world home banners: the approved banner artwork (home pages only) ---------- */
html body #view .phero.w25ban{ padding:0!important; background:none!important; border:0!important; box-shadow:0 6px 18px rgba(31,39,71,.12)!important; border-radius:22px!important; overflow:hidden!important; min-height:0!important; display:block!important; }
html body #view .phero.w25ban > .pht{ position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; white-space:nowrap; }
html body #view .phero.w25ban > :not(.pht):not(.w25bimg){ display:none!important; }
html body #view .phero.w25ban > .w25bimg{ display:block; width:100%; height:auto; }
body[data-view="lab"] #view > .pg.labg .phero.w25ban{ border-radius:22px 22px 18px 18px!important; }
html body #view.stack.stack > img.appsav.w25foot{ height:auto!important; object-fit:cover; max-height:none!important; }
html body #view .phero.w25ban::before,html body #view .phero.w25ban::after{ display:none!important; content:none!important; }
html body #view > .pg:has(> .phero.w25ban) > .stk{ display:none!important; }

/* ==== liq-give.css ==== */
/* ===== LiQ Gives (Build 1a, test29) — Life LiQ blue, with a warm coral accent used only inside LiQ Gives panels ===== */
.lg{ --lgA:#E8735A; --lgA2:#FFF1EA; --lgB:#2563EB; --lgB2:#EEF4FF; --lgInk:#14244F; color:var(--ink,#14244F) }
.lg .small{ font-size:14px } .lg .muted{ color:#5A6478 }
.lg-say{ margin:0 0 12px }
.lg-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px }
.lg-card{ display:flex; gap:12px; align-items:flex-start; text-align:left; width:100%; padding:12px; border-radius:16px; border:2px solid #C9D9F5;
  background:#fff; color:inherit; font:inherit; cursor:pointer; transition:border-color .15s, box-shadow .15s }
.lg-card:hover,.lg-card:focus-visible{ border-color:var(--lgA); box-shadow:0 4px 14px rgba(232,115,90,.18) }
.lg-cimg{ flex:0 0 auto; display:grid; place-items:center; width:64px; height:64px; border-radius:14px; background:var(--lgA2) }
.lg-hero .lg-cimg{ width:88px; height:88px }
.lg-cbody{ display:flex; flex-direction:column; gap:4px; min-width:0 }
.lg-cbody b{ font:800 17px/1.2 var(--display,system-ui) }
.lg-cshort{ font-size:14px; color:#3D4A63 }
.lg-cnum{ font-size:13px; color:#3D4A63 }
.lg-tag{ display:inline-block; align-self:flex-start; padding:1px 9px; border-radius:999px; font-size:12px; font-weight:700; margin-right:6px }
.lg-story{ background:#EDE7FF; color:#4C2E9E } .lg-imag{ background:#F1F3F7; color:#4A5568 }
.lg-bar{ height:10px; border-radius:999px; background:#E3E9F4; overflow:hidden; margin:4px 0 }
.lg-bar i{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--lgA),#F2B544) }
.lg-top{ justify-content:space-between; margin-bottom:10px }
.lg-hero{ display:flex; gap:16px; align-items:flex-start; background:var(--lgA2); border:1.5px solid #F4C9BB; border-radius:18px; padding:14px 16px; margin-bottom:12px }
.lg-hero h2{ margin:6px 0; font:800 24px/1.2 var(--display,system-ui); color:var(--lgInk) }
.lg-hero p{ margin:.35em 0; line-height:1.5 }
.lg-box{ background:#fff; border:1.5px solid #D6E2F6; border-radius:16px; padding:12px 16px; margin-bottom:12px }
.lg-box h3{ margin:0 0 8px; font:800 18px/1.2 var(--display,system-ui); color:var(--lgInk) }
.lg-box h4{ margin:10px 0 4px; font-size:15px }
.lg-big{ font-size:18px; font-weight:700; margin:4px 0 }
.lg-feed{ list-style:none; padding:0; margin:0; display:grid; gap:6px }
.lg-feed li{ background:var(--lgB2); border-radius:10px; padding:6px 10px; font-size:14px }
.lg-day{ display:inline-block; min-width:92px; font-weight:700; color:var(--lgB); font-size:12.5px }
.lg-three{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:6px }
.lg-three > div{ background:var(--lgB2); border-radius:12px; padding:8px 10px }
.lg-three small{ display:block; color:#5A6478; font-size:12.5px } .lg-three b{ font-size:14.5px }
.lg-jour{ list-style:none; padding:0; margin:6px 0 0; display:grid; gap:6px }
.lg-jour li{ display:flex; gap:10px; align-items:flex-start; opacity:.6 } .lg-jour li.on{ opacity:1 }
.lg-jour small{ display:block; font-size:13px; color:#3D4A63 }
.lg-jd{ flex:0 0 28px; text-align:center; font-size:18px }
.lg-note{ background:#FFF6E0; border:1px solid #F2D58A; border-radius:10px; padding:6px 10px; margin:6px 0; font-size:14px }
.lg-book .lg-pages{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px }
.lg-page{ background:#FFFDF6; border:1px solid #EADFC4; border-radius:10px; padding:8px 10px; font-size:14px; line-height:1.4 }
.lg-page span{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--lgA); color:#fff; font-size:12px; font-weight:700; margin-right:6px }
.lg-ways{ display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 }
.lg-way{ font:inherit; font-weight:700; padding:9px 14px; border-radius:12px; border:2px solid #C9D9F5; background:#fff; color:var(--lgInk); cursor:pointer; min-height:44px }
.lg-way[aria-pressed="true"]{ border-color:var(--lgA); background:var(--lgA2) }
.lg-way.lg-no{ background:#F6F7FA }
.lg-pretend{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:6px }
.lg-pretend input{ width:110px; font:inherit; padding:8px; border-radius:10px; border:2px solid #C9D9F5 }
.lg-eq{ font-size:14px; color:#3D4A63 }
.lg-chosen,.lg-msg{ background:var(--lgB2); border-radius:10px; padding:8px 10px; margin:6px 0; font-size:14px }
.lg-pz summary{ cursor:pointer; font-weight:800; color:var(--lgInk) }
.lg-pz input{ font:inherit; padding:8px; border-radius:10px; border:2px solid #C9D9F5 }
.lg-list{ margin:0; padding-left:20px; line-height:1.55 }
@media (max-width:700px){ .lg-three{ grid-template-columns:1fr } .lg-hero{ flex-direction:column } .lg-grid{ grid-template-columns:1fr } }

/* ---- Home card: the "cls" cell of the test28 home (liq-home32), same size and place; only its inside is LiQ Gives ---- */
#h32wrap .h32class2.h32give{ background:linear-gradient(180deg,#FFF6F1,#FFE9DF); border-color:#F2C2B2; align-items:center; overflow:hidden }
#h32wrap .h32give .lg-hemb{ display:grid; place-items:center; flex:0 0 auto }
#h32wrap .h32give .lg-htxt{ display:flex; flex-direction:column; min-width:0; flex:1 1 auto }
#h32wrap .h32give .lg-htxt b{ font:800 18px/1.2 var(--display,system-ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
#h32wrap .h32give .lg-hk{ font-size:12px; font-weight:700; color:#B4533C; margin:0 }
#h32wrap .h32give .lg-hs{ font-size:13px; color:#4A5568; margin-top:2px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden }
#h32wrap .h32give .lg-hn{ font-size:12.5px; color:#3D4A63; margin-top:0 }
#h32wrap .h32give .lg-bar{ height:7px; margin:4px 0 2px }
/* phones keep the one-line description so the card keeps the height of the old class card */

/* Sinzro's bubble inside the Life LiQ panel: the panel's image rules must not enlarge him */
.lg .lg-say .snimg{ height:96px!important; width:auto!important; max-width:none!important; flex:none }
.lg .lg-motto{ color:#B4533C; font-size:14px }
@media (max-width:600px){ .lg .lg-say .snimg{ height:72px!important } }

/* ===== Build 1b (test34): Family Learning Projects, Journal, history, Parent Desk ===== */
.lg .lgf-tag{ background:#FFE9DF; color:#9A3B22 }
.lg .lgf-h{ font:800 19px/1.25 var(--display,system-ui); margin:14px 0 4px; color:#14244F }
.lg .lgf-bar{ display:flex } .lg .lgf-bar i{ display:block; height:100%; border-radius:0 }
.lg .lgf-s-time{ background:#2563EB } .lg .lgf-s-eff{ background:#E8735A } .lg .lgf-s-fam{ background:#16A34A } .lg .lgf-s-star{ background:#F2B544 }
.lg .lgf-leg{ list-style:none; display:flex; flex-wrap:wrap; gap:6px 16px; padding:0; margin:6px 0; font-size:14px }
.lg .lgf-leg i{ display:inline-block; width:12px; height:12px; border-radius:4px; margin-right:6px; vertical-align:-1px }
.lg .lgf-form{ display:flex; flex-direction:column; gap:10px; margin:10px 0; padding:12px; border-radius:14px; background:#F7FAFF; border:1.5px solid #D6E2F6 }
.lg .lgf-form label{ display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:15px }
.lg .lgf-form input,.lg .lgf-form select,.lg .lgf-form textarea{ font:inherit; font-weight:400; font-size:16px; min-height:44px; padding:8px 10px; border-radius:10px; border:1.5px solid #B9C7DE; background:#fff; box-sizing:border-box; max-width:100% }
.lg .lgf-form textarea{ min-height:96px; resize:vertical }
.lg .lgf-form .row{ display:flex; flex-wrap:wrap; gap:8px }
.lg .lgf-cls,.lg .lgf-jl,.lg .lgf-tl,.lg .lgf-ups{ list-style:none; padding:0; margin:8px 0; display:flex; flex-direction:column; gap:8px }
.lg .lgf-cl{ padding:8px 12px; border-radius:12px; background:#F4F6FA; border-left:4px solid #94A3B8 } .lg .lgf-cl.ok{ border-left-color:#16A34A; background:#F0FAF3 } .lg .lgf-cl.no{ border-left-color:#B45309 }
.lg .lgf-cl small,.lg .lgf-jl small,.lg .lgf-tl small,.lg .lgf-up small{ display:block; color:#5A6478; font-size:13px }
.lg .lgf-bm{ margin:8px 0; padding:10px 12px; border-radius:12px; background:#FFF8E6; border:1.5px solid #F2D58A }
.lg .lgf-up{ display:flex; gap:10px; align-items:flex-start } .lg .lgf-up .lgf-ut{ display:block; margin-top:2px }
.lg .lgf-up.delayed,.lg .lgf-up.stopped{ background:#FFF7ED; border-radius:12px; padding:6px }
.lg .lgf-ph img{ display:block; max-width:min(100%,420px); border-radius:12px; margin-top:6px }
.lg .lgf-jl li{ padding:10px 12px; border-radius:12px; background:#F7F9FD; border:1.5px solid #E1E8F4 } .lg .lgf-jl p{ margin:4px 0 }
.lg .lgf-ps{ display:inline-block; font-size:13px; font-weight:700; padding:2px 10px; border-radius:999px; background:#EEF4FF; color:#1E3A8A }
.lg .lgf-badges{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px }
.lg .lgf-badge{ display:flex; flex-direction:column; gap:4px; padding:12px; border-radius:16px; border:2px dashed #C9D3E4; background:#FAFBFD; opacity:.82 }
.lg .lgf-badge.got{ border:2px solid #E8735A; background:#FFF4EE; opacity:1 }
.lg .lgf-bi{ font-size:30px; line-height:1 } .lg .lgf-badge b{ font:800 17px/1.2 var(--display,system-ui) } .lg .lgf-badge small{ font-size:13px; color:#3D4A63 } .lg .lgf-badge em{ font-style:normal; font-size:13px; font-weight:700; color:#9A3B22 }
.lg .lgf-tl li{ display:flex; gap:10px; align-items:flex-start }
.lg .lgf-went h3{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
/* Parent Desk */
.lgf-pcard{ margin:12px 0 } .lgf-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; margin:8px 0 }
.lgf-kpis > div{ padding:10px; border-radius:12px; background:#F3F7FF; border:1.5px solid #D9E4F7 } .lgf-kpis b{ display:block; font-size:22px } .lgf-kpis small{ font-size:13px; color:#3D4A63 }
.lgf-prow{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #DDE6F3 } .lgf-prow > span{ flex:1 1 280px }
.lgf-guide{ background:#FFF8EF!important } .lgf-guide ul{ margin:6px 0 0 18px }
.lgf-ed .lgf-fs{ border:1.5px solid #D6E2F6; border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; gap:6px } .lgf-ed .lgf-fs legend{ font-weight:800; padding:0 6px }
.lgf-ed input:disabled,.lgf-ed select:disabled,.lgf-ed textarea:disabled{ background:#F1F3F7; color:#5A6478 }
@media (max-width:600px){ .lgf-prow > span{ flex-basis:100% } }
.lgf-fs{ border:1.5px solid #D6E2F6; border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; gap:6px; margin:4px 0 } .lgf-fs legend{ font-weight:800; padding:0 6px }
.lgf-fs > label{ display:flex; align-items:center; gap:8px; font-size:15px; line-height:1.35 } .lgf-fs input[type=checkbox],.lgf-fs input[type=radio]{ width:20px; height:20px; flex:0 0 auto }
/* Build 1c */
.lg .lgf-star{ margin:10px 0; padding:10px 12px; border-radius:14px; background:#FFFBEF; border:1.5px solid #F2D58A }
.lg .lgf-star > .row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; justify-content:space-between }
.b27bal .gs-pend{ display:block; margin-top:6px; font-size:13px; font-weight:700; color:#7A4A00; background:#FFF4D6; border-radius:999px; padding:3px 10px }

/* ==== liq-planner.css ==== */
/* ===== LiQ Planner — Release 1a (test36): read-only reports. Star Bank look; Practice colour reserved for later releases. ===== */
.lp{display:flex;flex-direction:column;gap:14px}
.lp-per{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.lp-seg{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #CFC6EA;background:#fff;font:inherit;font-weight:700;color:#3B2F6B;cursor:pointer}
.lp-seg[aria-pressed="true"]{background:#5B3FD0;border-color:#5B3FD0;color:#fff}
.lp-nav{display:inline-flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
.lp-nav b{font-size:.95rem;color:#2A2350}
.lp-arr{min-width:44px;min-height:44px;border-radius:12px;border:1.5px solid #CFC6EA;background:#fff;font-size:1.3rem;font-weight:800;color:#3B2F6B;cursor:pointer}
.lp-arr:disabled{opacity:.35;cursor:default}
.lp-seg:focus-visible,.lp-arr:focus-visible{outline:3px solid #F5A623;outline-offset:2px}
.lp-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lp-tile{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:16px;background:#fff;border:1.5px solid #E6E0F7;min-width:0}
.lp-tile b{font-size:1.45rem;color:#2A2350}
.lp-tile small{color:#5F587A;font-size:.8rem;line-height:1.3}
.lp-ti{font-size:1.4rem}
.lp-tl{font-weight:700;color:#4A4270}
.lp-tile.earn{border-top:5px solid #2E9E5B}.lp-tile.spend{border-top:5px solid #E0703A}.lp-tile.save{border-top:5px solid #3B6FD8}.lp-tile.share{border-top:5px solid #D2477A}
.lp-mini{display:flex;flex-wrap:wrap;gap:8px}
.lp-mini:empty{display:none}
.lp-mini span{padding:6px 12px;border-radius:999px;background:#F3F0FB;font-size:.88rem;color:#3B2F6B}
.lp-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lp-box{background:#fff;border:1.5px solid #E6E0F7;border-radius:16px;padding:14px}
.lp-box h3{margin:0 0 10px;font-size:1.05rem;color:#2A2350}
.lp-bars{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.lp-bars li{display:grid;grid-template-columns:minmax(0,9.5em) 1fr auto;align-items:center;gap:8px;font-size:.92rem}
.lp-bars li span{overflow-wrap:anywhere}
.lp-bars i{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,#7A5CF0,#5B3FD0);width:var(--w);min-width:6px}
.lp-pk{display:flex;flex-wrap:wrap;gap:10px}
.lp-pk span{flex:1 1 150px;padding:10px 12px;border-radius:12px;background:#F7F5FD;display:flex;flex-direction:column;gap:2px;font-size:.88rem;color:#4A4270}
.lp-pk b{font-size:1.2rem;color:#2A2350}
.lp-list{list-style:none;margin:0;padding:0}
.lp-list li{display:grid;grid-template-columns:7em 1fr auto;gap:8px;align-items:start;padding:9px 0;border-top:1px solid #EEE9F9;font-size:.92rem}
.lp-list li:first-child{border-top:0}
.lp-w small{display:block;color:#6A6388;font-size:.8rem}
.lp-d{color:#6A6388}
.lp-soon{margin:0}
.lp-check{border-left:6px solid #2E9E5B}
.lp-check.bad{border-left-color:#D9534F;background:#FFF1EC}
.lp td.r,.lp th.r{text-align:right;white-space:nowrap}
.lp .btn.small{min-height:44px}
@media (max-width:760px){.lp-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-cols{grid-template-columns:1fr}.lp-nav{margin-left:0;width:100%;justify-content:space-between}}
@media (max-width:420px){.lp-list li{grid-template-columns:1fr auto}.lp-list .lp-d{grid-column:1/-1;font-size:.8rem}.lp-bars li{grid-template-columns:minmax(0,7em) 1fr auto}}
/* small screens: the shared phone rule shrinks buttons to 40px; the planner's controls keep the 44px touch size */
#view .lp .lp-seg,#view .lp .lp-arr,#view .lp .btn.small{min-height:44px}
@media (max-width:760px){.lp-nav{flex-wrap:nowrap}.lp-nav b{flex:1 1 auto;min-width:0;text-align:center;font-size:.85rem;line-height:1.25}}
/* ===== Release 1b (test46): LiQ Plans, plan vs actual, LiQ Saves, Shulka's guidance ===== */
.lp-shu{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:start;background:#FFF9E8;border-color:#F0D990}
.lp-shu img{width:64px;height:auto}.lp-shu p{margin:.2em 0;color:#3B2F1A}
.lp-pv{display:flex;flex-direction:column;gap:8px}
.lp-pvr{display:grid;grid-template-columns:minmax(0,9em) 1fr auto;gap:10px;align-items:center;font-size:.92rem}
.lp-pvl small{color:#6A6388;font-weight:700}
.lp-pvb{display:block;height:14px;border-radius:7px;background:#EEE9F9;overflow:hidden}
.lp-pvb i{display:block;height:100%;width:var(--w);border-radius:7px;background:#3B6FD8}
.lp-pvr.spend .lp-pvb i{background:#E0703A}.lp-pvr.share .lp-pvb i{background:#D2477A}.lp-pvr.over .lp-pvb{outline:2px solid #E0703A}
.lp-pvn{white-space:nowrap;color:#4A4270}
.lp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
.lp-chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1.5px solid #CFC6EA;background:#fff;font:inherit;font-weight:700;color:#3B2F6B;cursor:pointer}
.lp-chip small{display:block;font-weight:600;color:#6A6388;font-size:.75rem}
.lp-chip[aria-pressed="true"]{background:#5B3FD0;border-color:#5B3FD0;color:#fff}.lp-chip[aria-pressed="true"] small{color:#E6E0FF}
.lp-chip:focus-visible{outline:3px solid #F5A623;outline-offset:2px}
.lp-in3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lp-in{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:14px;background:#F7F5FD;font-weight:700;color:#3B2F6B}
.lp-in.save{border-top:4px solid #3B6FD8}.lp-in.spend{border-top:4px solid #E0703A}.lp-in.share{border-top:4px solid #D2477A}
.lp-inr{display:flex;align-items:center;gap:6px}.lp-in input{width:5em;min-height:44px;font:inherit;font-size:1.1rem;padding:6px 8px;border-radius:10px;border:1.5px solid #CFC6EA}
.lp-sum.ok{color:#1E7A45;font-weight:700}.lp-sum.bad{color:#B4352D;font-weight:700}
.lp-goal{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-top:10px}
.lp-plancta{background:#F3F0FB}
@media (max-width:760px){.lp-in3{grid-template-columns:1fr}.lp-pvr{grid-template-columns:1fr auto}.lp-pvr .lp-pvb{grid-column:1/-1;grid-row:2}.lp-goal{grid-template-columns:1fr}}

/* ==== liq-earn.css ==== */
/* ===== LiQ Earn — Phase 1 (test47). MathLiQ Lab soft-brown theme. Mission cards, status labels, earnings. ===== */
.le-page{--le-b:#8A5A33;--le-l:#F7EEE4;--le-line:#E3CDB5;--le-ink:#3B2414}
.le-head h2{margin:0;color:var(--le-ink);font-size:var(--ds-fs-title,26px)}
.le-tag{margin:2px 0 0;color:#8A5A33;font-weight:700;letter-spacing:.02em}
.le-intro{margin:0;color:#4B3626}
.le-fil{display:flex;flex-wrap:wrap;gap:8px}
.le-fil2{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-weight:700;color:#4B3626}
.le-fil2 select{min-height:44px;border-radius:10px;border:1.5px solid var(--le-line,#E3CDB5);padding:0 10px;font:inherit;background:#fff}
.le-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.le-card,.le-detail,.le-q{background:#fff;border:2px solid #E3CDB5;border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;box-shadow:0 3px 0 rgba(110,70,30,.12)}
.le-card.le-official,.le-detail.le-official,.le-q.le-official{border-color:#E8C463;background:linear-gradient(180deg,#FFFCF2,#fff)}
.le-card header,.le-detail header,.le-q header{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between}
.le-card h3,.le-detail h3{margin:0;font-size:1.15rem;color:#3B2414}
.le-q h4{margin:0;color:#3B2414} .le-q h4 small{font-weight:600;color:#7A5A3E}
.le-desc{margin:0;color:#4B3626;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.le-src{font:800 12px/1 inherit;border-radius:999px;padding:5px 10px}
.le-src.off{background:#FFF1C4;color:#7A5200;border:1.5px solid #E8C463}
.le-src.fam{background:#EAF4E4;color:#245A1E;border:1.5px solid #B5D9A6}
.le-st{font:700 12px/1 inherit;border-radius:999px;padding:5px 10px;background:#F2ECE6;color:#4B3626}
.le-st-available{background:#E4F5E8;color:#1E6B33}.le-st-revision{background:#FFF0D6;color:#8A5200}.le-st-pending,.le-st-evalok{background:#FFF6D9;color:#7A5A00}
.le-st-approved,.le-st-paid{background:#DDF2E3;color:#155C2B}.le-st-rejected,.le-st-expired,.le-st-cancelled{background:#F5E6E4;color:#8A2A20}
.le-st-submitted,.le-st-review{background:#E6EEFB;color:#1F4A8A}
.le-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:.92rem;color:#4B3626}
.le-cat,.le-dif{background:#F7EEE4;border-radius:10px;padding:4px 8px;font-weight:700}
.le-dif.le-explorer{background:#E6F4EA}.le-dif.le-inventor{background:#FFF3D6}.le-dif.le-expert{background:#F2E6FA}
.le-rw{font:800 1.3rem/1 var(--display,inherit);color:#1E7A45}.le-rw small{font-size:.75rem;color:#5A6A4A}
.le-due{color:#7A4A1E;font-weight:700}
.le-go{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:auto}
.le-go .btn,.le-act .btn,.le-form .btn,.le-q .btn{min-height:44px}
.le-empty{color:#6B5240;padding:20px;text-align:center;background:#FBF6F0;border-radius:14px;margin:0}
.le-detail section h4{margin:6px 0 2px;color:#5A3A20}.le-detail ul{margin:0;padding-left:20px}
.le-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.le-act{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:6px}
.le-note{margin:0;background:#FFF6E6;border-radius:10px;padding:8px 10px;font-size:.92rem}
.le-earned{margin:0;font-weight:700;color:#1E7A45}
.le-form textarea,.le-mform textarea,.le-mform input,.le-mform select,.le-eval textarea,.le-pay input,.le-pay select,.le-bud input{font:inherit;border-radius:10px;border:1.5px solid #E3CDB5;padding:8px 10px;background:#fff;min-height:44px;box-sizing:border-box;width:100%}
.le-pay input{width:auto;flex:1 1 160px}.le-pay select{width:auto}
.le-ph{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}
.le-thumb{position:relative;display:inline-block;width:96px;height:96px;border-radius:12px;overflow:hidden;border:2px solid #E3CDB5;background:#F7EEE4}
.le-thumb.big{width:160px;height:120px}
.le-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.le-thumb .x{position:absolute;top:4px;right:4px;width:30px;height:30px;border-radius:50%;border:0;background:#fff;font-weight:800;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.le-add{cursor:pointer}
.le-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.le-tile{display:flex;flex-direction:column;gap:2px;background:#fff;border:2px solid #E3CDB5;border-radius:16px;padding:12px 14px}
.le-tile b{font:800 1.5rem/1.1 var(--display,inherit);color:#3B2414}.le-tile small{color:#6B5240}
.le-tile.ok{border-top:5px solid #2E9E5B}.le-tile.wait{border-top:5px solid #E8B500}.le-tile.owed{border-top:5px solid #E0703A}.le-tile.paid{border-top:5px solid #3B6FD8}
/* parent */
.le-par{display:flex;flex-direction:column;gap:12px}
.le-sum{display:flex;flex-wrap:wrap;gap:8px}.le-sum span{background:#F7EEE4;border-radius:999px;padding:8px 14px;font-size:.92rem;color:#3B2414}
.le-pbody{display:flex;flex-direction:column;gap:12px}
.le-subv{background:#FBF6F0;border-radius:12px;padding:10px 12px}.le-subv h5{margin:6px 0 2px}.le-subv p{margin:0 0 4px}
.le-rub{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:4px 0;border-bottom:1px dashed #E3CDB5}
.le-rub select{min-height:40px;border-radius:8px;border:1.5px solid #E3CDB5;font:inherit}
.le-cash{display:flex;flex-wrap:wrap;gap:8px 16px;background:#F3FAF0;border-radius:12px;padding:10px 12px}
.le-mform{background:#fff;border:2px solid #E3CDB5;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.le-mform h4{margin:0}.le-mform fieldset{border:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.le-mform fieldset input,.le-mform label input[type=checkbox]{width:auto;min-height:0}
/* Lab home slot #01 */
.le-slot{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;min-height:100%;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#FFF6EA,#F3E2CC);border:2px solid #D9B58E}
.le-slot:focus-visible{outline:3px solid #1B4FA8;outline-offset:2px}
.le-slot-i{font-size:40px}.le-slot-t{display:flex;flex-direction:column;gap:2px;color:#3B2414}.le-slot-t b{font:800 1.25rem/1.1 var(--display,inherit)}
.le-slot-t small{color:#8A5A33;font-weight:700}.le-slot-t em{font-style:normal;color:#4B3626}.le-slot-go{font-size:28px;color:#8A5A33}
.tnslot{height:100%}
@media (max-width:760px){.le-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.le-cols{grid-template-columns:1fr}.le-grid{grid-template-columns:1fr}}

/* ==== liq-labsim.css ==== */
/* ===== MathLiQ Lab · shared simulator shell (liq-labsim.js) — test43 =====
   Lab icon (drafting compass), the white game header (title + story line + Exit), the universal end-of-game postcard. */
.labic{display:inline-block;width:1em;height:1em;vertical-align:-.14em;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4' r='2.3' fill='%23F5B700' stroke='%237A4E00' stroke-width='1.2'/%3E%3Cpath d='M11 6 L5.4 20.6' stroke='%233B4A6B' stroke-width='2.3' stroke-linecap='round'/%3E%3Cpath d='M13 6 L17.4 17.6' stroke='%233B4A6B' stroke-width='2.3' stroke-linecap='round'/%3E%3Cpath d='M16.4 17.2 l3 -.9 l-.2 4.6z' fill='%23E4572E'/%3E%3Cpath d='M3.6 16.6 Q12 23.4 20.4 16.6' stroke='%232F6BDE' stroke-width='1.6' fill='none' stroke-dasharray='2 1.6'/%3E%3C/svg%3E")}
.labflask .labic{width:1em;height:1em}
/* game header: title, story line under it, compact Exit */
.labsim-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:nowrap!important}
.labsim-head{display:flex;flex-direction:column;gap:2px;min-width:0}
.labsim-title{font-size:1.15rem;line-height:1.25;color:#1F1A3D}
.labsim-sub{font-size:.95rem;line-height:1.4;color:#4A4560;max-width:72ch}
.labsim-exit{flex:none;min-height:44px}
.lab-drag{cursor:grab;touch-action:none}.lab-drag:active{cursor:grabbing}
/* ---------- universal end-of-game postcard ---------- */
.labsim-done.pc{padding:0;background:none;border:0;box-shadow:none}
.pc-air{--pc-paper:#FBF3E2;position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;background:var(--pc-paper);border-radius:18px;padding:22px;
 box-shadow:0 10px 28px rgba(60,40,10,.18);border:12px solid transparent;
 border-image:repeating-linear-gradient(135deg,#D7263D 0 18px,var(--pc-paper) 18px 26px,#2F4FA8 26px 44px,var(--pc-paper) 44px 52px) 12}
.pc-left{position:relative;padding:4px 22px 6px 6px;border-right:2px dashed #C9B48C}
.pc-right{padding:4px 6px 6px 24px;display:flex;flex-direction:column;gap:12px}
.pc-flag{position:absolute;left:-30px;top:-30px;width:120px;height:60px;transform:rotate(-38deg);background:linear-gradient(#078930 0 33%,#FCDD09 33% 66%,#DA121A 66%);opacity:.85;border-radius:4px;pointer-events:none}
.pc-from{margin:0 0 0 58px;font:700 1rem/1.2 'Baloo 2',Nunito,sans-serif;color:#3A2E2A;font-style:italic}
.pc-place{margin:0 120px 8px 58px;font:800 1.65rem/1.15 'Baloo 2',Nunito,sans-serif;color:#9B1C1C}
.pc-stamp{position:absolute;right:-6px;top:0;width:150px;height:auto;opacity:.85;transform:rotate(-6deg)}
.pc-photo{margin:6px 10px 12px;padding:10px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18);transform:rotate(-2deg);position:relative}
.pc-photo::before,.pc-photo::after{content:"";position:absolute;width:62px;height:20px;background:rgba(232,210,150,.75);top:-8px}
.pc-photo::before{left:-14px;transform:rotate(-30deg)}.pc-photo::after{right:-14px;transform:rotate(30deg)}
.pc-photo svg{display:block;width:100%;height:auto;border-radius:4px}
.pc-letter p{margin:.3em 0;font-size:1.02rem;line-height:1.55;color:#22306B;font-style:italic}
.pc-letter .pc-dear{font-weight:800;font-style:normal;color:#1F1A3D;border-bottom:3px solid #F5C518;display:inline-block}
.pc-letter .pc-draft{font-style:normal;font-size:.85rem;color:#8A4B00;background:#FFF1C9;border:1px dashed #D99A00;border-radius:8px;padding:4px 8px}
.pc-letter .pc-src{font-style:normal;font-size:.8rem;color:#6A5D45}
.pc-done{margin:0;align-self:flex-start;font:800 1.9rem/1.1 'Baloo 2',Nunito,sans-serif;color:#1E2E7A;background:linear-gradient(transparent 30%,#FFE066 30% 88%,transparent 88%);padding:0 10px;transform:rotate(-2deg)}
.pc-sum{margin:0;color:#4A3A22;font-weight:700}
.pc-rows{margin:0;display:grid;gap:2px}
.pc-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 6px;border-bottom:1.5px solid #E3D3AE}
.pc-row dt{font-weight:800;color:#1F2A5A}.pc-row dt span{font-size:1.2em}
.pc-row dd{margin:0;font-weight:800;font-size:1.15rem;color:#1F1A3D}
.labsim-done .lsr-stars{color:#E5A100;font-size:1.9rem;letter-spacing:3px;margin:0}
.labsim-done .lsr-stars i{color:#D5D0E4;font-style:normal}
.pc-well{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;margin-top:4px}
.pc-well b{font:800 1.7rem/1.1 'Baloo 2',Nunito,sans-serif;color:#C0261F;background:linear-gradient(transparent 35%,#FFE066 35% 90%,transparent 90%);padding:0 10px}
.pc-well span{font-weight:700;color:#1E2E7A;font-size:1.1rem}
.pc-pay{margin:0;text-align:center;font-weight:700;color:#2E5E2E}
.pc-btns{justify-content:center;gap:10px;flex-wrap:wrap}.pc-btns .btn{min-height:44px}
@media (max-width:820px){ .pc-air{grid-template-columns:1fr;padding:16px}.pc-left{border-right:0;border-bottom:2px dashed #C9B48C;padding:4px 4px 14px}.pc-right{padding:14px 4px 4px}
 .pc-stamp{width:96px;right:-4px;top:-4px}.pc-from{margin:0 92px 0 44px}.pc-place{margin:0 92px 8px 44px;font-size:1.35rem}.pc-done{font-size:1.6rem} }
@media (prefers-reduced-motion:reduce){ .pc-photo,.pc-done,.pc-stamp{transform:none} }

/* ==== liq-melkamu.css ==== */
/* MathLiQ Lab · መልካሙ እረኛ (The Good Shepherd) — test39, layout + rules refined in test40 (concept image direction).
   Three areas: landscape · flock panel · question area (sheep card | question | Bilcho). Light CSS animation only. */
.mk{display:flex;flex-direction:column;gap:12px;color:#1F1A3D}
.mk-stage{border-radius:18px;overflow:hidden;border:2px solid #D9C9A8;background:#EAF6FF;box-shadow:0 2px 10px rgba(60,40,10,.08)}
.mk-scene{display:block;width:100%;height:auto}
.mk-waves{animation:mkwave 6s linear infinite;will-change:transform}
.mk-waves2{animation-duration:9s}
@keyframes mkwave{from{transform:translateX(0)}to{transform:translateX(40px)}}
.mk-sh-g{transition:transform .9s ease-in-out}
.mk-bob{animation:mkbob 3s ease-in-out infinite}
@keyframes mkbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.mk-glow{animation:mkglow 1.4s ease-in-out infinite}
@keyframes mkglow{50%{opacity:.35}}
.mk-rider{transform-box:fill-box;transform-origin:50% 100%}
.mk-wobble{animation:mkwob .7s ease-in-out}
@keyframes mkwob{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(10px) rotate(-8deg)}50%{transform:translateX(5px) rotate(7deg)}75%{transform:translateX(9px) rotate(-4deg)}}
.mk-splash{animation:mksplash .7s ease-in-out}
@keyframes mksplash{0%{transform:translateY(0) rotate(0)}40%{transform:translateY(8px) rotate(10deg)}100%{transform:translateY(0) rotate(0)}}

.mk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.mk-stage{position:relative}
/* question area */
.mk-panel{background:#FFFBF2;border:2px solid #E3D3B3;border-radius:16px;padding:14px}
.mk-play{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2.4fr) minmax(150px,1fr);gap:14px;align-items:start}
.mk-play.mk-solo{grid-template-columns:1fr}
.mk-card{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:2px solid #E3D3B3;border-radius:14px;padding:10px;text-align:center}
.mk-portrait{width:110px;height:90px}
.mk-cardtext{display:flex;flex-direction:column;gap:2px}
.mk-num{font-size:.92rem;font-weight:700;color:#4A4270}
.mk-name{font-size:1.4rem;font-weight:800;color:#1F1A3D;background:#FFE9A8;border:2px solid #C77700;border-radius:999px;padding:0 14px;align-self:center}
.mk-desc{font-size:1.02rem;color:#3A3360;line-height:1.4}
.mk-center{display:flex;flex-direction:column;gap:10px;background:#fff;border:2px solid #E3D3B3;border-radius:14px;padding:12px 14px;min-width:0}
.mk-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mk-pill{background:#EEF0FF;color:#2A2350;border-radius:999px;padding:3px 12px;font-weight:700;font-size:.92rem}
.mk-pill-mode{background:#F2EEFC}
.mk-pill-topic{background:#E8F6EC;color:#14502F}
.mk-streak{background:#FFF1E0;color:#7A3E00}
.mk-q .prompt{font-size:1.45rem;line-height:1.45;margin:4px 0;color:#14102E;font-weight:700;text-align:center}
.mk-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
#view .mk-ch{min-height:56px;font-size:1.25rem;color:#14102E;border-radius:14px;border:2px solid #8FB8E8;background:linear-gradient(#F4F9FF,#E2EEFC);font-family:inherit;font-weight:800;cursor:pointer;padding:8px}
#view .mk-ch:hover:not(:disabled){border-color:#2C78C2}
#view .mk-ch.wrong{border-color:#C0392B;background:#FFF1EC}
#view .mk-ch:focus-visible,#view .mk-mode:focus-visible{outline:3px solid #F5A623;outline-offset:2px}
.mk-numrow{justify-content:center}
.mk-numrow input{min-height:52px;font-size:1.2rem;max-width:220px;border-radius:12px;border:2px solid #8FB8E8;padding:0 12px}
.mk-msg .fb{font-size:1.05rem;line-height:1.45}
.mk-nextrow{justify-content:center}
.mk-helptext{display:flex;flex-direction:column;gap:8px;align-items:center}
.mk-help{display:flex;flex-direction:column;align-items:center;gap:8px;background:#FFF4DA;border:2px solid #EBCB85;border-radius:14px;padding:10px;text-align:center}
.mk-bilcho{width:84px;height:84px;object-fit:contain}
.mk-bub{margin:0;background:#fff;border:2px solid #EBCB85;border-radius:14px;padding:6px 10px;font-weight:700;color:#3A2A00}
.mk-hint{background:#fff;border-radius:12px;padding:8px 10px;border:2px solid #EBCB85}
.mk-hint p{margin:0;font-size:1.02rem;line-height:1.4;color:#2A2350}
#view .mk-offer{outline:3px solid #F5A623;animation:mkpulse 1.2s ease-in-out 2}
@keyframes mkpulse{50%{transform:scale(1.05)}}

/* intro */
.mk-intro h2{margin:0 0 6px}
.mk-lead{font-size:1.1rem;line-height:1.5;color:#1F1A3D}
.mk-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
#view .mk-mode{min-height:64px;text-align:left;border-radius:14px;border:2px solid #CFC6EA;background:#fff;padding:10px 12px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:#1F1A3D}
#view .mk-mode[aria-checked="true"]{border-color:#2E8B57;background:#E8F6EC}
.mk-mode small{color:#3F3866;font-size:.95rem}
.mk-rules{background:#F6F3FF;border-radius:12px;padding:8px 12px;margin:0;color:#1F1A3D}
.mk-rules p{margin:4px 0;line-height:1.45}
.mk-starline{margin:8px 0;font-weight:700;color:#3A3360}
#view .mk .mk-panel .btn,#view .mk .mk-panel .btn.small{min-height:44px!important}   /* the shared small-button rule (38px, !important) is under the 44px touch size */

/* phone: shorter landscape; question area stacks (question first) */
@media (max-width:760px){
 .mk-play{grid-template-columns:1fr;gap:10px}
 .mk-center{order:1}.mk-card{order:2;flex-direction:row;text-align:left;padding:8px}.mk-help{order:3;flex-direction:row;text-align:left;padding:8px}.mk-helptext{align-items:flex-start}
 .mk-portrait{width:72px;height:60px;flex:none}.mk-name{align-self:flex-start;font-size:1.25rem}
 .mk-bilcho{width:56px;height:56px}.mk-help .btn{flex:none}
 .mk-q .prompt{font-size:1.3rem}
 .mk-modes{grid-template-columns:1fr}
 .mk-panel{padding:10px}
}
@media (prefers-reduced-motion:reduce){.mk-waves,.mk-wobble,.mk-splash,.mk-bob,.mk-glow,#view .mk-offer{animation:none}.mk-sh-g{transition:none}}

/* ---------- test43 refinements ---------- */
.mk-blink{animation:mkblink 1s ease-in-out infinite}
@keyframes mkblink{50%{opacity:.35}}
.mk-cup.on path,.mk-cup.on ellipse{transition:fill .3s}
.mk-play{align-items:stretch}
.mk-card,.mk-help{justify-content:flex-start;height:100%;box-sizing:border-box}
.mk-card{background:#EEF8E6;border-color:#BFDDA6}
.mk-center{background:#FFFDF6}
.mk-help{background:#EFEDFF;border-color:#CDC6F2}
.mk-cardh{margin:0 0 2px;font-size:.95rem;font-weight:800;color:#4A4270;letter-spacing:.02em}
.mk-startrow{align-items:center;gap:10px;justify-content:center}
#view .mk .mk-startbtn{width:auto!important;flex:none;padding:10px 28px;border-radius:999px;font-size:1.1rem;font-weight:800;box-shadow:0 4px 0 #1E6B3D}
.mk-intro{display:flex;flex-direction:column}
@media (max-width:760px){ .mk-card,.mk-help{height:auto;flex-wrap:wrap}.mk-cardh{flex-basis:100%;text-align:left} }
@media (prefers-reduced-motion:reduce){.mk-blink{animation:none}}
/* test49: side by side on wide but short screens (laptop on a TV, browser zoom): picture left, question right, one screen */
.mk.mk-fit{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);gap:12px;align-items:start}
.mk.mk-fit>.mk-stage{max-height:var(--mk-h,640px);display:flex;align-items:center;justify-content:center}
.mk.mk-fit .mk-scene{width:100%;height:auto;max-height:var(--mk-h,640px)}
.mk.mk-fit>.mk-panel{max-height:var(--mk-h,640px);overflow:auto;padding:10px}
.mk.mk-fit .mk-play{grid-template-columns:1fr 1fr;gap:10px}
.mk.mk-fit .mk-play>:nth-child(2){grid-column:1/-1;order:-1}
.mk.mk-fit .mk-play>:nth-child(1) svg,.mk.mk-fit .mk-play>:nth-child(1) img,.mk.mk-fit .mk-play>:nth-child(3) img{max-height:96px;width:auto}

/* ==== liq-debredamo.css ==== */
/* MathLiQ Lab · Debre Damo Climb (የደብረ ዳሞ ጉዞ) — test41. From the approved design prototype (Nov 12).
   Desktop: the question card sits over the right of the landscape. Phone: landscape, then the card below. */
.dd{color:#24170C;font-family:Inter,'Noto Sans Ethiopic',Arial,sans-serif}
.dd-wide{display:grid;grid-template-columns:minmax(0,1fr)}
.dd-wide>.dd-stage,.dd-wide>.dd-panel{grid-area:1/1}
.dd-wide>.dd-panel{justify-self:end;align-self:start;width:min(46%,560px);margin:78px 16px 16px 0;position:relative;z-index:2}
.dd-narrow{display:flex;flex-direction:column;gap:10px}
.dd-stage{position:relative;overflow:hidden;border-radius:18px;border:2px solid #D9C9A8;background:#CDEBFF;box-shadow:0 4px 14px rgba(60,35,5,.12)}
.dd-scene{display:block}
.dd-cam,.dd-cam2,.dd-par{transition:transform 1s ease-in-out}
.dd-mon{transform-box:fill-box;transform-origin:50% 100%}
.dd-wobble{animation:ddwob .7s ease-in-out}
@keyframes ddwob{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg) translateX(6px)}50%{transform:rotate(6deg)}75%{transform:rotate(-4deg)}}
.dd-steam{animation:ddsteam 2.4s ease-in-out infinite}
@keyframes ddsteam{0%,100%{opacity:.85;transform:translateY(0)}50%{opacity:.5;transform:translateY(-3px)}}
.dd-burst{animation:ddburst 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes ddburst{0%,100%{transform:scale(.95)}50%{transform:scale(1.06)}}
/* HUD */
.dd-hud{position:absolute;left:12px;right:12px;top:12px;display:flex;align-items:center;justify-content:center;gap:8px;z-index:3;pointer-events:none}
.dd-hud>*{pointer-events:auto}
.dd-pill{display:flex;align-items:center;gap:12px;background:rgba(255,248,232,.72);backdrop-filter:blur(3px);border:2px solid rgba(226,176,74,.75);border-radius:999px;padding:4px 14px;box-shadow:0 2px 8px rgba(60,35,5,.12);font-weight:700;font-size:.98rem;color:#24170C}   /* test43: compact, see-through HUD */
.dd-pill i{width:2px;height:22px;background:#E2B04A}
.dd-stars{display:inline-flex;gap:2px;align-items:center}
.dd-round{position:absolute;right:0;width:46px;height:46px;border-radius:50%;border:3px solid #fff;background:#2F6BDE;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,0,0,.2);padding:0;cursor:pointer}
/* cups */
.dd-cups{background:rgba(255,248,232,.78);backdrop-filter:blur(3px);border:2px solid rgba(226,176,74,.75);border-radius:20px;padding:8px 14px;box-shadow:0 6px 18px rgba(60,35,5,.18);display:flex;flex-direction:column;gap:2px}
.dd-stage>.dd-cups{position:absolute;left:12px;top:76px;z-index:2}
.dd-narrow .dd-stage>.dd-cups{left:50%;top:auto;bottom:8px;transform:translateX(-50%);padding:4px 10px}
.dd-cups-t{font-weight:700;font-size:.92rem;color:#4A3A28;text-align:center}
.dd-cups-row{display:flex;gap:12px;justify-content:center}
.dd-cup{display:flex;flex-direction:column;align-items:center;line-height:1.1}
.dd-cup b{font-size:.98rem;color:#6B5A45}.dd-cup.on b{color:#24170C}
.dd-cup small{font-size:.8rem;color:#6B5A45}
.dd-cups.big{align-self:center}
.dd-cups.big .dd-cup b{font-size:1.15rem}
/* bubble */
.dd-bubble{position:absolute;z-index:3;background:#fff;border:3px solid #E2B04A;border-radius:22px;padding:10px 16px;box-shadow:0 8px 20px rgba(0,0,0,.18);max-width:230px;display:flex;flex-direction:column;gap:2px}
.dd-bubble b{font-size:1.4rem;color:#B4231A}.dd-bubble span{font-weight:600}
/* cards */
.dd-card{background:#FFFDF7;border:3px solid #E2B04A;border-radius:24px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 28px rgba(60,35,5,.2)}
.dd-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dd-pill-topic{background:#E4ECFF;color:#1E3A8A;border-radius:999px;padding:4px 12px;font-weight:700;font-size:.9rem}
.dd-pill-mode{background:#F1ECFF;color:#4329A8;border-radius:999px;padding:4px 12px;font-weight:700;font-size:.9rem}
.dd-qhint{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;border-radius:999px;border:2px solid #E2B04A;background:#FFF4D6;padding:2px 12px 2px 4px;font:inherit;font-weight:800;color:#24170C;cursor:pointer}
.dd-qhint span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#5B3FD0;color:#fff;font-size:1.2rem;font-weight:900}
.dd-qhint.dd-offer{animation:ddPulse 1.2s ease-in-out 3;box-shadow:0 0 0 4px rgba(91,63,208,.25)}
@keyframes ddPulse{50%{transform:scale(1.08)}}
.dd-q .prompt{margin:0;font-size:1.4rem;line-height:1.45;font-weight:700;color:#14102E;text-align:center}
.dd-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#view .dd-ch{min-height:58px;border-radius:16px;border:3px solid #7FA6E0;background:#E3EEFF;font:inherit;font-weight:800;font-size:1.3rem;color:#14213D;box-shadow:0 3px 0 #7FA6E0;cursor:pointer;padding:6px}
#view .dd-ch.right{border-color:#2E9E4F;background:#DDF5E3;box-shadow:0 3px 0 #2E9E4F}
#view .dd-ch.wrong{border-color:#C2410C;background:#FFE9E2;box-shadow:0 3px 0 #C2410C}
#view .dd-ch:focus-visible,#view .dd-mode:focus-visible{outline:3px solid #F5A623;outline-offset:2px}
.dd-numrow{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.dd-numrow input{min-height:52px;font-size:1.2rem;max-width:220px;border-radius:12px;border:2px solid #7FA6E0;padding:0 12px}
.dd-msg .fb{font-size:1.02rem;line-height:1.45}
.dd-bilcho{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;min-height:48px;border-radius:999px;border:2px solid #E2B04A;background:#FFF4D6;padding:4px 16px 4px 4px;font:inherit;font-weight:700;color:#24170C;cursor:pointer}
.dd-bilcho img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#F3D9A4}
.dd-hint{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#FFF4DA;border-radius:14px;padding:8px 8px 8px 14px}
.dd-hint img{flex:none;width:56px;height:56px;border-radius:50%;object-fit:cover;background:#F3D9A4}   /* Bilcho on the right */
.dd-hint p{margin:0;line-height:1.4}
#view .dd-offer{outline:3px solid #F5A623;animation:ddpulse 1.2s ease-in-out 2}
@keyframes ddpulse{50%{transform:scale(1.05)}}
.dd-nextrow{display:flex;justify-content:center}
/* intro */
.dd-intro{gap:14px}
.dd-sign{align-self:center;background:linear-gradient(#B9772F,#8A5220);border:3px solid #5A3417;border-radius:20px;padding:10px 24px;box-shadow:0 6px 0 #5A3417;text-align:center;color:#FFE7A6;font-weight:700}
.dd-sign h2{margin:2px 0;font-size:2.1rem;line-height:1.05;color:#FFF7E0}
.dd-lead{margin:0;font-size:1.05rem;line-height:1.5;text-align:center;font-weight:600}
.dd-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#view .dd-mode{min-height:64px;text-align:left;border-radius:16px;border:3px solid #D8C9AE;background:#fff;padding:10px 12px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:#24170C}
#view .dd-mode[aria-checked="true"]{border-color:#2E9E4F;background:#E3F6E8}
.dd-mode small{color:#4A3A28;font-size:.92rem}
.dd-rules{background:#F6F3FF;border-radius:12px;padding:8px 12px}.dd-rules p{margin:4px 0 0;line-height:1.45}
.dd-starline{margin:0;font-weight:700;color:#3A3360;font-size:.95rem}
/* star, checkpoint, summit */
.dd-star{align-items:center;text-align:center}
.dd-banner{background:linear-gradient(#E0412F,#B4231A);color:#fff;border:3px solid #7E140E;border-radius:16px;padding:8px 22px;font-size:1.7rem;font-weight:800;box-shadow:0 5px 0 #7E140E}
.dd-plus{display:flex;align-items:center;gap:10px;background:#FFF4C8;border:3px solid #F5B700;border-radius:999px;padding:8px 24px;font-size:1.7rem;font-weight:800}
.dd-sub{margin:0;font-weight:600;color:#4A3A28;line-height:1.45;text-align:center}
.dd-check,.dd-summit{align-items:stretch}
.dd-check h2,.dd-summit h2{margin:0;font-size:2rem;text-align:center}
.dd-tick{align-self:center;width:62px;height:62px;border-radius:50%;background:#2E9E4F;display:flex;align-items:center;justify-content:center;border:4px solid #fff;box-shadow:0 3px 0 #165C2C}
.dd-stagechips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dd-chip{border-radius:14px;border:3px solid #E2D6C2;background:#fff;padding:8px;text-align:center;display:flex;flex-direction:column}
.dd-chip.done{border-color:#2E9E4F;background:#E3F6E8}.dd-chip.next{border-color:#E2B04A;background:#FFF4D6}
.dd-chip span{font-size:.88rem;color:#4A3A28}.dd-chip em{font-style:normal;font-weight:700;font-size:.85rem;color:#1E7A3A}
.dd-starsofar{margin:0;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700}
.dd-bigstars{text-align:center}
.dd-statrow{display:flex;justify-content:space-between;border-bottom:2px solid #F0E3C8;padding-bottom:6px;font-weight:600}
#view .dd .btn,#view .dd .btn.small{min-height:44px!important}
@media (max-width:600px){.dd-modes,.dd-choices{grid-template-columns:1fr 1fr}.dd-q .prompt{font-size:1.25rem}.dd-pill{font-size:.95rem;gap:8px;padding:5px 12px}.dd-round{width:44px;height:44px}.dd-card{padding:14px}.dd-sign h2{font-size:1.7rem}}
@media (max-width:420px){.dd-modes{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.dd-cam,.dd-cam2,.dd-par{transition:none}.dd-wobble,.dd-steam,.dd-burst,#view .dd-offer{animation:none}}
.dd-narrow .dd-hud{justify-content:flex-start}

/* test43: the intro card can be dragged by its sign on the desktop layout */
.dd-wide .dd-intro .dd-sign.lab-drag{cursor:grab}
@media (prefers-reduced-motion:reduce){.dd-qhint.dd-offer{animation:none}}
#view .dd .dd-qhint{min-height:44px!important;box-sizing:border-box}

/* ==== liq-topnav33.css ==== */
/* test30 (Nov 10): top dropdown menu for English LiQ (light pink / bold pink), Life LiQ (light blue / bold blue)
   and Investment LiQ (light green / bold green). Solid colour only for highlights and buttons; light bodies. See liq-topnav33.js */
#view.tn-en{ --tnA:#D6286E; --tnA2:#B81E5C; --tnL:#FFF4F8; --tnL2:#FFE6F0; --tnB:#F5C6D9; --tnInk:#2A1631; --tnSoft:#FFFAFC }
#view.tn-life{ --tnA:#1F63E0; --tnA2:#1650BD; --tnL:#F2F7FF; --tnL2:#E2EDFF; --tnB:#C3D6F7; --tnInk:#14244F; --tnSoft:#F8FBFF }
#view.tn-inv{ --tnA:#1E8A45; --tnA2:#166E36; --tnL:#F1FAF3; --tnL2:#DFF3E5; --tnB:#B7DFC2; --tnInk:#133A22; --tnSoft:#F7FCF8 }
/* the permanent left column and the repeated title bar leave the home page; the banner stays exactly as it is */
/* every page of the three worlds: the left menu column is replaced by the top bar; the page panel takes the full width */

#view.tn .tnb27{ display:block!important; grid-template-columns:none!important }
#view.tn .tnb27 > .b27main{ width:100%!important; max-width:none!important; margin-left:0!important }
/* inner pages: the companion tip becomes a slim strip at the top of the page panel */
#view.tn .b29tip.tnstrip{ display:flex!important; flex-direction:row!important; align-items:center; gap:12px; position:static!important; width:auto!important; max-width:none!important;
  margin:10px 12px 4px!important; padding:8px 14px!important; min-height:0!important; height:auto!important; max-height:none!important; flex:none!important; border-radius:16px!important; background:var(--tnL)!important; border:1.5px solid var(--tnB)!important; box-shadow:none!important; text-align:left!important }
#view.tn .b29tip.tnstrip img{ width:44px!important; height:44px!important; max-height:44px!important; object-fit:contain; flex:none; margin:0!important; position:static!important }
#view.tn .b29tip.tnstrip .b29tipt{ display:flex!important; flex-wrap:wrap; align-items:center; gap:4px 10px; text-align:left!important; font-size:15px!important; color:var(--tnInk)!important; margin:0!important }
/* home pages: the title bar goes (the menu already names the page) and the cards sit straight on the light body */
#view.tnhome .b27title{ display:none!important }
#view.tnhome .tnb27 > .b27main{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important }
#view.tnhome .b27dash{ background:transparent!important; padding:0!important; border:0!important; box-shadow:none!important; overflow:visible!important; max-height:none!important; height:auto!important }
#view.tn .tnhid{ display:none!important }

/* ---------- horizontal dropdown navigation, separate from the banner ---------- */
#view.tn .tnnav{ position:relative; z-index:40; display:flex; gap:12px; margin:12px 0 14px; padding:8px; border-radius:22px;
  background:var(--tnL2); border:1.5px solid var(--tnB); box-shadow:0 4px 14px rgba(20,36,79,.06) }
#view.tn .tnmob{ display:none }
#view.tn .tng{ position:relative; flex:1 1 0; min-width:0 }
#view.tn .tngb{ width:100%; min-height:54px; display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 16px; border-radius:16px;
  border:2px solid var(--tnB); background:#fff; color:var(--tnInk); font:800 17px/1.15 var(--display,system-ui); cursor:pointer; transition:background .15s, color .15s, border-color .15s, transform .1s }
#view.tn .tngb:hover{ border-color:var(--tnA); background:var(--tnSoft) }
#view.tn .tngb:focus-visible, #view.tn .tnk:focus-visible, #view.tn .tnmob:focus-visible{ outline:3px solid var(--tnA); outline-offset:2px }
#view.tn .tngb.on{ background:var(--tnA); border-color:var(--tnA); color:#fff; box-shadow:0 6px 14px rgba(0,0,0,.14) }
#view.tn .tng.open > .tngb{ background:var(--tnA2); border-color:var(--tnA2); color:#fff }
#view.tn .tngb:active{ transform:translateY(1px) }
#view.tn .tngi{ font-size:22px } #view.tn .tngl{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
#view.tn .tncar{ width:9px; height:9px; border-right:2.5px solid currentColor; border-bottom:2.5px solid currentColor; transform:rotate(45deg) translateY(-3px); margin-left:4px; flex:none; transition:transform .15s }
#view.tn .tng.open .tncar{ transform:rotate(225deg) translate(-2px,-2px) }
/* floating panel: over the workspace, never pushes it down */
#view.tn .tnp{ position:absolute; top:calc(100% + 8px); left:0; min-width:100%; width:max-content; max-width:380px; z-index:60; padding:8px;
  background:#fff; border:1.5px solid var(--tnB); border-radius:18px; box-shadow:0 18px 40px rgba(20,36,79,.18) }
#view.tn .tnp[hidden]{ display:none }
#view.tn .tnk{ width:100%; display:flex; align-items:center; gap:12px; min-height:46px; padding:8px 14px; border:0; border-radius:12px; background:transparent;
  color:var(--tnInk); font:700 16px/1.2 var(--font,system-ui); text-align:left; cursor:pointer }
#view.tn .tnk + .tnk{ margin-top:2px }
#view.tn .tnk:hover{ background:var(--tnL2) }
#view.tn .tnk.on{ background:var(--tnA); color:#fff }
#view.tn .tnki{ width:30px; text-align:center; font-size:20px }
#view.tn .tnlock{ margin-left:auto; font-style:normal; opacity:.7 }

/* ---------- the workspace: full width, hierarchy by size ---------- */
#view.tn .tngrid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; padding:2px 2px 6px }
#view.tn .tnc{ min-width:0; background:#fff; border:1.5px solid var(--tnB); border-radius:22px; padding:14px; box-shadow:0 6px 18px rgba(20,36,79,.06); display:flex; flex-direction:column; gap:10px }
#view.tn .tnh{ margin:0 2px; font:800 18px/1.2 var(--display,system-ui); color:var(--tnInk) }
#view.tn .tnc > *{ margin:0!important; width:auto!important; max-width:none!important }
#view.tn-en .tn-next{ grid-column:span 7 } #view.tn-en .tn-prog{ grid-column:span 5 }
#view.tn-en .tn-wotd{ grid-column:span 7 } #view.tn-en .tn-fun{ grid-column:span 5 }
#view.tn-en .tn-focus{ grid-column:span 8 } #view.tn-en .tn-tip{ grid-column:span 4 }
#view.tn-en .tn-recent{ grid-column:span 8 } #view.tn-en .tn-acts{ grid-column:span 4 }
#view.tn-life .tn-next{ grid-column:span 7 } #view.tn-life .tn-prog{ grid-column:span 5 }
#view.tn-life .tn-focus{ grid-column:span 8 } #view.tn-life .tn-tip{ grid-column:span 4 }
#view.tn-life .tn-recent{ grid-column:span 6 } #view.tn-life .tn-kind{ grid-column:span 3 } #view.tn-life .tn-acts{ grid-column:span 3 }
#view.tn-inv .tn-next{ grid-column:span 7 } #view.tn-inv .tn-prog{ grid-column:span 5 }
#view.tn-inv .tn-focus{ grid-column:span 8 } #view.tn-inv .tn-tip{ grid-column:span 4 }
#view.tn-inv .tn-recent{ grid-column:span 7 } #view.tn-inv .tn-acts{ grid-column:span 5 }

/* next learning action: the most important card */
#view.tn .tn-next{ background:linear-gradient(135deg,var(--tnL2),#fff 70%); border-width:2px }
#view.tn .tn-next .e29goal{ background:transparent!important; border:0!important; box-shadow:none!important; padding:4px 6px!important; min-height:0!important }
#view.tn .tn-next .e29goal .btn, #view.tn .tn-next .e29goal button{ background:var(--tnA)!important; border-color:var(--tnA)!important; color:#fff!important; font-size:17px!important; padding:12px 22px!important; border-radius:14px!important; box-shadow:0 6px 14px rgba(0,0,0,.15)!important }
/* progress: compact, light, with a clear bar */
#view.tn .tn-prog{ background:var(--tnSoft) }
#view.tn .tn-prog .e29prog{ background:transparent!important; box-shadow:none!important; border:0!important; padding:0!important; color:var(--tnInk)!important; min-height:0!important }
#view.tn .tn-prog .e29prog *{ color:var(--tnInk)!important; text-shadow:none!important }

/* Word of the Day: a small learning board */
#view.tn .tn-wotd{ background:#2F4A3A; border:6px solid #A9774A; border-radius:22px; color:#F4F1E6; box-shadow:inset 0 0 0 2px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.12) }
#view.tn .tn-wotd .wotd{ background:transparent!important; border:0!important; box-shadow:none!important; padding:4px 6px!important; color:#F4F1E6!important; transform:none!important }
#view.tn .tn-wotd .wotd *{ color:#F4F1E6 }
#view.tn .tn-wotd .wotdpin{ display:none!important }
#view.tn .tn-wotd .wotdk{ font:800 15px/1 var(--display,system-ui); letter-spacing:.06em; text-transform:uppercase; color:#FFD66B!important }
#view.tn .tn-wotd .wotdw{ font:800 34px/1.15 var(--display,system-ui)!important; margin:6px 0 4px }
#view.tn .tn-wotd input{ background:#fff!important; color:#14244F!important; border-radius:12px!important }
#view.tn .tn-wotd .btn.go, #view.tn .tn-wotd #wotdGo{ background:var(--tnA)!important; border-color:var(--tnA)!important; color:#fff!important }
#view.tn .tn-wotd .btn.alt{ background:#fff!important; color:#14244F!important }
#view.tn .tnwb{ display:flex; justify-content:flex-end }
#view.tn .tnbtn{ font:800 15px var(--display,system-ui); padding:9px 16px; border-radius:12px; cursor:pointer; border:2px solid #FFD66B; background:transparent; color:#FFD66B }
/* Ridiculous English */
#view.tn .tn-fun{ background:linear-gradient(160deg,#FFF6D8,#FFE9F1); border-color:#F7D27A }
#view.tn .tn-fun .enfun{ background:transparent!important; border:0!important; box-shadow:none!important; padding:4px!important; display:flex; gap:12px; align-items:flex-start }
#view.tn .tn-fun .enfun .k{ font:800 18px/1.2 var(--display,system-ui); color:#7A3E00 }
#view.tn .tn-fun .enfun b{ display:block; font:800 22px/1.25 var(--display,system-ui); margin:6px 0; color:var(--tnInk) }
#view.tn .tn-fun .btn{ background:var(--tnA)!important; border-color:var(--tnA)!important; color:#fff!important }
/* this week's focus */
#view.tn .tn-focus{ background:var(--tnSoft) }
#view.tn .tn-focus .e29focus{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important }
#view.tn .tn-focus .e29fh{ background:var(--tnA)!important; color:#fff!important; border-radius:18px!important }
#view.tn .tn-focus .e29fh *{ color:#fff!important }
#view.tn .tn-focus .e29sk{ background:#fff!important; border:2px solid var(--tnB)!important; color:var(--tnInk)!important; border-radius:16px!important }
#view.tn .tn-focus .e29sk.focus{ border-color:var(--tnA)!important; box-shadow:0 0 0 3px var(--tnL2)!important }
/* companion tip */
#view.tn .tn-tip{ background:linear-gradient(160deg,#FFFBEA,var(--tnSoft)); border-color:#F2DE9B }
#view.tn .tn-tip .b29tip{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; min-height:0!important }
/* recent activity + quick practice */
#view.tn .tn-recent .b27recent{ background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important }
#view.tn .tn-recent .b27recent > :first-child{ background:var(--tnA)!important; color:#fff!important; border-radius:14px!important }
#view.tn .tn-recent .b27recent > :first-child *{ color:#fff!important }
#view.tn .tn-acts .b27acts{ display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px }
#view.tn .tn-acts .b27acts > *{ min-height:82px; background:var(--tnL)!important; border:2px solid var(--tnB)!important; border-radius:16px!important; color:var(--tnInk)!important }
#view.tn .tn-acts .b27acts > *:hover{ border-color:var(--tnA)!important }
/* Life: kindness story of the week (LiQ Gives) */
#view.tn .tn-kind{ background:linear-gradient(160deg,#FFF3EE,#fff) ; border-color:#F2C2B2 }
#view.tn .tnkc{ display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--tnInk) }
#view.tn .tnkc .h32camb{ display:grid; place-items:center; width:52px; height:52px; border-radius:14px; background:#FFE9DF; flex:none }
#view.tn .tnkc .lg-htxt{ display:flex; flex-direction:column; min-width:0 }
#view.tn .tnkc b{ font:800 16px/1.2 var(--display,system-ui) }
#view.tn .tnkc small{ font-size:12.5px; color:#4A5568 }
#view.tn .tnkc .lg-hk{ display:none }
#view.tn .tnkc .h32arr{ margin-left:auto; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--tnA); color:#fff; font-weight:800; flex:none }
#view.tn .tnkc .lg-bar{ height:7px; border-radius:99px; background:#F0E2DC; overflow:hidden; margin:4px 0 } #view.tn .tnkc .lg-bar i{ display:block; height:100%; background:linear-gradient(90deg,#E8735A,#F2B544) }

/* ---------- tablet ---------- */
@media (max-width:1100px){
  #view.tn .tngb{ font-size:15.5px; padding:8px 10px; gap:6px } #view.tn .tngi{ font-size:19px }
  #view.tn .tngrid > .tnc{ grid-column:span 6!important }
  #view.tn .tngrid > .tnc.tn-focus{ grid-column:span 12!important }
  #view.tn-en .tngrid > .tnc.tn-recent{ grid-column:span 8!important } #view.tn-en .tngrid > .tnc.tn-acts{ grid-column:span 4!important }
  #view.tn-en .tngrid > .tnc.tn-acts .b27acts{ grid-template-columns:1fr!important } #view.tn-en .tngrid > .tnc.tn-acts .b27acts > *{ min-height:52px }
}
/* ---------- phone: one Menu button opens the groups as a list; cards stack ---------- */
@media (max-width:700px){
  #view.tn .tnnav{ flex-direction:column; gap:8px; padding:8px }
  #view.tn .tnmob{ display:flex; align-items:center; gap:10px; min-height:52px; padding:8px 16px; border-radius:16px; border:2px solid var(--tnA); background:var(--tnA); color:#fff; font:800 17px var(--display,system-ui); cursor:pointer }
  #view.tn .tnmob b{ margin-left:auto; font-weight:700; opacity:.9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
  #view.tn .tnnav > .tng{ display:none }
  #view.tn .tnnav.mopen > .tng{ display:block }
  #view.tn .tnp{ position:static; max-width:none; width:auto; box-shadow:none; margin-top:6px }
  #view.tn .tngrid{ grid-template-columns:1fr; gap:12px }
  #view.tn .tngrid > .tnc{ grid-column:1/-1!important }
  #view.tn .tn-acts .b27acts{ grid-template-columns:repeat(3,minmax(0,1fr)) }
}

/* ---------- refinements (round 2) ---------- */
/* compact progress: label, big number and bar in a short card */
#view.tn .tn-prog .e29prog{ display:grid!important; grid-template-columns:auto 1fr; grid-template-areas:"book pill" "box box" "sub sub"; align-items:center; gap:8px 12px }
#view.tn .tn-prog .e29book{ grid-area:book; font-size:34px!important; margin:0!important; position:static!important }
#view.tn .tn-prog .b27pill{ grid-area:pill; justify-self:start; background:var(--tnA)!important; color:#fff!important; border:0!important; box-shadow:none!important; font-size:17px!important; padding:6px 14px!important; border-radius:999px!important; margin:0!important }
#view.tn .tn-prog .e29pbox{ grid-area:box; background:#fff!important; border:1.5px solid var(--tnB)!important; border-radius:16px!important; padding:8px 14px 12px!important; box-shadow:none!important; margin:0!important; width:auto!important }
#view.tn .tn-prog .e29pct{ font-size:44px!important; line-height:1.05!important; text-align:left!important }
#view.tn .tn-prog .e29bar{ height:12px!important; border-radius:99px!important; background:var(--tnL2)!important }
#view.tn .tn-prog .e29bar i{ background:linear-gradient(90deg,var(--tnA),#F2B544)!important }
#view.tn .tn-prog .b27sub{ grid-area:sub; font-size:14px!important; text-align:left!important }
#view.tn .tn-prog .b27pill, #view.tn .tn-prog .b27pill *{ color:#fff!important }
/* next action card: icon, words and the action side by side; the extra Life family note sits under it */
#view.tn .tn-next .b27gn{ font-size:24px!important }
#view.tn .tn-next .b27gp{ font-size:64px!important }
#view.tn .tn-next .lffam{ display:block!important; background:#fff; border:1.5px dashed var(--tnB); border-radius:14px; padding:10px 14px; font-size:14.5px }
#view.tn .tn-next .lffam p{ margin:.2em 0 }
/* Ridiculous English was hidden on the old home: show it here */
#view.tn .tn-fun .enfun{ display:flex!important }
#view.tn .tn-fun .enfun img{ width:84px!important; height:auto!important; flex:none }
#view.tn .tn-fun .enfun p{ margin:.2em 0 .6em; font-size:15px; line-height:1.45 }
/* speaker button on the board */
#view.tn .tn-wotd .btn.alt{ background:#FFD66B!important; border-color:#FFD66B!important; color:#14244F!important }
/* focus labels wrap instead of being cut */
#view.tn .tn-focus .e29sk, #view.tn .tn-focus .e29sk *{ white-space:normal!important; text-overflow:clip!important; overflow:visible!important }
/* Life: the kindness story gets the room the duplicate quick links had */
#view.tn-life .tn-recent{ grid-column:span 7 } #view.tn-life .tn-kind{ grid-column:span 5 }
/* English round 3: the board spans two rows; Ridiculous English and Mr. Ferenji's tip stack beside it; focus gets the full width */
#view.tn-en .tn-wotd{ grid-column:span 7; grid-row:span 2 }
#view.tn-en .tn-fun, #view.tn-en .tn-tip{ grid-column:span 5 }
#view.tn-en .tn-focus{ grid-column:span 12 }
@media (max-width:1100px){ #view.tn-en .tn-wotd{ grid-row:auto } }

/* ---------- round 4 (Beti, Nov 10): light pink / light blue body; solid colour only for buttons and highlights ---------- */
#view.tn .pg{ background:var(--tnL)!important; border-color:var(--tnB)!important }
#view.tn .tnnav{ background:#fff }
#view.tn .tnc{ background:#fff }
#view.tn .tn-next{ background:linear-gradient(135deg,var(--tnL2),#fff 75%) }
#view.tn .tn-prog, #view.tn .tn-focus{ background:#fff }
/* This Week's Focus: light header with coloured words, not a solid block */
#view.tn .tn-focus .e29fh{ background:var(--tnL2)!important; border:1.5px solid var(--tnB)!important; box-shadow:none!important }
#view.tn .tn-focus .e29fh, #view.tn .tn-focus .e29fh *{ color:var(--tnInk)!important }
#view.tn .tn-focus .e29fh b, #view.tn .tn-focus .e29fh strong, #view.tn .tn-focus .e29fh h3, #view.tn .tn-focus .e29fh > div > :first-child{ color:var(--tnA2)!important }
/* Recent activity: light title row */
#view.tn .tn-recent .b27recent > :first-child{ background:var(--tnL2)!important; border:1.5px solid var(--tnB)!important; box-shadow:none!important }
#view.tn .tn-recent .b27recent > :first-child, #view.tn .tn-recent .b27recent > :first-child *{ color:var(--tnA2)!important }
/* progress label: light badge with coloured text */
#view.tn .tn-prog .b27pill{ background:var(--tnL2)!important; border:1.5px solid var(--tnB)!important }
#view.tn .tn-prog .b27pill, #view.tn .tn-prog .b27pill *{ color:var(--tnA2)!important }
/* tip labels: light badge */
#view.tn .tn-tip .b29tipt > b{ background:var(--tnL2)!important; color:var(--tnA2)!important; border:1.5px solid var(--tnB)!important }
/* round 4 fix: the special cards keep their own surfaces (the white-card rule must not reach them) */
#view.tn .tnc.tn-wotd{ background:#2F4A3A }
#view.tn .tnc.tn-fun{ background:linear-gradient(160deg,#FFF6D8,#FFF1F6) }
#view.tn .tnc.tn-tip{ background:linear-gradient(160deg,#FFFBEA,#fff) }
#view.tn .tnc.tn-kind{ background:linear-gradient(160deg,#FFF3EE,#fff) }
#view.tn .tnc.tn-next{ background:linear-gradient(135deg,var(--tnL2),#fff 75%) }
#view.tn .tnc.tn-prog{ justify-content:center }
/* tablet: keep Ridiculous English + tip stacked beside the Word of the Day board */
@media (max-width:1100px) and (min-width:701px){ #view.tn-en .tnc.tn-wotd{grid-row:span 2} #view.tn-en .tnc.tn-fun,#view.tn-en .tnc.tn-tip{align-self:stretch} }
@media (max-width:1100px) and (min-width:701px){ #view.tn-en .tnc.tn-focus{grid-column:span 12} #view.tn-en .tnc.tn-acts{grid-column:span 4} #view.tn-en .tnc.tn-recent{grid-column:span 8} }

#view.tn .b29tip.tnstrip .b29tipt p{ margin:0!important }
/* the Investment / Life dashboards are grids of their own: the home card grid always takes their full width */
#view.tnhome .b27dash{ display:block!important }
#view.tnhome .b27dash > .tngrid{ grid-column:1/-1; width:100% }
/* Investment tablet: balance the bottom row like English */
@media (max-width:1100px) and (min-width:701px){ #view.tn-inv .tngrid > .tnc.tn-recent{ grid-column:span 7!important } #view.tn-inv .tngrid > .tnc.tn-acts{ grid-column:span 5!important } }
/* phone: one column always wins over the tablet spans */
@media (max-width:700px){ #view.tn .tngrid{ grid-template-columns:minmax(0,1fr)!important } #view.tn .tngrid > .tnc.tnc.tnc{ grid-column:1/-1!important; grid-row:auto!important } }
@media (max-width:700px){ #view.tn .tngrid > .tnc.tn-acts .b27acts{ grid-template-columns:repeat(3,minmax(0,1fr))!important } }

/* ===== test31: the same top menu on Star Bank, MathLiQ Lab, My Profile, Hall of Fame and the Parent Desk ===== */
/* light themes: solid colour only for highlights and buttons (coffee-brown areas become light brown) */
#view.tn-bank{ --tnA:#6A3FB5; --tnA2:#55309A; --tnL:#F7F2FF; --tnL2:#ECE3FF; --tnB:#D2C2F2; --tnInk:#2B1B4A; --tnSoft:#FBF8FF }
#view.tn-lab{ --tnA:#8A5A3B; --tnA2:#70452F; --tnL:#FBF4EC; --tnL2:#F3E4D3; --tnB:#E2C9AE; --tnInk:#3E2516; --tnSoft:#FEFAF5 }
#view.tn-prof{ --tnA:#8A5A3B; --tnA2:#70452F; --tnL:#FBF4EC; --tnL2:#F3E4D3; --tnB:#E2C9AE; --tnInk:#3E2516; --tnSoft:#FEFAF5 }
#view.tn-fame{ --tnA:#A86E12; --tnA2:#8A5A0E; --tnL:#FFF8E8; --tnL2:#FBEBC6; --tnB:#EED39A; --tnInk:#3E2A08; --tnSoft:#FFFCF3 }
#view.tn-parent{ --tnA:#2E7D4F; --tnA2:#22643E; --tnL:#F1F9F3; --tnL2:#DDF1E3; --tnB:#B5DEC2; --tnInk:#14361F; --tnSoft:#F8FCF9 }
/* the area's page body and panel become light; dark coffee / purple frames go */
#view.tn:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) > .pg{ background:var(--tnL)!important; border-color:var(--tnB)!important }
#view.tn:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) .tnb27 > .b27main{ background:#fff!important; border:2px solid var(--tnB)!important; border-radius:22px!important; box-shadow:none!important }
#view.tnhome:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) .tnb27 > .b27main{ background:transparent!important; border:0!important }
/* generic home grid: blocks side by side in two columns, wide blocks across */
#view.tn .tngrid > .tnc.tn-part{ grid-column:span 6 }
#view.tn .tngrid > .tnc.tn-tip{ grid-column:span 6 }
#view.tn .tngrid > .tnc.tn-explore{ grid-column:1/-1 }
#view.tn .tngrid > .tnc.tn-part:has(> .b27feat, > .e29focus, > .p25-worlds, > .f32ov, > .s32ph, > .p25-avrow){ grid-column:1/-1 }
#view.tn .tnex{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:10px }
#view.tn .tnext{ display:flex; align-items:center; gap:10px; min-height:58px; padding:8px 14px; border-radius:16px; border:2px solid var(--tnB); background:#fff; color:var(--tnInk);
  font:800 16px/1.2 'Baloo 2',Nunito,system-ui,sans-serif; text-align:left; cursor:pointer; box-shadow:0 3px 0 var(--tnB) }
#view.tn .tnext:hover{ border-color:var(--tnA); background:var(--tnSoft) } #view.tn .tnext:focus-visible{ outline:3px solid var(--tnA); outline-offset:2px }
#view.tn .tnext .tnki{ font-size:24px }
/* direct-link bar buttons (a group that is one page) */
#view.tn .tngb.tnlink{ cursor:pointer }
@media (max-width:1100px){ #view.tn .tngrid > .tnc.tn-part, #view.tn .tngrid > .tnc.tn-tip{ grid-column:span 6!important } }
@media (max-width:700px){ #view.tn .tngrid > .tnc.tn-part, #view.tn .tngrid > .tnc.tn-tip, #view.tn .tngrid > .tnc.tn-explore{ grid-column:1/-1!important } #view.tn .tnex{ grid-template-columns:1fr 1fr } }
/* five or more groups (Parent Desk) wrap onto two rows of bar buttons on laptops rather than squeezing */
#view.tn .tnnav{ flex-wrap:wrap } #view.tn .tng{ flex:1 1 150px }
#view.tn:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) .tngrid{ align-items:start }
@media (max-width:700px){ #view.tn .tnex{ grid-template-columns:repeat(2,minmax(0,1fr))!important } #view.tn .tnext{ min-width:0; font-size:14px; padding:6px 8px; gap:6px; overflow-wrap:anywhere } #view.tn .tnext .tnki{ font-size:18px } }
#view.tn .tnmob{ min-width:0; max-width:100% } #view.tn .tnmob b{ min-width:0; flex:1 1 auto; text-align:right }
#view.tn .tnc .p25-sum{ display:grid!important; grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important; gap:8px }
#view.tn .tnc .p25-sum > *{ min-width:0 }
/* ===== Design Standard v1.0 (Nov 11): Row A/B two columns, featured sections, tip and Explore full width ===== */
#view.tn:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) .tngrid > .tnc.tn-tip{ grid-column:1/-1!important }
#view.tn .tngrid > .tnc:is(.tnx-b27feat,.tnx-e29focus,.tnx-s32worlds,.tnx-p25-worlds,.tnx-f32ov){ grid-column:1/-1!important }
#view.tn-parent .tngrid > .tnc.tn-part > .s32card{ background:transparent!important; border:0!important; box-shadow:none!important; margin:0!important }
#view.tn-parent .tngrid{ align-items:stretch }

/* ---------- test44: Golden Grid Law — tip beside a Coming Soon slot; numbered slot row (Lab #01–05 · Fame #06–10 · Profile #11–15 · Bank #21–25) ---------- */
#view.tn:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame) .tngrid > .tnc.tn-tip{ grid-column:span 6!important }
#view.tn .tngrid > .tnc.tn-soon1{ grid-column:span 6; display:flex }
#view.tn .tngrid > .tnc.tn-soon{ grid-column:1/-1 }
.tnsoonrow{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px }
.tnsoon{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:118px; padding:16px 10px 12px; border-radius:18px; border:2px dashed rgba(60,40,10,.22); text-align:center; color:#3A2E2A }
.tnsoon.big{ flex:1; min-height:140px }
.tnsoon b{ font:800 18px/1.2 'Baloo 2',Nunito,sans-serif } .tnsoon small{ font-size:13px; color:#5E5444 } .tnsoon-i{ font-size:26px }
.tnsoon-n{ position:absolute; top:8px; left:10px; font:800 12px/1 Nunito,sans-serif; letter-spacing:.04em; background:#fff; border-radius:999px; padding:4px 8px; box-shadow:0 1px 3px rgba(0,0,0,.12) }
.tnsoonrow > .tnsoon:nth-child(4n+1), .tnsoon.big{ background:linear-gradient(160deg,#FFF4D1,#FFE9A6) }
.tnsoonrow > .tnsoon:nth-child(4n+2){ background:linear-gradient(160deg,#FDE7F1,#F9CFE2) }
.tnsoonrow > .tnsoon:nth-child(4n+3){ background:linear-gradient(160deg,#E4F6E8,#C9EBD2) }
.tnsoonrow > .tnsoon:nth-child(4n+4){ background:linear-gradient(160deg,#ECE8FF,#D8D0FB) }
@media (max-width:1100px){ .tnsoonrow{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:700px){ #view.tn .tngrid > .tnc.tn-soon1{ grid-column:1/-1!important } }

/* ---- test45 (Phase 6): Parent Desk 2-layer flyouts + colour-coded groups ---- */
#view.tn-parent .tnp.tnp-l1{ overflow:visible!important; min-width:250px }
#view.tn-parent .tnsub{ position:relative }
#view.tn-parent .tnsubh{ display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:8px 12px; border:0; border-radius:12px; background:none; font:inherit; font-weight:800; color:var(--tnInk,#2A2350); cursor:pointer; text-align:left }
#view.tn-parent .tnsubh i{ margin-left:auto; font-style:normal; font-size:18px; opacity:.7 }
#view.tn-parent .tnsub.sopen > .tnsubh, #view.tn-parent .tnsubh:hover{ background:var(--tnL,#F3EEFC) }
#view.tn-parent .tnsub.on > .tnsubh{ color:var(--tnA2,#4A2F86) }
#view.tn-parent .tnp2{ display:none; position:absolute; left:calc(100% + 6px); top:-6px; min-width:240px; z-index:5; background:#fff; border:2px solid var(--tnB,#DCD2FA); border-radius:16px; padding:8px; box-shadow:0 12px 28px rgba(30,20,60,.18) }
#view.tn-parent .tnsub.sopen > .tnp2{ display:flex; flex-direction:column; gap:2px }
#view.tn-parent .tng-reports .tnsubh{ border-left:4px solid #2F6BDE } #view.tn-parent .tng-rewards .tnsubh{ border-left:4px solid #E0A100 }
#view.tn-parent .tng-worlds .tnsubh{ border-left:4px solid #2E8B57 }
#view.tn-parent .tng:last-child .tnp2, #view.tn-parent .tng:nth-last-child(2) .tnp2{ left:auto; right:calc(100% + 6px) }   /* near the right edge the flyout opens to the left */
@media (max-width:700px){ #view.tn-parent .tnp2{ position:static; box-shadow:none; border:0; padding:0 0 0 18px; min-width:0 } }
/* colour-coded, titled card groups on the Parent Desk home */
#view.tn-parent .tngrid > .tnc.tnx-s32kids{ border-left:6px solid #2F6BDE!important }
#view.tn-parent .tngrid > .tnc.tnx-s32week{ border-left:6px solid #2E8B57!important }
#view.tn-parent .tngrid > .tnc.tnx-s32worlds{ border-left:6px solid #7C3AED!important }
#view.tn-parent .tngrid > .tnc.tnx-s32next{ border-left:6px solid #E0A100!important }
#view.tn-parent .tngrid > .tnc.tnx-s32recent{ border-left:6px solid #D7266D!important }
/* test47: a bar with five or more groups (MathLiQ Lab with LiQ Earn) keeps every name readable: smaller type and padding,
   and on narrower screens the names may wrap onto two lines instead of being cut off */
@media (min-width:761px){
  #view.tn .tnnav:has(> .tng:nth-of-type(5)) .tngb{ font-size:15px; padding:6px 8px; gap:6px }
  #view.tn .tnnav:has(> .tng:nth-of-type(5)) .tngi{ font-size:18px }
  #view.tn .tnnav:has(> .tng:nth-of-type(5)) .tngl{ white-space:normal; overflow:visible; text-overflow:clip; line-height:1.15; text-align:center }
}
/* test53: on phones the companion tip also stacks full width. Its "span 6" rule (line above) made the browser add empty
   columns, so every other card on My Profile, Star Bank and the Lab stopped ~50px short of the right edge. */
@media (max-width:700px){ html body #view.tn.tn .tngrid.tngrid > .tnc.tn-tip.tn-tip{ grid-column:1/-1!important } }

/* ==== liq-worlds33.css ==== */
/* test31 (Nov 11): every page grows with its content (no inner scroll box), no footer pictures, chat button in the corner;
   English / Life / Investment pages from the Nov 11 references. Owner: liq-worlds33.js */

html body #view.stack.stack.stack.stack > img.appsav.appsav.appsav, html body #view.stack.stack.stack.stack > img.appsav.appsav.appsav.ftart, html body #view > img.appsav.appsav.appsav.appsav{ display:none!important }
@media (min-width:901px){
  html body #view.stack.stack.stack .b27.b27{ max-height:none!important; height:auto!important }
  html body #view.stack.stack.stack .b27.b27 > .b27main{ height:auto!important; overflow:visible!important; align-self:start!important }
  html body #view.stack.stack.stack .b27.b27 > .b27main > :not(.b27title){ overflow:visible!important; flex:none!important; min-height:0!important; max-height:none!important; height:auto!important }
  html body #view.lmH.lmH.stack.stack .b27.b27 > .b27main{ overflow:visible!important }
  
  
}
html body #view > .pg{ height:auto!important; max-height:none!important; margin-bottom:12px!important }

/* every companion's chat button: bottom-right corner, sitting on the account bar, lined up with the page edge */
html body .bclauncher{ bottom:6px!important; height:48px!important; font-size:16px!important }
html body .bclauncher .av{ width:56px!important; height:56px!important } html body .bclauncher .av img{ height:64px!important }
@media (max-width:700px){ html body .bclauncher{ right:8px!important; bottom:4px!important; height:44px!important; padding-left:52px!important } html body .bclauncher .lt{ font-size:14px } html body .bclauncher .av{ width:50px!important; height:50px!important } }

body.wpv{ --cB:#EEF5FF; --cBb:#C6DAF7; --cG:#EFF9EC; --cGb:#BFE3B3; --cY:#FFF7E0; --cYb:#F1D88C; --cP:#FFF1F6; --cPb:#F5C2D6; --cL:#F5F1FF; --cLb:#D7CCF5 }
/* banner: the new banner picture, uncut, rounded, no extra frame or overlay text */
body.wpv:is([data-wpv=en],[data-wpv=life],[data-wpv=inv]) #view > .pg > .phero{ background:none!important; border:0!important; box-shadow:none!important; padding:0!important; min-height:0!important; height:auto!important; overflow:visible!important }
body.wpv:is([data-wpv=en],[data-wpv=life],[data-wpv=inv]) #view > .pg > .phero > :not(img.w25bimg){ display:none!important }
body.wpv:is([data-wpv=en],[data-wpv=life],[data-wpv=inv]) #view > .pg > .phero img.w25bimg{ position:static!important; display:block!important; width:100%!important; height:auto!important; max-height:none!important; object-fit:contain!important; border-radius:22px!important; box-shadow:0 6px 18px rgba(30,60,110,.12)!important; transform:none!important }
/* page body: one light world colour, no dashed double frame */
body.wpv #view > .pg{ border:0!important; box-shadow:none!important; outline:0!important }
body.wpv #view > .pg::before, body.wpv #view > .pg::after{ display:none!important }

/* cards: each its own light colour, solid colour only on buttons */
body.wpv #view .tnc{ border-width:2px!important }
body.wpv #view .tnc.tn-next, body.wpv[data-wpv=life] #view .tnc.tn-recent, body.wpv[data-wpv=inv] #view .tnc.tn-recent, body.wpv[data-wpv=en] #view .tnc.tn-prog{ background:var(--cB)!important; border-color:var(--cBb)!important }
body.wpv[data-wpv=en] #view .tnc.tn-next, body.wpv[data-wpv=inv] #view .tnc.tn-next{ background:var(--cY)!important; border-color:var(--cYb)!important }
body.wpv[data-wpv=life] #view .tnc.tn-prog, body.wpv[data-wpv=inv] #view .tnc.tn-prog, body.wpv #view .tnc.tn-focus{ background:var(--cG)!important; border-color:var(--cGb)!important }
body.wpv #view .tnc.tn-tip{ background:var(--cY)!important; border-color:var(--cYb)!important }
body.wpv[data-wpv=en] #view .tnc.tn-tip, body.wpv #view .tnc.tn-kind, body.wpv[data-wpv=en] #view .tnc.tn-recent{ background:var(--cP)!important; border-color:var(--cPb)!important }
body.wpv #view .tnc.tn-acts{ background:var(--cL)!important; border-color:var(--cLb)!important }
body.wpv #view .tnc > *:not(.tnh){ background-color:transparent!important; border-color:transparent!important; box-shadow:none!important }
body.wpv #view .tnc .e29fh{ background:rgba(255,255,255,.6)!important }
body.wpv #view .tnc .b27fb > *{ background:#fff!important }
body.wpv #view .tnc.tn-acts .b27acts > *{ background:#fff!important; border:2px solid var(--cLb)!important }
body.wpv #view .tnc .b27recent .b27rh, body.wpv #view .tnc .b27recent > :first-child{ background:rgba(255,255,255,.55)!important }

/* English: Word of the Day as a light card (as in the reference), Ridiculous English not on the home page */
body.wpv[data-wpv=en] #view .tnc.tn-wotd{ background:var(--cY)!important; border:2px solid var(--cYb)!important; color:inherit!important; box-shadow:0 6px 18px rgba(20,36,79,.06)!important }
body.wpv[data-wpv=en] #view .tnc.tn-wotd .wotd, body.wpv[data-wpv=en] #view .tnc.tn-wotd .wotd *{ color:#2A1631!important }
body.wpv[data-wpv=en] #view .tnc.tn-wotd .wotdk{ color:#C2185B!important }
body.wpv[data-wpv=en] #view .tnc.tn-wotd .tnbtn{ background:#fff!important; color:#2A1631!important; border:2px solid var(--cYb)!important }
body.wpv[data-wpv=en] #view .tnc.tn-fun{ display:none!important }
body.wpv[data-wpv=en] #view .tngrid{ grid-template-areas:none!important }
@media (min-width:1101px){
  body.wpv[data-wpv=en] #view .tnc.tn-next{ grid-column:1/span 7!important; grid-row:1!important } body.wpv[data-wpv=en] #view .tnc.tn-prog{ grid-column:8/span 5!important; grid-row:1!important }
  body.wpv[data-wpv=en] #view .tnc.tn-wotd{ grid-column:1/span 8!important; grid-row:2!important } body.wpv[data-wpv=en] #view .tnc.tn-tip{ grid-column:9/span 4!important; grid-row:2!important }
  body.wpv[data-wpv=en] #view .tnc.tn-focus{ grid-column:1/span 8!important; grid-row:3!important } body.wpv[data-wpv=en] #view .tnc.tn-acts{ grid-column:9/span 4!important; grid-row:3/span 2!important; align-self:start }
  body.wpv[data-wpv=en] #view .tnc.tn-recent{ grid-column:1/span 8!important; grid-row:4!important }
}

/* companion tips on the home pages: bigger picture, readable words */
body.wpv #view .tn-tip .b29tip{ display:flex!important; align-items:center!important; gap:14px!important; text-align:left!important; background:none!important; border:0!important }
body.wpv #view .tn-tip .b29tip img{ height:110px!important; width:auto!important; max-height:110px!important; position:static!important; flex:none }
body.wpv #view .tn-tip .b29tipt{ text-align:left!important }
body.wpv #view .tn-tip .b29tipt b{ font:800 19px/1.2 'Baloo 2',Nunito,system-ui,sans-serif!important; padding:3px 14px!important; border-radius:999px!important; background:#fff!important; color:var(--tnA)!important; display:inline-block; margin-bottom:6px }
body.wpv #view .tn-tip .b29tipt p{ font:600 17px/1.4 Nunito,system-ui,sans-serif!important; color:#2A2410!important }

/* inner pages: title trail + light title strip (replaces the solid title bar) */
body.wpv #view .b27title.wgone, body.wpv #view .wgone{ display:none!important }
body.wpv #view .wtrail{ display:flex; align-items:center; gap:8px; margin:4px 6px 8px; font:700 15px/1 Nunito,system-ui,sans-serif; color:#3A4560 }
body.wpv #view .wtrail i{ font-style:normal; opacity:.6 } body.wpv #view .wtrail b{ color:var(--tnInk) }
body.wpv #view .wstrip{ display:flex; align-items:center; gap:16px; margin:0 0 14px; padding:12px 20px; border-radius:20px; background:linear-gradient(90deg,#fff 0%,var(--tnL2) 70%,var(--tnL2) 100%); border:2px solid var(--tnB); box-shadow:0 4px 12px rgba(20,36,79,.05) }
body.wpv #view .wstrip .wsi{ font-size:40px; line-height:1 }
body.wpv #view .wstrip h2{ margin:0; font:800 32px/1.1 'Baloo 2',Nunito,system-ui,sans-serif; color:var(--tnInk); white-space:nowrap }
body.wpv #view .wstrip .wsd{ flex:1; padding-left:16px; border-left:2px solid var(--tnB); font:600 16px/1.35 Nunito,system-ui,sans-serif; color:#3A4560 }
body.wpv #view .wstrip .wsart{ font-size:34px; opacity:.9; white-space:nowrap }
@media (max-width:700px){ body.wpv #view .wstrip{ flex-wrap:wrap; gap:6px 12px; padding:10px 14px } body.wpv #view .wstrip h2{ font-size:24px; white-space:normal } body.wpv #view .wstrip .wsd{ flex-basis:100%; border-left:0; padding-left:0; font-size:15px } body.wpv #view .wstrip .wsart{ display:none } }

/* one companion card at the bottom of the content: picture left, message + tip right */
body.wpv #view .wcomp{ position:relative; display:flex; align-items:center; gap:18px; margin:16px 0 4px; padding:14px 56px 14px 18px; border-radius:22px; background:var(--cY); border:2px solid var(--cYb); box-shadow:0 6px 16px rgba(120,90,10,.08) }
body.wpv #view .wcomp .wcimg{ height:120px; width:auto; flex:none; object-fit:contain }
body.wpv #view .wcomp .wck{ display:inline-block; font:800 19px/1.2 'Baloo 2',Nunito,system-ui,sans-serif; padding:3px 14px; border-radius:999px; background:var(--tnA); color:#fff; margin-bottom:6px }
body.wpv #view .wcomp h3{ margin:2px 0 4px; font:800 20px/1.25 'Baloo 2',Nunito,system-ui,sans-serif; color:#2A2410 }
body.wpv #view .wcomp p{ margin:2px 0; font:600 16px/1.45 Nunito,system-ui,sans-serif; color:#2E2A1A }
body.wpv #view .wcomp .wctip{ margin-top:6px; padding-top:6px; border-top:1.5px dashed var(--cYb) }
body.wpv #view .wcomp .sndb{ position:absolute; top:10px; right:10px }
@media (max-width:560px){ body.wpv #view .wcomp{ flex-direction:column; align-items:flex-start; padding:14px } body.wpv #view .wcomp .wcimg{ height:96px } }

/* footer buttons: real buttons styled like the reference footer (light green bar) */
body.wpv #view .wfoot{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 4px; margin:16px 0 6px; padding:8px 14px; border-radius:22px;
  background:linear-gradient(180deg,#F7FDF2,#E4F5D9); border:2px solid #BFE3A9; box-shadow:0 4px 12px rgba(40,110,30,.08) }
body.wpv #view .wfoot .wbrand{ display:flex; align-items:center; gap:6px; padding:0 12px 0 4px; font:800 26px/1 'Baloo 2',Nunito,system-ui,sans-serif; color:#13285E; white-space:nowrap }
body.wpv #view .wfoot .wbrand i{ font-style:normal; font-size:26px } body.wpv #view .wfoot .wbrand em{ font-style:normal; color:#F08A1C }
body.wpv #view .wfoot .wfb{ display:flex; align-items:center; gap:8px; min-height:46px; padding:6px 16px; border:0; border-left:2px solid #CFE7C1; background:transparent; color:#1D2B1A;
  font:800 16px/1.15 'Baloo 2',Nunito,system-ui,sans-serif; cursor:pointer; border-radius:0 }
body.wpv #view .wfoot .wfb span{ font-size:20px }
body.wpv #view .wfoot .wfb:hover{ background:rgba(255,255,255,.7); border-radius:12px }
body.wpv #view .wfoot .wfb:focus-visible{ outline:3px solid #2E8A3C; outline-offset:2px; border-radius:12px }
@media (min-width:1101px){ body.wpv #view .wfoot{ justify-content:space-between } }
/* footer: always ONE row, brand first; fewer buttons on small screens instead of a second row */
body.wpv #view .wfoot{ flex-wrap:nowrap!important } body.wpv #view .wfoot .wfb{ flex:1 1 0; min-width:0; justify-content:center; white-space:nowrap }
@media (max-width:1100px){ body.wpv #view .wfoot .wfb:nth-of-type(n+4){ display:none } body.wpv #view .wfoot .wbrand{ font-size:22px } }
@media (max-width:700px){ body.wpv #view .wfoot{ padding:6px 8px } body.wpv #view .wfoot .wfb:nth-of-type(n+3){ display:none } body.wpv #view .wfoot .wfb span{ display:none }
  body.wpv #view .wfoot .wfb{ white-space:normal; font-size:14px; line-height:1.1; padding:4px 6px; text-align:center } body.wpv #view .wfoot .wbrand{ font-size:19px; padding:0 6px 0 2px } body.wpv #view .wfoot .wbrand i{ font-size:19px } }
@media (max-width:370px){ body.wpv #view .wfoot .wbrand i{ display:none } }
body.wpv #view.tn .b29tip.tnstrip.wgone, body.wpv #view.stack .wgone.wgone{ display:none!important }

/* card titles take the card's own colour */
body.wpv #view .tnc[class*=wv] .e29fh b, body.wpv #view .tnc[class*=wv] .tnh, body.wpv #view .tnc[class*=wv] .b27recent h3{ color:var(--wvT)!important }
/* English: Ridiculous English fills the space under Quick practice */
body.wpv[data-wpv=en] #view .tnc.tn-fun{ display:flex!important }
@media (min-width:1101px){ body.wpv[data-wpv=en] #view .tnc.tn-acts{ grid-row:3!important } body.wpv[data-wpv=en] #view .tnc.tn-fun{ grid-column:9/span 4!important; grid-row:4!important } }
body.wpv[data-wpv=en] #view .tnc.tn-fun .enfun{ background:transparent!important; border:0!important; box-shadow:none!important }

/* reference card style (Nov 11): light colour fill, coloured border, soft wave at the bottom */
html body #view .wvB.wvB.wvB.wvB.wvB.wvB{ background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2034%20C%2060%2014%20120%2014%20190%2032%20S%20320%2052%20400%2026%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23CFE2FB%27/%3E%3Cpath%20d%3D%27M0%2046%20C%2080%2030%20150%2034%20220%2046%20S%20340%2058%20400%2042%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23BCD6F8%27/%3E%3C/svg%3E") left bottom/100% 46px no-repeat, linear-gradient(180deg,#F3F8FF,#E1EEFF)!important; border:2px solid #9CC3F2!important; border-radius:22px!important; --wvT:#1B4FA3; box-shadow:0 6px 16px rgba(40,50,90,.08)!important; padding-bottom:22px!important }
html body #view .wvG.wvG.wvG.wvG.wvG.wvG{ background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2034%20C%2060%2014%20120%2014%20190%2032%20S%20320%2052%20400%2026%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23D3EDC4%27/%3E%3Cpath%20d%3D%27M0%2046%20C%2080%2030%20150%2034%20220%2046%20S%20340%2058%20400%2042%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23C0E5AC%27/%3E%3C/svg%3E") left bottom/100% 46px no-repeat, linear-gradient(180deg,#F4FBEF,#E2F4D6)!important; border:2px solid #9FD488!important; border-radius:22px!important; --wvT:#2E7D23; box-shadow:0 6px 16px rgba(40,50,90,.08)!important; padding-bottom:22px!important }
html body #view .wvY.wvY.wvY.wvY.wvY.wvY{ background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2034%20C%2060%2014%20120%2014%20190%2032%20S%20320%2052%20400%2026%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23FCE7A6%27/%3E%3Cpath%20d%3D%27M0%2046%20C%2080%2030%20150%2034%20220%2046%20S%20340%2058%20400%2042%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23F8DA82%27/%3E%3C/svg%3E") left bottom/100% 46px no-repeat, linear-gradient(180deg,#FFFBEA,#FFF0C2)!important; border:2px solid #F3CF63!important; border-radius:22px!important; --wvT:#9A5B00; box-shadow:0 6px 16px rgba(40,50,90,.08)!important; padding-bottom:22px!important }
html body #view .wvP.wvP.wvP.wvP.wvP.wvP{ background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2034%20C%2060%2014%20120%2014%20190%2032%20S%20320%2052%20400%2026%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23F9D2E3%27/%3E%3Cpath%20d%3D%27M0%2046%20C%2080%2030%20150%2034%20220%2046%20S%20340%2058%20400%2042%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23F5BED6%27/%3E%3C/svg%3E") left bottom/100% 46px no-repeat, linear-gradient(180deg,#FFF4F8,#FDE3EE)!important; border:2px solid #F1A8C7!important; border-radius:22px!important; --wvT:#C2185B; box-shadow:0 6px 16px rgba(40,50,90,.08)!important; padding-bottom:22px!important }
html body #view .wvL.wvL.wvL.wvL.wvL.wvL{ background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2034%20C%2060%2014%20120%2014%20190%2032%20S%20320%2052%20400%2026%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23E1D5FB%27/%3E%3Cpath%20d%3D%27M0%2046%20C%2080%2030%20150%2034%20220%2046%20S%20340%2058%20400%2042%20L400%2060%20L0%2060%20Z%27%20fill%3D%27%23D2C2F7%27/%3E%3C/svg%3E") left bottom/100% 46px no-repeat, linear-gradient(180deg,#F8F4FF,#ECE3FF)!important; border:2px solid #C3B0F2!important; border-radius:22px!important; --wvT:#5B3FB5; box-shadow:0 6px 16px rgba(40,50,90,.08)!important; padding-bottom:22px!important }
/* footer small pages (pop-up page) */
.w33pg{ position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:16px; background:rgba(20,30,50,.45) }
.w33pgc{ position:relative; width:min(620px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:22px 24px 18px; border-radius:24px; background:linear-gradient(180deg,#FFFFFF,#F3FAEE); border:2px solid #BFE3A9; box-shadow:0 24px 60px rgba(0,0,0,.25) }
.w33-en .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#FFF0F6); border-color:#F1A8C7 } .w33-life .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#EEF5FF); border-color:#9CC3F2 }
.w33pgc h2{ display:flex; align-items:center; gap:10px; margin:0 40px 12px 0; font:800 26px/1.15 'Baloo 2',Nunito,system-ui,sans-serif; color:#6B3F26 }
.w33pgb{ font:600 17px/1.55 Nunito,system-ui,sans-serif; color:#24263A } .w33pgb ul{ margin:6px 0; padding-left:22px } .w33pgb li{ margin:6px 0 }
.w33x{ position:absolute; top:12px; right:12px; width:40px; height:40px; border-radius:50%; border:2px solid #D9D9E4; background:#fff; font-size:18px; cursor:pointer }
.w33ok{ display:block; margin:14px 0 0 auto; min-width:110px; min-height:44px; border:0; border-radius:14px; background:#2E8A3C; color:#fff; font:800 17px 'Baloo 2',Nunito,system-ui,sans-serif; cursor:pointer }
.w33-en .w33ok{ background:#D6286E } .w33-life .w33ok{ background:#1F63E0 }
.w33x:focus-visible,.w33ok:focus-visible{ outline:3px solid #2F6FE0; outline-offset:2px }

/* test31: Star Bank, Lab, Profile, Hall of Fame, Parent Desk — dark blocks become light (solid colour only for highlights) */
body.wpv #view:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) :is(.b27bal,.e29prog,.w30prog,.b27feat,.e29focus,.f32next,.b29fh){
  background:linear-gradient(180deg,#FFFFFF,var(--tnL2))!important; border:2px solid var(--tnB)!important; color:var(--tnInk)!important; box-shadow:none!important }
body.wpv #view:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) :is(.b27bal,.e29prog,.w30prog,.b27feat,.e29focus,.f32next,.b29fh) :is(h2,h3,h4,p,b,small,span,div,.k,.mini){ color:var(--tnInk)!important }
body.wpv #view:is(.tn-bank,.tn-lab,.tn-prof,.tn-fame,.tn-parent) .e29fh{ background:var(--tnL2)!important; border:1.5px solid var(--tnB)!important }
/* card titles readable on the light cards (headers that were white on dark) */
body.wpv #view .tnc .b27recent > :first-child, body.wpv #view .tnc .b27recent > :first-child *{ color:var(--tnInk)!important }
body.wpv #view .tnc .b27recent > :first-child a{ color:var(--tnA)!important }
/* coffee-brown titles and highlight pills on the light-brown pages */
body.wpv #view:is(.tn-lab,.tn-prof) .tn-tip .b29tipt b{ background:#70452F!important; color:#FFF4E2!important }

/* Parent Desk: six groups — labels may wrap rather than being cut */
#view.tn-parent .tngb .tngl{ white-space:normal!important; overflow:visible!important; text-overflow:clip!important; font-size:15px; line-height:1.1 }

/* ==== liq-home33.css ==== */
/* test31 (Nov 11): student home restyle — see liq-home33.js */
#view.lmH{ --myY:#FFF6D6; --myY2:#FDE9A6; --myYB:#F2CF6B; --myInk:#3A2A05 }

/* banner: same picture, uncut, in a rounded light-yellow frame like the reference */
body.hpv #bigBanner{ padding:6px!important; background:linear-gradient(180deg,#FFF8DC,#FCE7A4)!important; border:2px solid #F2CF6B!important; border-radius:26px!important; box-shadow:0 6px 18px rgba(160,120,20,.14)!important; overflow:hidden }
body.hpv #bigBanner img.banner{ border-radius:20px!important; display:block; width:100%!important; height:auto!important; object-fit:contain!important }

/* the home box: light blue like the reference */
body.hpv .h32home{ background:#FFF8DC!important; border-color:#F2CF6B!important }

/* notebook + Message Board: taller, same height, proportions kept */
body.hpv .h32home{ grid-template-rows:auto!important }
@media (min-width:1101px){
  body.hpv .h32nbcell, body.hpv .h32boardcell{ min-height:430px }
}
body.hpv .h32nbcell > .dash, body.hpv .h32boardcell > .dash{ flex:1; display:flex }
body.hpv .h32nbcell .nb, body.hpv .h32boardcell .mboard{ flex:1 }
/* the Message Board in a warm gold frame (cork inside stays as it is) */
body.hpv .h32boardcell .mboard{ border:6px solid #E5B84C!important; border-radius:22px!important; box-shadow:0 6px 16px rgba(150,110,20,.18)!important }

/* each card its own light colour (solid colour only on buttons) */
body.hpv .h32tipcell .b29tip{ background:linear-gradient(180deg,#FFF8DC,#FDEDB3)!important; border:2px solid #F2CF6B!important; border-radius:22px!important }
body.hpv .h32weekcell .h24-week{ background:linear-gradient(180deg,#FFF3F7,#FDE1EB)!important; border:2px solid #F3BACD!important; border-radius:22px!important }
body.hpv .h32winscell .winsp{ background:linear-gradient(180deg,#F2FBEF,#DFF3D8)!important; border:2px solid #B5DEA6!important; border-radius:22px!important }
body.hpv .h32todaycell .td3{ background:linear-gradient(180deg,#F3F8FF,#E2EEFF)!important; border:2px solid #B9D3F5!important; border-radius:22px!important }
body.hpv .h32give{ background:linear-gradient(180deg,#F7F2FF,#EAE0FD)!important; border:2px solid #CDBDF2!important; border-radius:22px!important }
body.hpv .h32progcell .unitp{ background:linear-gradient(180deg,#F2FBEF,#E1F4DA)!important; border:2px solid #B5DEA6!important; border-radius:22px!important }

/* card titles: bigger and darker so they read at every size */
body.hpv .h32weekcell .k, body.hpv .h32winscell .k{ font:800 19px/1.2 'Baloo 2',Nunito,system-ui,sans-serif!important; letter-spacing:0!important; text-transform:none!important; color:#3A2440!important }
body.hpv .h32weekcell .k{ color:#B0204F!important } body.hpv .h32winscell .k{ color:#1F6B2A!important }
body.hpv .h32weekcell .mini{ font-size:15px!important; color:#4A3046!important }
body.hpv .h32winscell .winrow{ font-size:16px!important }

/* Bilcho's Tip: readable (bigger picture, bigger words) */
body.hpv .h32tipcell .b29tip{ display:flex!important; align-items:center!important; gap:14px!important; padding:16px 18px!important; text-align:left!important }
body.hpv .h32tipcell .b29tip img{ width:auto!important; height:120px!important; max-height:120px!important; flex:none; position:static!important; margin:0!important }
body.hpv .h32tipcell .b29tipt{ text-align:left!important }
body.hpv .h32tipcell .b29tipt b{ display:inline-block; font:800 20px/1.2 'Baloo 2',Nunito,system-ui,sans-serif!important; background:#FFD84D!important; color:#3A2A05!important; padding:4px 14px!important; border-radius:999px!important; margin-bottom:8px }
body.hpv .h32tipcell .b29tipt p{ font:600 18px/1.4 Nunito,system-ui,sans-serif!important; color:#2E2410!important; margin:0!important }

/* the bottom quick-links strip (light-yellow frame) */
body.hpv .hpstrip{ margin:16px 0 8px; padding:12px; border-radius:26px; background:linear-gradient(180deg,#FFF8DC,#FDEBAF); border:2px solid #F2CF6B; box-shadow:0 6px 16px rgba(160,120,20,.12);
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px }
body.hpv .hpstrip button, body.hpv .hpstrip a{ display:flex; align-items:center; gap:10px; min-height:64px; padding:8px 12px; border-radius:18px; border:2px solid #EED38A; background:#FFFDF4;
  color:#2B2108; font:800 16px/1.15 'Baloo 2',Nunito,system-ui,sans-serif; text-decoration:none; cursor:pointer; box-shadow:0 3px 0 #EED38A; text-align:left }
body.hpv .hpstrip button:hover, body.hpv .hpstrip a:hover{ border-color:#D9A92B; background:#fff }
body.hpv .hpstrip button:focus-visible, body.hpv .hpstrip a:focus-visible{ outline:3px solid #2F6FE0; outline-offset:2px }
body.hpv .hpstrip .hpi{ font-size:26px; flex:none }
body.hpv .hpstrip .hpjoin{ background:linear-gradient(180deg,#EAFBEF,#C9F0D4); border-color:#7FCF96; box-shadow:0 3px 0 #7FCF96 }
body.hpv .hpstrip .hpjoin.off{ opacity:.75 }
@media (max-width:1100px){ body.hpv .hpstrip{ grid-template-columns:repeat(3,minmax(0,1fr)) } }
@media (max-width:560px){ body.hpv .hpstrip{ grid-template-columns:repeat(2,minmax(0,1fr)); padding:8px; gap:8px } body.hpv .hpstrip button, body.hpv .hpstrip a{ font-size:15px; min-height:58px } }

/* no footer picture on the home page */
body.hpv img.ftart{ display:none!important }

/* phones: the tip card keeps a readable size */
@media (max-width:700px){ body.hpv .h32tipcell .b29tip img{ height:96px!important } body.hpv .h32tipcell .b29tipt p{ font-size:17px!important } }
html body.hpv #view.lmH.lmH.stack.stack.stack.stack > img.appsav.appsav.appsav.ftart{ display:none!important }
/* small laptops / landscape tablets: notebook and Message Board stay side by side, same height */
@media (min-width:901px) and (max-width:1100px){
  body.hpv .h32home{ grid-template-columns:repeat(12,minmax(0,1fr))!important; grid-template-areas:"nb nb nb nb nb nb nb board board board board board" "tip tip tip tip week week week week wins wins wins wins" "today today today today today today today today cls cls cls cls" "prog prog prog prog prog prog prog prog prog prog prog prog"!important }
  body.hpv .h32nbcell, body.hpv .h32boardcell{ min-height:400px }
}
/* phones: the unit track keeps its dots apart and slides sideways inside its card */


/* banner options from the Nov 11 references (shorter) */
body.hpv.banA #bigBanner img.banner, body.hpv.banB #bigBanner img.banner{ height:auto!important; max-height:none!important }
body.hpv.banA #bigBanner, body.hpv.banB #bigBanner{ padding:0!important; border:0!important; background:none!important; box-shadow:none!important }
body.hpv.banA #bigBanner img.banner, body.hpv.banB #bigBanner img.banner{ border-radius:22px!important }
/* one big container on the home page: banner + greeting bar + cards + quick links (only the top bar stands alone) */
body.hpv #bigBanner{ background:linear-gradient(180deg,#FFF6D4,#FFF3C8)!important; border:2px solid #EFD27A!important; border-bottom:0!important;
  border-radius:28px 28px 0 0!important; padding:12px 16px 4px!important; box-shadow:none!important }
body.hpv.banA #bigBanner, body.hpv.banB #bigBanner{ background:linear-gradient(180deg,#FFF6D4,#FFF3C8)!important; border:2px solid #EFD27A!important; border-bottom:0!important; padding:12px 16px 4px!important }
body.hpv main.wrap{ background:#FFF3C8!important; border:2px solid #EFD27A!important; border-top:0!important; border-radius:0 0 28px 28px!important;
  padding-bottom:14px!important; margin-bottom:60px!important; box-shadow:0 10px 24px rgba(150,110,20,.10)!important }
body.hpv .h32home{ background:transparent!important; border:0!important; padding:6px 0 0!important }
body.hpv .hpstrip{ background:rgba(255,255,255,.55)!important }
@media (max-width:700px){ body.hpv #bigBanner{ padding:8px 8px 2px!important; border-radius:20px 20px 0 0!important } body.hpv main.wrap{ border-radius:0 0 20px 20px!important } }
body.hpv .hpstrip{ margin-bottom:0!important } body.hpv #view, body.hpv #h32wrap{ padding-bottom:0!important; margin-bottom:0!important } body.hpv main.wrap{ padding-bottom:12px!important }
/* home footer: exactly the world footer style (light green bar, brand, buttons with dividers) */
body.hpv .hpstrip.wfootlike{ display:flex!important; align-items:center; flex-wrap:wrap; gap:6px 4px; padding:8px 14px!important; border-radius:22px!important;
  background:linear-gradient(180deg,#F7FDF2,#E4F5D9)!important; border:2px solid #BFE3A9!important; box-shadow:0 4px 12px rgba(40,110,30,.08)!important; grid-template-columns:none!important }
@media (min-width:1101px){ body.hpv .hpstrip.wfootlike{ justify-content:space-between } }
body.hpv .hpstrip .hpbrand{ display:flex; align-items:baseline; gap:2px; padding:0 10px 0 4px; font:800 26px/1 'Baloo 2',Nunito,system-ui,sans-serif; color:#13285E }
body.hpv .hpstrip .hpbrand span{ font-size:26px; margin-right:6px; align-self:center } body.hpv .hpstrip .hpbrand .liq{ color:#F08A1C }
body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ min-height:46px!important; padding:6px 14px!important; border:0!important; border-left:2px solid #CFE7C1!important; border-radius:0!important;
  background:transparent!important; box-shadow:none!important; font:800 16px/1.15 'Baloo 2',Nunito,system-ui,sans-serif!important; color:#1D2B1A!important }
body.hpv .hpstrip.wfootlike > button:hover, body.hpv .hpstrip.wfootlike > a:hover{ background:rgba(255,255,255,.7)!important; border-radius:12px!important }
body.hpv .hpstrip.wfootlike .hpi{ font-size:20px!important }
body.hpv .hpstrip.wfootlike .hpjoin.off{ opacity:1 }
@media (max-width:700px){ body.hpv .hpstrip.wfootlike{ display:grid!important; grid-template-columns:1fr 1fr!important; padding:10px!important } body.hpv .hpstrip .hpbrand{ grid-column:1/-1; justify-self:center }
  body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ border:1.5px solid #CFE7C1!important; border-radius:14px!important; background:#fff!important; font-size:15px!important } }
@media (min-width:1101px){ body.hpv .hpstrip.wfootlike{ flex-wrap:nowrap!important; gap:0!important } body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ flex:1 1 auto; justify-content:center; padding:6px 8px!important; white-space:nowrap; font-size:15px!important } }
@media (min-width:701px) and (max-width:1100px){ body.hpv .hpstrip.wfootlike{ display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important } body.hpv .hpstrip .hpbrand{ grid-column:1/-1; justify-self:center } body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ border:1.5px solid #CFE7C1!important; border-radius:14px!important; background:#fff!important } }
body.hpv main.wrap{ padding-bottom:8px!important } body.hpv #h32wrap{ padding-bottom:0!important }
@media (min-width:1101px){ body.hpv .hpstrip.wfootlike > .hpjoin{ margin-left:auto; border-left:0!important; border-radius:14px!important; background:linear-gradient(180deg,#EAFBEF,#C9F0D4)!important; border:2px solid #7FCF96!important; padding:6px 16px!important; flex:0 0 auto } }
@media (min-width:701px) and (max-width:1100px){ body.hpv .hpstrip.wfootlike{ grid-template-columns:repeat(4,minmax(0,1fr))!important } }

/* home palette (Nov 11): warm ivory background, soft yellow cards, coffee-brown headers, muted gold borders */
body.hpv{ --ivory:#FBF6EA; --cardY:#FFF7DC; --cardY2:#FDEFC4; --gold:#D6B76A; --coffee:#6B3F26 }
body.hpv #bigBanner, body.hpv.banA #bigBanner, body.hpv.banB #bigBanner{ background:var(--ivory)!important; border-color:var(--gold)!important }
body.hpv main.wrap{ background:var(--ivory)!important; border-color:var(--gold)!important }
/* notebook frame + Message Board frame in muted gold */
body.hpv .h32nbcell .nb{ border-color:var(--gold)!important }
body.hpv .h32boardcell .mboard{ border-color:#C9A456!important }
/* coffee-brown headers */
body.hpv #h32wrap .h24-week .k, body.hpv #h32wrap .winsp .k, body.hpv #h32wrap #td3h, body.hpv #h32wrap .unitp .k, body.hpv #h32wrap .h24h,
body.hpv #h32wrap .lg-hk, body.hpv #h32wrap .lg-htxt b, body.hpv #h32wrap .unitp .row .k{ color:var(--coffee)!important }
body.hpv #h32wrap .h32tipcell .b29tipt b{ background:var(--coffee)!important; color:#FFF4E2!important }
body.hpv #h32wrap .h32progcell .unitp .k b, body.hpv #h32wrap .unitp > .h24h *{ color:var(--coffee)!important }
body.hpv #h32wrap .td3 .td3n{ background:#F3E3B8!important; color:var(--coffee)!important }
/* inner tiles stay white with gold edges */
body.hpv #h32wrap .td3 li{ background:#FFFDF6!important; border-color:#EAD7A4!important }
body.hpv #h32wrap .h24-week .week i{ border-color:#E5CF95!important }



/* bold card colours stay; titles and highlights in coffee brown */
html body.hpv #h32wrap [class*=wv]{ --wvT:#6B3F26 }
body.hpv .hpstrip .hpbrand{ color:#6B3F26 }
body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ color:#4A2A16!important }
body.hpv #h32wrap .lg-htxt b{ color:#6B3F26!important }
/* footer: always ONE row, Math LiQ logo first; fewer buttons on smaller screens instead of stacking */
body.hpv .hpstrip.wfootlike, body.hpv .hpstrip.wfootlike.wfootlike{ display:flex!important; flex-wrap:nowrap!important; gap:0!important; grid-template-columns:none!important; padding:8px 10px!important }
body.hpv .hpstrip .hpbrand{ grid-column:auto!important; justify-self:auto!important; flex:none; white-space:nowrap }
body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ flex:1 1 0!important; min-width:0; justify-content:center; white-space:nowrap!important;
  border:0!important; border-left:2px solid #CFE7C1!important; border-radius:0!important; background:transparent!important; padding:6px 8px!important }
body.hpv .hpstrip.wfootlike > .hpjoin{ flex:0 0 auto!important; margin-left:8px; border:2px solid #7FCF96!important; border-radius:14px!important; background:linear-gradient(180deg,#EAFBEF,#C9F0D4)!important; padding:6px 14px!important }
@media (max-width:1100px){ body.hpv .hpstrip.wfootlike > button:nth-of-type(2){ display:none!important } }
@media (max-width:700px){ body.hpv .hpstrip.wfootlike > button:nth-of-type(3){ display:none!important } body.hpv .hpstrip .hpbrand{ font-size:21px; padding:0 6px 0 2px } body.hpv .hpstrip .hpbrand span{ font-size:20px; margin-right:3px }
  body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ font-size:14px!important; padding:4px 6px!important; white-space:normal!important; line-height:1.1!important; text-align:center } body.hpv .hpstrip.wfootlike > .hpjoin{ margin-left:6px; padding:4px 8px!important } }
@media (max-width:370px){ body.hpv .hpstrip .hpbrand span{ display:none } }
@media (max-width:700px){ body.hpv .hpstrip.wfootlike > button .hpi, body.hpv .hpstrip.wfootlike > a .hpi{ display:none!important }
  body.hpv .hpstrip.wfootlike > button, body.hpv .hpstrip.wfootlike > a{ flex:1 1 0!important; overflow:hidden; min-height:44px!important; display:flex!important; align-items:center }
  body.hpv .hpstrip.wfootlike > .hpjoin{ flex:1 1 0!important; white-space:normal!important; justify-content:center } }

/* ==== liq-ds34.css ==== */
/* ===== Math LiQ · Universal Design System v2.0 — shared tokens + reusable component styles =====
   Scoped to the page area (#view) and the pop-up pages. The blue top bar, the bottom utility bar, banners, logos, artwork and
   the approved wave cards are NOT touched. Only presentation: no ids, classes, handlers, labels or destinations change. */
:root{
  /* typography */
  --ds-font:Nunito,'Noto Sans Ethiopic',system-ui,sans-serif; --ds-font-head:'Baloo 2',Nunito,'Noto Sans Ethiopic',system-ui,sans-serif;
  --ds-fs-title:28px; --ds-fs-section:21px; --ds-fs-card:18px; --ds-fs-body:16px; --ds-fs-btn:15px; --ds-fs-2nd:14px; --ds-fs-small:13px;
  --ds-lh-tight:1.2; --ds-lh-body:1.45;
  /* spacing scale */
  --ds-1:4px; --ds-2:8px; --ds-3:12px; --ds-4:16px; --ds-5:24px; --ds-6:32px;
  /* buttons and inputs */
  --ds-btn-h:44px; --ds-btn-hc:38px; --ds-btn-r:12px; --ds-in-h:44px; --ds-in-r:10px;
  /* neutral colours */
  --ds-ink:#1F2433; --ds-ink-2:#4A5266; --ds-muted:#6A7285; --ds-line:#D6DCE7; --ds-bg-soft:#F7F9FC;
  --ds-focus:#2F6FE0; --ds-ok:#2E7D32; --ds-warn:#B26A00; --ds-err:#C62828; --ds-disabled:.55;
}

/* ---------- 3. typography ---------- */
#view .wstrip h2{ font-size:var(--ds-fs-title)!important }
#view :is(.tnc,.b27main) h3:not(.wsd){ font-size:var(--ds-fs-card); line-height:var(--ds-lh-tight) }
#view .tnc .tnh{ font-size:var(--ds-fs-card)!important }
#view :is(.b27main,.tngrid) p{ line-height:var(--ds-lh-body) }
/* nothing below 13 px in page content (track dots, charts and banner art excluded) */
/* only the elements the audit found below 13 px are raised (nothing is made smaller) */
#view :is(th,div.k,small.lg-hn,small.lg-hk,small.lg-hs,.mk,.tagw,.newb,.aw-kind,.td3f,.lxchax,.lxflip,.cw30k){ font-size:var(--ds-fs-small)!important }
#view .wsd, #view .wtrail{ font-size:var(--ds-fs-2nd)!important }

/* ---------- 4. buttons: one height, one corner, one type size; world colours kept ---------- */
#view :is(.btn,.s32btn,.s32go,.tnbtn,.lgbtn,.sndb.big):not(.tnext):not(.tnk):not(.tngb){
  min-height:var(--ds-btn-h); border-radius:var(--ds-btn-r)!important; font-size:var(--ds-fs-btn)!important; font-weight:800; line-height:1.15;
  padding-inline:var(--ds-4); display:inline-flex; align-items:center; justify-content:center; gap:var(--ds-2) }
#view :is(.btn.small,.td3go,.btn.mini){ min-height:var(--ds-btn-hc)!important; border-radius:var(--ds-btn-r)!important; font-size:var(--ds-fs-2nd)!important; padding-inline:var(--ds-3) }
/* small "View all"-style link buttons get a touch-friendly tap area without changing their look */
#view :is(.b27all,.famlink){ min-height:var(--ds-btn-hc); display:inline-flex; align-items:center; padding:0 var(--ds-2); font-size:var(--ds-fs-2nd)!important }
/* states */
#view :is(button,a,input,select,textarea,[role=button]):focus-visible{ outline:3px solid var(--ds-focus)!important; outline-offset:2px }
#view :is(button,.btn):disabled, #view .btn.off, #view [aria-disabled=true]{ opacity:var(--ds-disabled); cursor:not-allowed; filter:saturate(.6) }
#view :is(.btn,.s32btn,.s32go,.tnbtn):not(:disabled):active{ transform:translateY(1px) }
#view .btn.loading{ position:relative; color:transparent!important } #view .btn.loading::after{ content:""; position:absolute; width:18px; height:18px; border-radius:50%; border:3px solid currentColor; border-right-color:transparent; animation:dsspin .8s linear infinite; color:#fff }
@keyframes dsspin{ to{ transform:rotate(360deg) } }

/* ---------- 11. forms ---------- */
#view :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select){
  min-height:var(--ds-in-h); border-radius:var(--ds-in-r)!important; border:1.5px solid var(--ds-line)!important; background:#fff; padding:0 var(--ds-3)!important;
  font:600 var(--ds-fs-body)/1.2 var(--ds-font)!important; color:var(--ds-ink) }
#view textarea{ border-radius:var(--ds-in-r)!important; border:1.5px solid var(--ds-line)!important; padding:var(--ds-3)!important; font:600 var(--ds-fs-body)/var(--ds-lh-body) var(--ds-font)!important }
#view :is(input,select,textarea)::placeholder{ color:var(--ds-muted); font-weight:500 }
#view :is(input,select,textarea):focus{ border-color:var(--ds-focus)!important; box-shadow:0 0 0 3px rgba(47,111,224,.18) }
#view :is(input,select,textarea)[aria-invalid=true], #view :is(input,select,textarea).bad{ border-color:var(--ds-err)!important }
#view label{ font-size:var(--ds-fs-2nd); font-weight:700; color:var(--ds-ink-2) }
#view input[type=checkbox], #view input[type=radio]{ width:20px; height:20px; accent-color:var(--tnA,#2F6FE0) }

/* ---------- 12. tables ---------- */
#view .b27main table{ border-collapse:separate; border-spacing:0; width:100%; font-size:var(--ds-fs-body) }
#view .b27main th{ font-size:var(--ds-fs-2nd)!important; font-weight:800; text-transform:none!important; letter-spacing:0!important; color:var(--ds-ink-2); background:var(--ds-bg-soft); padding:var(--ds-2) var(--ds-3)!important; text-align:left; border-bottom:1.5px solid var(--ds-line) }
#view .b27main td{ padding:var(--ds-2) var(--ds-3)!important; border-bottom:1px solid #EDF0F5; vertical-align:middle }
#view .b27main tbody tr:nth-child(even) td{ background:rgba(247,249,252,.7) }
#view .b27main :is(th,td).r{ text-align:right }

/* ---------- 6/7. spacing and containers ---------- */
#view .tngrid{ gap:var(--ds-4)!important }
#view .wcomp, #view .wfoot{ margin-top:var(--ds-5)!important }
#view .wstrip{ margin-bottom:var(--ds-4)!important }

/* ---------- 10. bottom navigation: one height and button size everywhere ---------- */
#view .wfoot, body #h32wrap .hpstrip.wfootlike{ min-height:64px }
#view .wfoot .wfb, body #h32wrap .hpstrip.wfootlike > :is(button,a){ min-height:var(--ds-btn-h)!important; font-size:var(--ds-fs-btn)!important }

/* ---------- 15. empty states ---------- */
#view .ds-empty{ display:flex; align-items:center; gap:var(--ds-3); padding:var(--ds-4); border:1.5px dashed var(--ds-line); border-radius:14px; background:var(--ds-bg-soft); color:var(--ds-ink-2); font-size:var(--ds-fs-2nd) }
#view .ds-empty::before{ content:"🌱"; font-size:22px }

/* ===== test32: the same compact banner size on every page (student home keeps its own) =====
   One frame shape for every banner. Older, taller banner pictures sit centred inside it — never cropped or stretched —
   with soft matching edges (a blurred copy of the same picture) until the new compact banners replace them. */
#view > .pg > .phero:has(> img.s32std){ position:relative!important; aspect-ratio:8.76; height:auto!important; min-height:0!important; max-height:none!important;
  padding:0!important; overflow:hidden!important; border-radius:22px!important; box-shadow:0 6px 18px rgba(30,40,70,.10)!important; border:0!important; background:linear-gradient(90deg,var(--ds-bl,#3a2414) 0 50%,var(--ds-br,#3a2414) 50% 100%)!important }
#view > .pg > .phero:has(> img.s32std) > :not(img.s32std){ display:none!important }
#view > .pg > .phero > img.s32std{ position:relative!important; z-index:1; display:block!important; width:100%!important; height:100%!important; max-height:none!important; object-fit:contain!important; border-radius:0!important; box-shadow:none!important; transform:none!important; inset:auto!important }

/* ===== shared pages (Certificates, Medals, Secret Words, Message Box): coffee-brown / cream / gold, same strip, card, footer ===== */
#view.tn-central{ --tnA:#8A5A3B; --tnA2:#70452F; --tnL:#FBF4EC; --tnL2:#F3E4D3; --tnB:#E2C9AE; --tnInk:#3E2516; --tnSoft:#FEFAF5 }
#view.tn-central > .pg > :is(.wtrail,.wstrip,.wcomp,.wfoot){ margin-left:12px; margin-right:12px }
#view.tn-central .wcomp .b29tipt p{ margin:2px 0; font:600 16px/1.45 var(--ds-font) }
#view.tn-central .wcomp .b29tipt b{ display:none }
/* Message Box: day headings + filter chips */
#view .w34nf{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 8px }
#view .w34chip{ min-height:var(--ds-btn-hc); padding:0 14px; border-radius:999px; border:1.5px solid var(--tnB,#E2C9AE); background:#fff; color:var(--tnInk,#3E2516); font:700 var(--ds-fs-2nd)/1 var(--ds-font); cursor:pointer }
#view .w34chip.on{ background:var(--tnA,#8A5A3B); border-color:var(--tnA,#8A5A3B); color:#fff }
#view .w34day{ margin:14px 0 6px; font:800 var(--ds-fs-card)/1.2 var(--ds-font-head); color:var(--tnA2,#70452F) }
#view .note[hidden], #view .w34day[hidden]{ display:none!important }
/* Medals: the "Still to Win" list is readable (no faded grey) */
#view .medal.locked{ opacity:1!important; filter:none!important }
#view .medal.locked .lvl{ background:#fff!important; border:1.5px solid currentColor; color:#8A5A12!important; font-weight:800 }
#view .medal.locked :is(.mt,.md,.mn,small,p){ color:var(--ds-ink-2)!important }
/* Certificates: locked places are smaller so the earned certificates stand out */
#view.stack .cw30grid .cw30card.lock.lock{ min-height:0!important; height:auto!important; padding:14px!important; opacity:.85 }
#view.stack .cw30grid .cw30card.lock.lock img{ max-height:70px!important }
#view .cw30grid{ align-items:start }
/* Parent Desk Explore: grouped, folding sections */
#view .tnexg{ display:grid!important; grid-template-columns:1fr; gap:10px }
#view .tnexd{ border:1.5px solid var(--tnB); border-radius:14px; background:#fff; padding:6px 12px }
#view .tnexd > summary{ display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; font:800 var(--ds-fs-card)/1.2 var(--ds-font-head); color:var(--tnInk); list-style:none }
#view .tnexd > summary::-webkit-details-marker{ display:none }
#view .tnexd > summary::after{ content:"▾"; margin-left:auto; transition:transform .15s } #view .tnexd:not([open]) > summary::after{ transform:rotate(-90deg) }
#view .tnexd > summary i{ font-style:normal; font-size:var(--ds-fs-small); background:var(--tnL2); color:var(--tnA2); border-radius:999px; padding:2px 9px }
#view .tnexd > .tnex{ padding:4px 0 10px }
#view .tnexd > summary:focus-visible{ outline:3px solid var(--ds-focus); outline-offset:2px; border-radius:10px }
#view .tnexd > summary{ min-width:0; flex-wrap:nowrap } #view .tnexd > summary > *{ flex:none }
@media (max-width:420px){ #view .tnexd{ padding:4px 8px } #view .tnexd > summary{ font-size:15px; gap:6px } #view .tnexd > summary i{ padding:1px 6px } #view .tnexd > summary::after{ margin-left:4px } }

/* ==== liq-ds35.css ==== */
/* ===== Math LiQ · Consolidated UI/UX Standard (Test 32 spec) — applied in test33 =====
   Presentation only. No ids, classes used by code, handlers, labels, routes or data change.
   Loaded after liq-ds34.css. The blue top bar, the dark utility bar, Bilcho chat and the
   approved wave cards (22px corners, 2px borders — user decision) are NOT changed.
   Pilot pages: Star Bank, MathLiQ Lab, Parent Desk (then My Profile and Hall of Fame, which share the same layout). */
:root{
  --ds-max:1180px;
  --ds-pad:20px;                 /* page padding: desktop 20 · tablet 16 · phone 12 */
  --ds-ban-h:124px;              /* banner container: desktop 110–130 · tablet 90–110 · phone 75–95 */
  --ds-fs-title:26px; --ds-fs-section:21px; --ds-fs-card:18px; --ds-fs-body:16px; --ds-fs-btn:15px; --ds-fs-2nd:13px; --ds-fs-small:13px;
  --ds-card-pad:16px; --ds-gap-x:10px; --ds-gap-y:12px; --ds-section:18px; --ds-head-gap:8px;
  --ds-btn-h:44px; --ds-btn-r:12px; --ds-btn-hc:38px; --ds-btn-rc:10px;
  --ds-ic-card:24px; --ds-ic-tool:20px; --ds-ic-btn:18px; --ds-ic-small:16px;
  --ds-in-h:46px; --ds-in-r:10px;
}
@media (max-width:1100px){ :root{ --ds-pad:16px; --ds-ban-h:100px } }
@media (max-width:700px){ :root{ --ds-pad:12px; --ds-ban-h:84px } }

/* ---------- 1. page width and padding ---------- */
#view.tn > .pg{ max-width:min(var(--ds-max),100%); min-width:0; margin-inline:auto; padding-inline:var(--ds-pad)!important; box-sizing:border-box }

/* ---------- 2. banner containers: full width, radius 16, fixed height band, ~12px below ---------- */
#view > .pg > .phero:has(> img.s32std){ aspect-ratio:auto!important; height:var(--ds-ban-h)!important; border-radius:16px!important; margin-bottom:12px!important; overflow:hidden }
@media (max-width:700px){ #view > .pg > .phero > img.s32std{ object-fit:cover!important; object-position:8% center!important } }

/* ---------- 3. section rhythm and grid gaps ---------- */
#view.tn .tngrid{ column-gap:var(--ds-gap-x)!important; row-gap:var(--ds-gap-y)!important }
@media (min-width:701px){ #view.tn .tngrid{ column-gap:14px!important; row-gap:14px!important } }
#view.tn .tnnav{ margin-bottom:var(--ds-gap-y)!important }
#view.tn .wfoot{ margin-top:var(--ds-section)!important }
#view.tn .tnc{ padding:var(--ds-card-pad)!important; padding-bottom:22px!important; gap:var(--ds-head-gap)!important }

/* ---------- 4. no large empty gaps: cards in one row share the row height ---------- */
#view.tn .tngrid{ align-items:stretch!important }
#view.tn .tngrid > .tnc.tn-part{ justify-content:center }
/* tile grids fill the card instead of leaving a blank strip */
#view.tn .tngrid > .tnc.tn-part:has(> .b27acts) > .b27acts{ flex:1; align-content:stretch; grid-auto-rows:1fr }
@media (min-width:701px){
  #view.tn .tngrid > .tnc.tn-part > .b27acts{ grid-template-columns:repeat(2,minmax(0,1fr))!important }
  #view.tn .tngrid > .tnc.tn-part > .b27acts > :first-child:nth-last-child(3){ grid-column:1/-1 }
  #view.tn .tngrid > .tnc.tn-part > .b27acts > *{ min-height:72px; height:100% }
  /* My Profile: the rank/title/badge trio and the number tiles each take a full row (no half-empty card) */
  #view.tn .tngrid > .tnc.tn-part:is(:has(> .p25-row3),:has(> .p25-sum)){ grid-column:1/-1!important }
  #view.tn .tngrid > .tnc.tn-part > .p25-sum{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important }
}
/* a lone half-width card at the end of a row takes the whole row (set by liq-ds35.js) */
#view.tn .tngrid > .tnc.ds-full{ grid-column:1/-1!important }
/* Profile: a pair with one hidden half shows the visible half at full width */
#view .p25-row2{ grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important }

/* ---------- 5. one card-title style everywhere (no coloured header bars) ---------- */
#view.tn .tnc :is(.s32card > header, header.p25-h, .b27recent > header){
  background:none!important; box-shadow:none!important; border:0!important; border-radius:0!important;
  padding:0!important; margin:0 0 var(--ds-head-gap)!important; min-height:0!important; color:var(--wvT,#2B3A55)!important; text-shadow:none!important }
#view.tn .tnc :is(.s32card > header, header.p25-h) :is(b,h2,h3,span:not([aria-hidden])){ color:inherit!important }
#view.tn .tnc :is(.s32card > header > b, header.p25-h > h2, .b27recent > header > b, .s32next > div > b, .e29fh b, .b29fh > b, .p25-wh h2, .tnh, .b27gh){
  font-family:var(--ds-font-head)!important; font-size:var(--ds-fs-card)!important; font-weight:800!important; line-height:1.2!important; color:var(--wvT,#2B3A55)!important; letter-spacing:0 }
#view.tn .tnc .b29tipt > b{ font-size:var(--ds-fs-card)!important }
/* header icons: one size */
#view.tn .tnc :is(.s32card > header, header.p25-h) :is(img,.ic,i,span[aria-hidden]){ font-size:var(--ds-ic-tool)!important; width:auto; filter:none }
#view.tn .tnc header.p25-h img{ width:var(--ds-ic-tool)!important; height:var(--ds-ic-tool)!important }

/* ---------- 6. boxes that were plain white get a soft tint of their card colour ---------- */
#view.tn .tnc :is(.p25-card,.p25-stat,.s32kid,.b27row,.s32tiles > div,.p25-avrow,.b27bal > div:not(.b27pill)){
  background:color-mix(in srgb, var(--wvT,#3A5BA0) 6%, #fff)!important; border-color:color-mix(in srgb, var(--wvT,#3A5BA0) 22%, #fff)!important }
#view.tn .tnc .tnext{ background:color-mix(in srgb, var(--wvT,#2E7D23) 7%, #fff)!important }

/* ---------- 7. typography ---------- */
#view.tn .wstrip h2, #view.tn .pg > h1, #view.tn .pg > h2.ptitle{ font-size:var(--ds-fs-title)!important }
#view.tn .tnc :is(p,li,td){ font-size:max(var(--ds-fs-body),1em) }
#view.tn .tnc small, #view.tn .tnc .small{ font-size:var(--ds-fs-2nd)!important }

/* ---------- 8. buttons ---------- */
#view.tn :is(.btn,.s32btn,.s32go):not(.small):not(.mini):not(.tnext):not(.tnk):not(.tngb){ min-height:var(--ds-btn-h)!important; border-radius:var(--ds-btn-r)!important; font-size:var(--ds-fs-btn)!important }
#view.tn :is(.btn.small,.btn.mini,.td3go){ min-height:var(--ds-btn-hc)!important; border-radius:var(--ds-btn-rc)!important; font-size:14px!important }
#view.tn :is(.btn,.s32btn,.s32go) img{ width:var(--ds-ic-btn); height:var(--ds-ic-btn) }
#view.tn :is(.btn.danger,.btn.del,.btn.red){ background:#C62828!important; color:#fff!important; border-color:#B71C1C!important }

/* ---------- 9. forms and tables ---------- */
#view.tn :is(input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],input:not([type]),select){ min-height:var(--ds-in-h); border-radius:var(--ds-in-r); font-size:16px }
#view.tn textarea{ border-radius:var(--ds-in-r); font-size:16px }
#view.tn label{ font-size:max(14px,1em) }
#view.tn table :is(td,th){ font-size:14.5px; padding-block:10px }

/* ---------- 10. Coming Soon placeholder (only for genuinely reserved positions) ---------- */
#view .ds-soon{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center;
  border:2px dashed color-mix(in srgb, var(--wvT,#6A7285) 35%, #fff); border-radius:22px; padding:16px;
  background:color-mix(in srgb, var(--wvT,#6A7285) 5%, #fff); color:var(--wvT,#4A5266) }
#view .ds-soon::before{ content:"🕒"; font-size:24px; line-height:1 }
#view .ds-soon b{ font:800 18px var(--ds-font-head) } #view .ds-soon span{ font-size:13px; opacity:.85 }
@media (max-width:700px){ #view .tngrid > .ds-soon{ display:none } }
/* Parent Desk details after the title change */
#view.tn .tnc .s32card > header .b27all{ color:var(--wvT,#2B3A55)!important; text-decoration:underline }
@media (min-width:701px){
  /* Next Steps: picture + list on top, button underneath, so the list is not squeezed into a narrow column */
  #view.tn .tnc .s32next{ flex-wrap:wrap!important }
  #view.tn .tnc .s32next > div{ flex:1 1 60%!important; min-width:0 }
  #view.tn .tnc .s32next > .s32go{ flex:1 1 100%; max-width:320px; margin-inline:auto }
}
#view.tn .tnc .p25-rankc :is(img,svg,.p25-emb){ max-width:170px; max-height:170px; margin-inline:auto }
@media (max-width:700px){
  #view.tn .tnc .s32kid{ flex-wrap:wrap!important; row-gap:10px }
  #view.tn .tnc .s32kid > .s32btn{ flex:1 1 100%; max-width:none }
  #view.tn .tnc .s32next{ flex-direction:column!important; align-items:stretch!important; text-align:left }
  #view.tn .tnc .s32next > .s32cal{ display:none }
  #view.tn .tnc .s32next > *{ max-width:100%; min-width:0; box-sizing:border-box }
  #view.tn .tnc .s32next > div{ flex:0 0 auto!important }
  #view.tn .tnc .s32next ul{ overflow-wrap:anywhere }
  #view.tn .tnc .s32next > .s32go{ width:auto!important; align-self:stretch; margin:0!important }
}

/* ---------- test47: UNIVERSAL CONTENT WIDTH STANDARD (Beti, Nov 14; reference = the LiQ Plans page) ----------
   ONE width for the blue student bar and for every page's content container, centred, equal margins:
     --liq-w = 1180 px, or the screen width minus the side gutter on smaller screens.
   Every world and section uses it (Math, English, Investment, Life LiQ, Star Bank + Planner, Lab, Profile, Hall of Fame,
   certificates, medals, Secret Words, Parent Desk, Student Home). Replaces the test44 wide-screen stretch (pages pushed to
   the Secret Words button), the 1600 px wide blue bar on big screens (liq-std32.css) and the Math LiQ home stretch
   (liq-home31.css). Phones/tablets: the gutter shrinks (16 px tablet, 8 px phone); pages keep their own inner padding. */
:root{ --liq-gut:24px; --liq-w:min(var(--ds-max), calc(100vw - 2 * var(--liq-gut))) }
@media (max-width:1100px){ :root{ --liq-gut:16px } }
@media (max-width:700px){ :root{ --liq-gut:8px } }
html body .wrap{ max-width:var(--liq-w)!important; margin-inline:auto!important }
html body #view, html body:not(.w31home) #view.stack{ max-width:var(--liq-w)!important; width:auto!important; margin-left:auto!important; margin-right:auto!important; box-sizing:border-box }
html body #view > .pg{ width:100%; max-width:100%; margin-inline:auto; box-sizing:border-box }
html body #hud .wrap.headbanner{ max-width:var(--liq-w)!important; margin-inline:auto!important }

/* ---------- test49: SHORT SCREENS (laptops, a laptop shown on a TV, browser zoom) ----------
   Root cause found Nov 14: every desktop got the same page height whatever the screen height (sizes came from the width only).
   On a computer screen that is short for its width, the page parts that never needed to be so tall get more compact.
   Width (Universal Content Width Standard), the blue student bar and the top menu are NOT changed. Phones are NOT changed. */
@media (min-width:761px) and (max-height:820px){
  :root{ --ds-ban-h:96px }                                                      /* page banners 124 → 96 px (the picture keeps its shape) */
  html body.w31home #hud #bigBanner img.banner{ height:104px!important; max-height:104px!important }
  body.hpv .h32nbcell, body.hpv .h32boardcell{ min-height:0!important }          /* home cards: as tall as their content, not 430 px */
  #view.tn .tngrid{ row-gap:10px!important; column-gap:12px!important }
  #view.tn .tngrid > .tnc{ padding-top:10px!important; padding-bottom:10px!important }
  #view > .pg > .phero:has(> img.s32std){ margin-bottom:8px!important }
}
@media (min-width:761px) and (max-height:700px){
  :root{ --ds-ban-h:80px }
  html body.w31home #hud #bigBanner img.banner{ height:88px!important; max-height:88px!important }
}

/* test49: tablet / small-laptop blue bar — the five counters (Stars … Secret Words) were squeezed and their words cut off
   between ~760 and 1180 px. Same bar, same cards: only a slimmer icon, padding and label size so every word shows. */
@media (min-width:761px) and (max-width:1180px){
  #hud .counters{ gap:4px !important; }
  #hud .hcard{ padding:5px 5px !important; gap:4px !important; flex-shrink:0; }
  #hud .hcard .hi{ font-size:22px !important; }
  #hud .hcard .hv b{ font-size:16px !important; }
  #hud .hcard .hv small{ font-size:10.5px !important; white-space:nowrap; }
}
@media (min-width:1001px) and (max-width:1120px){
  #hud .hcard .hi{ font-size:19px !important; }
  #hud .hcard .hv small{ font-size:10px !important; letter-spacing:-.1px; }
  .hud .me .nm{ font-size:24px !important; } .hudstreak .hsf{ font-size:26px !important; } .hudstreak small{ font-size:12px !important; }
}

/* ==== liq-foot35.css ==== */
/* ===== Math LiQ · test33: Global content footer (shared by every world/area footer and the student-home strip) =====
   Light-green soft gradient, rounded, even spacing, subtle separators, hover (desktop) and pressed (touch) states,
   the current page highlighted with a deeper green inset. Desktop/tablet: one even row. Phones: every item kept,
   sideways scroll inside the footer (the page itself never scrolls sideways).
   Not touched: the fixed dark-blue utility bar (#mlfoot), the blue top bar, Bilcho chat. */
:root{ --f35-bg1:#F4FBEE; --f35-bg2:#E3F3D8; --f35-line:#C9E6B7; --f35-sep:rgba(76,140,60,.22); --f35-ink:#1D2B1A; --f35-on:#CBEBB8; --f35-acc:#2E8A3C }
body[data-wpv=en]{ --f35-acc:#C2185B } body[data-wpv=life]{ --f35-acc:#1F6FC9 } body[data-wpv=inv]{ --f35-acc:#2E8A3C }
body[data-wpv=bank]{ --f35-acc:#6A3FB5 } body[data-wpv=lab]{ --f35-acc:#7A4A22 } body.hpv{ --f35-acc:#7A4A22 }

html body #view .wfoot, html body .hpstrip.hpstrip.wfootlike.wfootlike{
  display:flex!important; flex-wrap:nowrap!important; align-items:stretch!important; gap:0!important;
  padding:6px!important; border-radius:20px!important; border:1.5px solid var(--f35-line)!important;
  background:linear-gradient(180deg,var(--f35-bg1),var(--f35-bg2))!important; box-shadow:0 4px 14px rgba(40,90,30,.08)!important;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:var(--f35-line) transparent; overscroll-behavior-x:contain;
  width:100%; max-width:100%; box-sizing:border-box; min-height:60px }
/* brand (now a button to the area's home) */
html body #view .wfoot .wbrand, html body .hpstrip.hpstrip.wfootlike.wfootlike .hpbrand{
  flex:0 0 auto!important; display:flex!important; align-items:center; gap:6px; padding:4px 14px 4px 8px!important; margin-right:4px;
  border-radius:14px; cursor:pointer; white-space:nowrap; transition:background .15s, box-shadow .15s }
/* items */
html body #view .wfoot .wfb, html body .hpstrip.hpstrip.wfootlike.wfootlike > button, html body .hpstrip.hpstrip.wfootlike.wfootlike > a{
  flex:1 1 0!important; min-width:max-content!important; display:flex!important; align-items:center!important; justify-content:center!important; gap:8px!important;
  min-height:46px!important; padding:6px 14px!important; margin:0!important; white-space:nowrap!important;
  border:0!important; border-left:1.5px solid var(--f35-sep)!important; border-radius:0!important; background:transparent!important; box-shadow:none!important;
  color:var(--f35-ink)!important; font:800 15px/1.15 Nunito,'Noto Sans Ethiopic',system-ui,sans-serif!important; text-decoration:none!important; cursor:pointer;
  transition:background .15s, box-shadow .15s, transform .08s }
html body #view .wfoot .wfb > span[aria-hidden], html body .hpstrip.hpstrip.wfootlike.wfootlike .hpi{ display:inline!important; font-size:20px!important; line-height:1 }
/* hover (mouse) and pressed (touch) — rounded chip, separators hidden next to it */
@media (hover:hover){
  html body #view .wfoot :is(.wfb,.wbrand):hover, html body .hpstrip.hpstrip.wfootlike.wfootlike :is(button,a,.hpbrand):hover{ background:rgba(255,255,255,.8)!important; border-radius:14px!important; box-shadow:0 1px 4px rgba(40,90,30,.12)!important }
}
html body #view .wfoot :is(.wfb,.wbrand):active, html body .hpstrip.hpstrip.wfootlike.wfootlike :is(button,a,.hpbrand):active{ background:var(--f35-on)!important; border-radius:14px!important; transform:scale(.98) }
html body #view .wfoot :is(.wfb,.wbrand):focus-visible, html body .hpstrip.hpstrip.wfootlike.wfootlike :is(button,a,.hpbrand):focus-visible{ outline:3px solid #2F6FE0!important; outline-offset:-3px; border-radius:14px!important }
/* current page: deeper green inset + the world's accent underline */
html body #view .wfoot .fon, html body .hpstrip.hpstrip.wfootlike.wfootlike .fon{
  background:var(--f35-on)!important; border-radius:14px!important; box-shadow:inset 0 2px 5px rgba(30,80,20,.18), inset 0 -3px 0 var(--f35-acc)!important }
html body #view .wfoot .fon + .wfb, html body .hpstrip.hpstrip.wfootlike.wfootlike .fon + :is(button,a){ border-left-color:transparent!important }
/* the Join Today's Class button keeps its own look on the home strip */
html body .hpstrip.hpstrip.wfootlike.wfootlike > .hpjoin{ flex:0 0 auto!important; margin-left:8px!important; border:2px solid #7FCF96!important; border-radius:14px!important; background:linear-gradient(180deg,#EAFBEF,#C9F0D4)!important }
/* tablets: still one row, slightly tighter */
@media (max-width:1100px){
  html body #view .wfoot .wfb, html body .hpstrip.hpstrip.wfootlike.wfootlike > :is(button,a){ padding:6px 10px!important; font-size:14px!important; display:flex!important }
  html body #view .wfoot .wfb:nth-of-type(n), html body .hpstrip.hpstrip.wfootlike.wfootlike > button:nth-of-type(n){ display:flex!important }
}
/* phones: all items kept, the footer scrolls sideways; icons stay, labels stay on one line */
@media (max-width:700px){
  html body #view .wfoot, html body .hpstrip.hpstrip.wfootlike.wfootlike{ scroll-snap-type:x proximity; padding:5px!important; -webkit-overflow-scrolling:touch }
  html body #view .wfoot .wfb, html body .hpstrip.hpstrip.wfootlike.wfootlike > :is(button,a){ flex:0 0 auto!important; scroll-snap-align:start; min-height:44px!important; font-size:14px!important; padding:4px 12px!important; line-height:1.1!important }
  html body #view .wfoot .wfb > span[aria-hidden], html body .hpstrip.hpstrip.wfootlike.wfootlike .hpi{ display:inline!important; font-size:18px!important }
  html body #view .wfoot .wbrand{ font-size:19px!important } html body #view .wfoot .wbrand i{ display:inline!important; font-size:19px!important }
}
/* phones: a soft fade on the right edge shows there is more to scroll */
@media (max-width:700px){
  html body #view .wfoot, html body .hpstrip.hpstrip.wfootlike.wfootlike{ -webkit-mask-image:linear-gradient(90deg,#000 88%,rgba(0,0,0,.35)); mask-image:linear-gradient(90deg,#000 88%,rgba(0,0,0,.35)) }
  html body #view .wfoot.f35end, html body .hpstrip.hpstrip.wfootlike.wfootlike.f35end{ -webkit-mask-image:none; mask-image:none }
}

/* ==== liq-foot53.css ==== */
/* test53 · footer details in the test52 standard (the alternative footer style was withdrawn, Nov 16) */
/* empty footer (Secret-Word Prize Game): the same bar with five separator bars, no labels, no actions */
html body #view .wfoot.wempty{ pointer-events:none }
html body #view .wfoot.wempty .wslot{ flex:1 1 0; min-height:46px; border-left:1.5px solid var(--f35-sep) }
html body #view .wfoot.wempty .wslot:first-child{ border-left:0 }
/* a footer inside a hidden part of the page stays hidden */
html body #view .wfoot:is(.tnhid,.b27hide,.wgone), html body #view :is(.tnhid,.b27hide,.wgone) .wfoot{ display:none!important }
/* information pop-up (test52 design): the manual link under the explanation */
.w33pg .w33man{ margin:14px 0 2px; padding-top:10px; border-top:1.5px dashed rgba(0,0,0,.12); font:800 16px/1.3 Nunito,system-ui,sans-serif }
.w33pg .w33man a{ color:#1F5FA8; text-decoration:none } .w33pg .w33man a:hover,.w33pg .w33man a:focus-visible{ text-decoration:underline }
/* pop-up colours for the areas that did not have pop-ups before (same card, the area's colour) */
.w33-home .w33pgc,.w33-path .w33pgc,.w33-certs .w33pgc,.w33-medals .w33pgc,.w33-fame .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#FFF8E6); border-color:#EBC86A }
.w33-bank .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#F3F0FF); border-color:#B8A6EC }
.w33-lab .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#F2F7FF); border-color:#A9C4EE }
.w33-parent .w33pgc{ background:linear-gradient(180deg,#FFFFFF,#F5F0FF); border-color:#C3AEEF }
/* companion tip titles: solid pill, white text (Bilcho green · Shulka purple · Mr. Ferenji pink · Sinzro blue) */
html body.wpv #view .tn-tip .b29tipt .tp53.tp53.tp53, html body #view .tp53.tp53, html body #h32wrap .tp53.tp53, html body .tp53.tp53.tp53{display:inline-block!important;padding:3px 14px!important;border-radius:999px!important;color:#fff!important;font-weight:800!important;font-size:16px!important;line-height:1.3!important;margin:0 0 6px!important;-webkit-text-fill-color:#fff!important;border:0!important;box-shadow:0 1px 3px rgba(0,0,0,.15)!important;width:auto!important}
html body .tp53.tp53.tp-bil, html body.wpv #view .tn-tip .b29tipt .tp53.tp-bil.tp-bil, html body #view .tp53.tp-bil.tp-bil, html body #h32wrap .tp53.tp-bil.tp-bil{background:#2E9E5B!important}
html body .tp53.tp53.tp-shu, html body.wpv #view .tn-tip .b29tipt .tp53.tp-shu.tp-shu, html body #view .tp53.tp-shu.tp-shu, html body #h32wrap .tp53.tp-shu.tp-shu{background:#7B4FD6!important}
html body .tp53.tp53.tp-fer, html body.wpv #view .tn-tip .b29tipt .tp53.tp-fer.tp-fer, html body #view .tp53.tp-fer.tp-fer, html body #h32wrap .tp53.tp-fer.tp-fer{background:#D63F8C!important}
html body .tp53.tp53.tp-sin, html body.wpv #view .tn-tip .b29tipt .tp53.tp-sin.tp-sin, html body #view .tp53.tp-sin.tp-sin, html body #h32wrap .tp53.tp-sin.tp-sin{background:#2F6FE0!important}

/* test53 (Beti): on phones every page banner shows the WHOLE picture (the gold banners were zoomed to fill an 84px box,
   which cut off their right side: "My Pro…", "Hall of Mathe…"). Same rule for every page, so new banners fit too. */
@media (max-width:700px){
  html body #view > .pg > .phero.phero:not(.ibx-gone):has(> img.s32std){ height:auto !important; min-height:0 !important; max-height:none !important; padding:0 !important; aspect-ratio:auto !important; }
  html body #view > .pg > .phero.phero > img.s32std.s32std{ position:static !important; display:block !important; width:100% !important; height:auto !important; max-height:none !important; min-height:0 !important; object-fit:contain !important; aspect-ratio:auto !important; }
}

/* test53 (Beti's new banner set, Nov 16): every page banner runs edge to edge across the page at its own shape,
   centred on a clean background (no coloured side bars). One rule for all pages, so each new banner just drops in. */
@media (min-width:701px){
  html body #view > .pg > .phero.phero:not(.ibx-gone):has(> img.s32std){ height:auto !important; min-height:0 !important; max-height:none !important; padding:0 !important; background:transparent !important; box-shadow:none !important; border:0 !important; display:flex !important; justify-content:center; overflow:visible !important; aspect-ratio:auto !important; }
  html body #view > .pg > .phero.phero > img.s32std.s32std{ position:static !important; display:block !important; width:100% !important; height:auto !important; max-height:none !important; min-height:0 !important; object-fit:fill !important; aspect-ratio:auto !important; }
}
html body #view > .pg > .phero.phero:not(.ibx-gone):has(> img.s32std){ background:transparent !important; box-shadow:none !important; }
/* Beti (Nov 16): one standard tip label: same pill, white text; Parent Desk tip in the Parent Desk green */
html body .tp53.tp53.tp-par, html body #view .tp53.tp-par.tp-par{ background:#2E7D4F!important }
html body .tp53.tp53.tp53, html body #h32wrap .tp53.tp53, html body #view .tp53.tp53{ color:#FFFFFF!important }
/* Beti (Nov 16): companion tip cards, one standard layout everywhere: character left, label + text beside it,
   centred in the card, never cut off (the English tip stacked into a fixed-height column at some widths and hid its text) */
html body #view .tnc.tn-tip{ justify-content:center !important; }
html body #view .tnc.tn-tip.tn-tip > .b29tip.b29tip, html body #view .tnc.tn-tip.ds-full > .b29tip.b29tip{ display:flex !important; flex-direction:row !important; justify-content:center !important; align-items:center !important; gap:16px !important;
  height:auto !important; max-height:none !important; overflow:visible !important; text-align:left !important; }
html body #view .tnc.tn-tip > .b29tip > img{ flex:none; width:72px !important; height:auto !important; max-height:96px !important; object-fit:contain; }
html body #view .tnc.tn-tip > .b29tip > .b29tipt{ flex:1; min-width:0; }
html body #view .tnc.tn-tip > .b29tip > .b29tipt > p{ margin:6px 0 0 !important; line-height:1.45; overflow:visible !important; -webkit-line-clamp:unset !important; display:block !important; }
@media (max-width:480px){ html body #view .tnc.tn-tip > .b29tip > img{ width:56px !important } }
html body #view .tp53.tp53dup.tp53dup{ display:none !important }   /* second, repeated tip title on one card */
/* standard tip text: left-aligned, no separator line, full text always visible */
html body #view :is(.tn-tip,.wcomp) .b29tipt, html body #view :is(.tn-tip,.wcomp) .b29tipt p, html body #view .wcb, html body #view .wcb p{ text-align:left !important; }
html body #view :is(.tn-tip,.wcomp) .b29tipt p, html body #view .wcb p{ border:0 !important; padding-top:0 !important; max-height:none !important; overflow:visible !important; -webkit-line-clamp:unset !important; }
html body #view :is(.tn-tip,.wcomp) .b29tipt::before, html body #view :is(.tn-tip,.wcomp) .b29tipt::after{ display:none !important; }
html body #view :is(.tn-tip,.wcomp){ height:auto !important; min-height:0; }

/* ==== liq-inbox53.css ==== */
/* test53 · My Message Box: dedicated inbox layout (no banner, no footer) */
html body #view .ibx-gone, html body #view.tn-central > .pg > .phero.ibx-gone, html body #view > .pg > .ibx-gone.ibx-gone{ display:none!important }
#view .ibx{ background:#fff; border:1.5px solid #D9E2F2; border-radius:20px; padding:18px 20px; box-shadow:0 4px 14px rgba(30,60,120,.06); margin:4px 0 16px }
#view .ibx-h{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin:0 0 12px }
#view .ibx-h h1{ margin:0; font:800 28px/1.15 'Baloo 2',Nunito,system-ui,sans-serif; color:#13285E }
#view .ibx-n{ font:600 15px Nunito,system-ui,sans-serif; color:#5A6782 }
#view .ibx-f{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px }
#view .ibx-chip{ border:1.5px solid #C9D3F2; background:#F4F7FF; color:#24326B; border-radius:999px; padding:7px 14px; font:800 14px Nunito,system-ui,sans-serif; cursor:pointer; min-height:40px }
#view .ibx-chip.on{ background:#2F6FE0; border-color:#2F6FE0; color:#fff }
#view .ibx-chip i{ font-style:normal; background:#E5484D; color:#fff; border-radius:999px; padding:0 7px; margin-left:4px; font-size:12px }
#view .ibx-g{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; align-items:start }
#view .ibx-list{ border:1.5px solid #E3E9F6; border-radius:14px; overflow:hidden; max-height:min(64vh,640px); overflow-y:auto; background:#FBFCFF }
#view .ibx-list .w34day{ margin:0; padding:8px 14px; font:800 13px Nunito,system-ui,sans-serif; letter-spacing:.04em; text-transform:uppercase; color:#5A6782; background:#F1F5FD; border-bottom:1px solid #E3E9F6 }
#view .ibx-list .note{ margin:0!important; border:0!important; border-bottom:1px solid #E9EEF8!important; border-radius:0!important; background:#fff!important; box-shadow:none!important; cursor:pointer; padding:10px 12px!important }
#view .ibx-list .note:hover{ background:#F4F8FF!important }
#view .ibx-list .note.ibx-unread{ box-shadow:inset 4px 0 0 #2F6FE0!important }
#view .ibx-list .note.ibx-unread .nt2{ font-weight:800 }
#view .ibx-list .note.ibx-sel{ background:#E8F0FF!important }
#view .ibx-list .note .nt2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
#view .ibx-list .note .note-arr{ display:none }
#view .ibx-d{ position:sticky; top:110px; border:1.5px solid #E3E9F6; border-radius:14px; background:linear-gradient(180deg,#FFFFFF,#F6F9FF); min-height:220px; padding:18px }
#view .ibx-hint{ display:grid; place-items:center; text-align:center; color:#5A6782; min-height:180px } #view .ibx-hint span{ font-size:40px }
#view .ibx-m .ibx-i{ font-size:40px; line-height:1 } #view .ibx-m .ibx-t{ font:700 19px/1.45 Nunito,system-ui,sans-serif; color:#1E2A44; margin:10px 0 6px }
#view .ibx-m .ibx-w{ font:600 14px Nunito,system-ui,sans-serif; color:#5A6782; margin:0 0 14px }
#view .ibx-empty, #view .ibx-none{ padding:16px; color:#5A6782; margin:0 }
#view .ibx > .fb.info{ margin:0 0 12px }
@media (max-width:760px){ #view .ibx{ padding:14px 12px } #view .ibx-g{ grid-template-columns:1fr } #view .ibx-d{ position:static; order:-1; min-height:0 } #view .ibx-hint{ min-height:0 } #view .ibx-hint span{ font-size:28px } #view .ibx-list{ max-height:none } }

/* ==== liq-profile53.css ==== */
/* =====================================================================
   test53 · My Profile (Beti's redesign, Nov 16)
   Three clear pages drawn by liq-profile25.js liveHTML(): My Profile · My Learning · My Goals.
   One card style everywhere (same white card, soft border and heading as the other world pages).
   ===================================================================== */
.pf{ display:grid; gap:14px; }
.pf-card{ background:#fff; border:1.5px solid var(--tnB,#E2C9AE); border-radius:22px; padding:16px 18px; box-shadow:0 6px 18px rgba(20,36,79,.06); min-width:0; }
/* on the home grid each section is already inside a card: don't draw a second box */
#view.tn .tn-part > .pf-card{ border:0; box-shadow:none; padding:0; background:transparent; }
.pf-h{ display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:17px; color:var(--tnInk,#3E2516); }
.pf-sub{ margin:12px 0 4px; font-weight:700; font-size:13px; color:#7A5A2E; }
.pf-ul{ margin:0; padding-left:20px; line-height:1.5; }
.pf-c{ margin-top:4px; }

/* ---- About me: picture, name, ID, grade, rank and title in ONE card ---- */
.pf-me{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px; align-items:center; }
.pf-av{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.pf-frame.rkframe{ width:108px; height:108px; padding:5px; }
.pf-frame.rkframe .avatar{ width:98px !important; height:98px !important; font-size:44px; }
.pf-frame .rkseal{ right:-2px; bottom:0; }
.pf-link{ background:none; border:0; padding:2px 4px; font:inherit; font-size:13px; font-weight:600; color:#2F6FE0; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.pf-link:hover{ color:#1E4FB0; }
.pf-id{ min-width:0; }
.pf-id h3{ margin:0 0 4px; font-size:24px; color:#3B2508; }
.pf-facts{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:14px; color:#5A4630; margin-bottom:8px; }
.pf-lv{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; font-size:15px; }
.pf-lv .p25-pill{ margin:0; }
.pf-id .p25-bar{ display:block; max-width:440px; }
.pf-more{ margin:0; display:grid; gap:8px; padding-left:18px; border-left:1px solid #EADFCB; font-size:14px; }
.pf-more div{ display:grid; gap:1px; }
.pf-more dt{ font-size:12px; color:#7A6650; }
.pf-more dd{ margin:0; font-weight:600; color:#3B2508; }

/* ---- My Four Worlds ---- */
.pf-wgrid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.pf-world{ display:flex; gap:10px; align-items:center; text-align:left; font:inherit; cursor:pointer; padding:10px; border-radius:12px;
  border:1.5px solid color-mix(in srgb,var(--wc) 35%,#fff); background:var(--ws,#fff); min-width:0; }
.pf-world:hover{ border-color:var(--wc); }
.pf-world img{ width:52px; height:52px; object-fit:contain; flex:none; }
.pf-world > span{ display:grid; gap:2px; min-width:0; flex:1; }
.pf-world b{ color:var(--wc); font-size:15px; }
.pf-world small{ color:#5A4630; font-size:12px; }
.pf-world i{ font-style:normal; font-size:12px; color:#5A4630; }
.pf-world .p25-bar{ display:block; margin:3px 0 1px; }

/* ---- Next challenge ---- */
.pf-nb{ display:flex; gap:12px; align-items:center; }
.pf-nbe{ font-size:34px; width:56px; height:56px; flex:none; display:grid; place-items:center; border-radius:14px; background:#FFF6DE; border:1.5px solid #E9C66A; }
.pf-nb p{ margin:2px 0 0; }
.pf-go{ margin-top:10px; background:none; border:0; padding:0; font:inherit; font-size:14px; font-weight:600; color:#2F6FE0; cursor:pointer; text-align:left; }
.pf-go:hover{ text-decoration:underline; }

/* ---- My Learning / My Goals ---- */
.pf-p-learning, .pf-p-goals{ grid-template-columns:1fr 1fr; }
.pf-p-learning .pf-act{ grid-column:1 / -1; }
.pf-stats{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.pf-stat{ display:grid; gap:2px; padding:10px 12px; border-radius:12px; background:#FBF6EC; border:1px solid #EFE4CF; }
.pf-stat span{ font-size:20px; }
.pf-stat b{ font-size:18px; color:#3B2508; }
.pf-stat small{ font-size:12px; color:#6B5A44; }
.pf-goals{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.pf-goals li{ display:grid; gap:4px; }
.pf-goals .p25-bar{ display:block; }

/* ---- tablets and phones ---- */
@media (max-width:900px){
  .pf-wgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pf-me{ grid-template-columns:auto minmax(0,1fr); }
  .pf-more{ grid-column:1 / -1; border-left:0; border-top:1px solid #EADFCB; padding:10px 0 0; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:640px){
  .pf-card{ padding:14px; }
  .pf-me{ grid-template-columns:1fr; justify-items:center; text-align:center; gap:12px; }
  .pf-facts, .pf-lv{ justify-content:center; }
  .pf-id .p25-bar{ margin:0 auto; }
  .pf-more{ grid-template-columns:1fr 1fr; text-align:left; justify-self:stretch; }
  .pf-p-learning, .pf-p-goals{ grid-template-columns:1fr; }
  .pf-stats{ grid-template-columns:1fr 1fr; }
  .pf-wgrid{ grid-template-columns:1fr; }
}
/* home grid: the About-me card and My Four Worlds run the full width; Next Challenge sits beside Bilcho's tip */
html body #view.tn.tn-prof .tngrid > .tnc:has(> .pf-me), html body #view.tn.tn-prof .tngrid > .tnc:has(> .pf-worlds){ grid-column:1 / -1 !important; }
/* phones: an older top-bar rule shrinks every .rkframe to 40px; keep the profile picture its own size */
@media (max-width:640px){
  html body #view .pf-frame.rkframe{ width:96px !important; height:96px !important; padding:4px; }
  html body #view .pf-frame.rkframe .avatar{ width:88px !important; height:88px !important; font-size:40px; }
}
@media (min-width:641px){
  html body #view .pf-frame.rkframe{ width:108px !important; height:108px !important; }
  html body #view .pf-frame.rkframe .avatar{ width:98px !important; height:98px !important; }
}
/* Beti (Nov 16 16:44): the About-me card is split equally; the divider sits in the middle and age, languages and
   curriculum fill the right half (two columns), instead of being pushed to the far right edge */
@media (min-width:901px){
  html body #view .pf-me{ grid-template-columns:auto minmax(0,1fr) 50%; column-gap:24px; }
  html body #view .pf-me > .pf-more{ align-self:stretch; align-content:center; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; padding-left:28px; border-left:2px solid #EADFCB; font-size:16px; }
  html body #view .pf-me > .pf-more dt{ font-size:13px; }
}

/* ==== liq-lab53.css ==== */
/* =====================================================================
   test53 (Beti): Math LiQ Lab › My Progress › Lab Rank
   The Lab's ".lrrow" shares its name with the Bilcho learning report rows (liq-bilcho.css: 44px | 1fr | 18px columns),
   which squeezed every requirement label into 44px ("Mistakes / fixed / on / the / 2nd / try"). The Lab rows get their
   own layout back here, scoped to the rank cards. The four ranks sit two per row on wide screens (Guru across the
   bottom), and the "← Lab home · My Lab rank" row is hidden: the breadcrumb and the title strip already say it.
   ===================================================================== */
html body #view .lranks{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
/* the first three ranks: label and count on one line, the bar underneath (fits a third of the page) */
html body #view .lrank:not(.gurucard) .lrb .lrrow{ grid-template-columns:minmax(0,1fr) 44px; row-gap:5px; }
html body #view .lrank:not(.gurucard) .lrb .lrrow .bar{ grid-column:1 / -1; grid-row:2; }
html body #view .lrank .lrb > .tag{ align-self:flex-start; }
html body #view .lranks > .lrank.gurucard{ grid-column:1 / -1; }
html body #view .lrank{ align-items:flex-start; gap:14px; padding:14px 16px; border-radius:18px; min-width:0; }
html body #view .lrank .lrb{ min-width:0; gap:6px; }
html body #view .lrank .lrb > b{ font-size:18px; line-height:1.2; }
html body #view .lrb .lrrow{ display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,38%) 48px; gap:10px; align-items:center;
  padding:6px 0; border:0; border-top:1px solid rgba(0,0,0,.06); width:auto; background:none; font-size:14px; font-weight:700; line-height:1.3; }
html body #view .lrb .lrrow > span:first-child{ white-space:normal; word-break:normal; }
html body #view .lrb .lrrow .bar{ margin:0; height:10px; }
html body #view .lrb .lrrow > b{ text-align:right; font-size:14px; white-space:nowrap; }
html body #view .lrank.gurucard .lrb .lrrow{ grid-template-columns:minmax(0,1fr) minmax(120px,45%) 56px; }
/* the old header row (back button + "My Lab rank") repeats the breadcrumb and title strip */
html body #view.tn-lab section.card:has(> .lranks) > .row:has(#labHome){ display:none; }
@media (max-width:900px){
  html body #view .lranks{ grid-template-columns:1fr; }
  html body #view .lrank{ padding:12px; }
  html body #view .lrb .lrrow, html body #view .lrank.gurucard .lrb .lrrow{ grid-template-columns:minmax(0,1fr) 44px; }
  html body #view .lrb .lrrow .bar{ grid-column:1 / -1; grid-row:2; }
}

/* ==== liq-home53.css ==== */
/* =====================================================================
   test53 · Student Home (Beti, Nov 16 08:03): back to the test52 Home style.
   The notebook design was withdrawn: grid paper, the gold frame, the cards and the footer are exactly as in test52.
   Only the banner is new (banner-home-53.webp, set in liq-home33.js); it fills the frame width at its own shape,
   with no white strip or empty space around it.
   ===================================================================== */
html body.hpv.hpv #hud #bigBanner img#homeBtn.banner.banner{ width:100% !important; max-width:100% !important; height:auto !important; max-height:none !important; min-height:0 !important;
  aspect-ratio:auto !important; object-fit:fill !important; margin:0 !important; background:transparent !important; box-shadow:none !important; border-radius:0 !important;
  -webkit-mask-image:none !important; mask-image:none !important; }
/* Beti (Nov 16 08:34): smaller gap between the light-blue student bar and the banner (inside the gold frame: 16px -> 6px) */
html body.hpv.hpv #hud #bigBanner{ padding-top:6px !important; }
/* the boy's hood rises above the banner panel (top 2.6% of the picture's width is empty beside it): lift the picture so the
   panel sits close under the student bar and the hood steps over the gold frame line */
html body.hpv.hpv #hud #bigBanner img#homeBtn.banner.banner{ margin-top:-2.3% !important; position:relative; z-index:2; }
html body.hpv.hpv #hud #bigBanner{ overflow:visible !important; }

/* ==== liq-profpop35.css ==== */
/* ===== floating profile card (liq-profpop35.js) ===== */
.lpp{ position:fixed; inset:0; z-index:300; display:grid; place-items:center; padding:24px 14px; background:rgba(20,28,50,.35);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:lppfade .15s ease-out }
@keyframes lppfade{ from{ opacity:0 } } @keyframes lpppop{ from{ transform:scale(.96); opacity:0 } }
@media (prefers-reduced-motion:reduce){ .lpp,.lpp-card{ animation:none } }
.lpp-card{ position:relative; width:min(640px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:34px 22px 16px; border-radius:28px;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(140,200,120,.35), transparent 60%),
    radial-gradient(90% 60% at 10% 0%, rgba(150,200,255,.35), transparent 60%),
    linear-gradient(180deg,#FFF7E4 0%,#FFF2D6 100%);
  border:4px solid #E9B949; box-shadow:0 0 0 3px #FFF1C4 inset, 0 24px 60px rgba(30,20,0,.30); font-family:var(--ds-font,Nunito,system-ui,sans-serif); color:#1F2433;
  animation:lpppop .18s ease-out }
.lpp-card::after{ content:""; display:block; height:10px; margin:10px -22px -16px; background:linear-gradient(90deg,#1E9A45 0 33%,#F6C624 33% 66%,#D93A2B 66%) }
.lpp-ribbon{ position:sticky; top:-34px; margin:-34px auto 10px; width:max-content; padding:6px 22px; border-radius:0 0 16px 16px;
  background:linear-gradient(180deg,#E8483B,#C42F25); color:#fff; font:800 20px/1.2 var(--ds-font-head,'Baloo 2',Nunito,sans-serif); box-shadow:0 4px 10px rgba(150,30,20,.3); z-index:2 }
.lpp-x{ position:absolute; top:10px; right:10px; width:42px; height:42px; border-radius:50%; border:2px solid #E9D3A0; background:#fff; font-size:18px; font-weight:900; cursor:pointer; z-index:3; box-shadow:0 3px 8px rgba(0,0,0,.12) }
.lpp-top{ display:flex; align-items:center; gap:18px }
.lpp-av{ position:relative; flex:none; width:132px; height:132px; border-radius:50%; padding:6px; background:conic-gradient(#F6D365,#E9A93A,#F6D365,#FFE9A8,#F6D365); box-shadow:0 6px 16px rgba(160,110,10,.3) }
.lpp-av img, .lpp-av .lpp-noav{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:grid; place-items:center; background:#E8DFF7; border:3px solid #fff; font-size:42px }
.lpp-crown{ position:absolute; top:-22px; left:50%; transform:translateX(-50%); font-size:30px; filter:drop-shadow(0 2px 2px rgba(0,0,0,.2)) }
.lpp-avrank{ position:absolute; left:50%; bottom:-10px; transform:translateX(-50%); white-space:nowrap; padding:3px 14px; border-radius:10px; background:linear-gradient(180deg,#7B4FE0,#5A35B8); color:#fff; font:800 14px/1.3 var(--ds-font-head,'Baloo 2',sans-serif); box-shadow:0 3px 8px rgba(70,40,150,.35) }
.lpp-id{ flex:1; min-width:0 }
.lpp-id h2{ margin:0 0 6px; font:800 30px/1.1 var(--ds-font-head,'Baloo 2',sans-serif); color:#14235A; overflow-wrap:anywhere }
.lpp-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px }
.lpp-pills span{ padding:4px 12px; border-radius:999px; background:#fff; border:1.5px solid #EADFC4; font-weight:700; font-size:14px }
.lpp-rank{ display:flex; align-items:center; gap:10px; padding:8px 14px; border-radius:18px; background:linear-gradient(90deg,#FFF3C8,#FFE7A0); border:2px solid #F0CC6A }
.lpp-rank .lpp-rk{ width:52px; height:52px; flex:none; font-size:34px }
.lpp-rank small{ display:block; font-size:13px; color:#6A5420; font-weight:700 } .lpp-rank b{ display:block; font:800 24px/1.1 var(--ds-font-head,'Baloo 2',sans-serif); color:#5A35B8 }
.lpp-rank i{ font-style:normal; font-size:13px; color:#6A5420 }
.lpp-stats{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:22px 0 12px }
.lpp-s{ display:flex; flex-direction:column; align-items:center; padding:10px 6px; border-radius:18px; border:2px solid; text-align:center }
.lpp-s span{ font-size:28px; line-height:1 } .lpp-s b{ font:800 22px/1.2 var(--ds-font-head,'Baloo 2',sans-serif); margin-top:4px } .lpp-s small{ font-size:14px; font-weight:700; color:#3B3F52 }
.lpp-s.y{ background:#FFF3C7; border-color:#F2D27A } .lpp-s.p{ background:#FFE3EE; border-color:#F3B4CC } .lpp-s.b{ background:#E1EEFF; border-color:#AFCBF2 } .lpp-s.l{ background:#EEE5FF; border-color:#CDBDF2 }
.lpp-next{ padding:12px 16px; border-radius:18px; background:#fff; border:2px solid #EFE2C2 }
.lpp-nh{ font-weight:700; font-size:16px } .lpp-nh b{ color:#5A35B8; font:800 19px var(--ds-font-head,'Baloo 2',sans-serif) }
.lpp-bar{ height:14px; margin:8px 0 4px; border-radius:999px; background:#E7E3DA; overflow:hidden } .lpp-bar i{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#3DBE4A,#2E9A3A) }
.lpp-nn{ text-align:right; font-size:14px; font-weight:700; color:#3B3F52 }
.lpp-go{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:14px }
.lpp-b{ min-height:46px; border:0; border-radius:14px; color:#fff; font:800 15px/1.15 var(--ds-font-head,'Baloo 2',sans-serif); cursor:pointer; padding:6px 10px; box-shadow:0 4px 0 rgba(0,0,0,.18) }
.lpp-b.pu{ background:linear-gradient(180deg,#8A5BEA,#6438C9) } .lpp-b.bl{ background:linear-gradient(180deg,#3C86F0,#1F63D6) } .lpp-b.gr{ background:linear-gradient(180deg,#38B24B,#22893A) }
.lpp-b:hover{ filter:brightness(1.06) } .lpp-b:active{ transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.18) }
.lpp-full{ display:block; margin:10px auto 6px; min-height:38px; padding:0 14px; border:0; background:none; color:#5A35B8; font-weight:800; font-size:15px; text-decoration:underline; cursor:pointer }
.lpp :is(button):focus-visible{ outline:3px solid #2F6FE0; outline-offset:2px }
body.lpp-open{ overflow:hidden }
@media (max-width:560px){
  .lpp-card::after{ margin:10px -14px -14px } .lpp-s{ padding:6px } .lpp-s span{ font-size:22px } .lpp-stats{ margin:16px 0 10px } .lpp-b{ min-height:44px }
  .lpp{ padding:14px 10px } .lpp-card{ padding:30px 14px 14px; border-radius:22px }
  .lpp-top{ flex-direction:column; text-align:center; gap:16px } .lpp-pills{ justify-content:center } .lpp-rank{ justify-content:center; text-align:left }
  .lpp-av{ width:112px; height:112px } .lpp-id h2{ font-size:26px }
  .lpp-stats{ grid-template-columns:repeat(2,minmax(0,1fr)) } .lpp-go{ grid-template-columns:1fr } }

/* ---- test45 (Beti's spec 4F): profile card header — title on the left, the picture in the middle framed exactly like the
   top-bar picture (rank-coloured ring + rank number), then name, level and ONE rank label. No crown, no Amharic line. ---- */
.lpp-ribbon.lpp-ribbon-l{ margin:-34px auto 10px 0!important; border-radius:0 0 16px 0!important; padding:6px 18px!important }
.lpp-top.lpp-top2{ display:flex!important; flex-direction:column; align-items:center; text-align:center; gap:6px; margin:4px 0 14px }
.lpp-top2 .lpp-avf{ position:relative; display:inline-block; width:112px; height:112px; padding:5px; border-radius:50%; background:var(--rc); box-shadow:0 0 0 3px #F2C14E, 0 6px 16px rgba(0,0,0,.18) }
.lpp-top2 .lpp-avf .avatar{ width:102px!important; height:102px!important; border-radius:50%; object-fit:cover; display:grid; place-items:center; background:#fff; font-size:40px }
.lpp-top2 .lpp-avf .rkseal{ right:-2px!important; bottom:2px!important; min-width:34px!important; height:34px!important; border-radius:17px!important; font-size:18px!important }
.lpp-top2 h2{ margin:4px 0 0; font:800 26px/1.15 'Baloo 2',Nunito,sans-serif; color:#1F1A3D }
.lpp-top2 .lpp-lvl{ font-weight:700; color:#4A3F6B } .lpp-top2 .lpp-lvl b{ color:#1F1A3D }

/* ==== liq-float35.css ==== */
/* ===== floating quick panels (liq-float35.js) — small 360px · medium 460px · large 640px ===== */
.lfp{ position:fixed; inset:0; z-index:300; display:grid; place-items:center; padding:16px 12px; background:rgba(20,28,50,.25); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); animation:lfpf .12s ease-out }
.lfp.anch{ display:block; background:rgba(20,28,50,.12); -webkit-backdrop-filter:none; backdrop-filter:none }
.lfp.anch .lfp-card{ position:fixed }
@keyframes lfpf{ from{ opacity:0 } } @keyframes lfpp{ from{ transform:translateY(-6px); opacity:0 } }
@media (prefers-reduced-motion:reduce){ .lfp,.lfp-card{ animation:none } }
.lfp-card{ width:min(var(--w),100%); max-height:min(76vh,640px); display:flex; flex-direction:column; border-radius:22px; background:#fff; border:2px solid var(--bd);
  box-shadow:0 18px 44px rgba(20,30,60,.22); overflow:hidden; font-family:var(--ds-font,Nunito,system-ui,sans-serif); color:#1F2433; animation:lfpp .14s ease-out }
.lfp-s{ --w:360px } .lfp-m{ --w:460px } .lfp-l{ --w:640px }
.lfp-card > header{ display:flex; align-items:center; gap:10px; padding:12px 12px 10px 16px; background:linear-gradient(180deg,var(--h1),var(--h2)); border-bottom:2px solid var(--bd) }
.lfp-hi{ font-size:24px } .lfp-card h3{ flex:1; margin:0; font:800 20px/1.2 var(--ds-font-head,'Baloo 2',sans-serif); color:var(--ink) }
.lfp-x{ width:40px; height:40px; border-radius:50%; border:2px solid var(--bd); background:#fff; font-size:16px; font-weight:900; cursor:pointer; flex:none }
.lfp-body{ padding:12px 16px; overflow:auto }
.lfp-card > footer{ padding:10px 16px 14px; border-top:1.5px solid #EEF0F5; background:#FCFCFE }
.lfp-all{ width:100%; min-height:44px; border:0; border-radius:12px; background:var(--a); color:#fff; font:800 15px/1.2 var(--ds-font-head,'Baloo 2',sans-serif); cursor:pointer }
.lfp-all:hover{ filter:brightness(1.06) }
.lfp :is(button):focus-visible{ outline:3px solid #2F6FE0; outline-offset:2px }
.lfp-sub{ font-size:14px; color:#4A5266; margin:0 0 10px } .lfp-sub b{ color:var(--ink) }
.lfp h4{ margin:12px 0 6px; font:800 16px/1.2 var(--ds-font-head,'Baloo 2',sans-serif); color:var(--ink) }
.lfp-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px }
.lfp-list li{ position:relative; display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:14px; background:var(--soft); border:1.5px solid var(--bd2) }
.lfp-list li.new{ background:#fff; border-color:var(--a) }
.lfp-i{ font-size:20px; line-height:1.2; flex:none } .lfp-i.big{ font-size:26px }
.lfp-t{ display:block; font-size:15px; line-height:1.35 } .lfp-list small, .lfp-tx small, .lfp-tile small{ display:block; font-size:13px; color:#6A7285; margin-top:2px }
.lfp-dot{ position:absolute; top:12px; right:12px; width:10px; height:10px; border-radius:50%; background:#E5484D }
.lfp-empty{ justify-content:center; color:#6A7285; font-size:14px; background:transparent!important; border-style:dashed!important }
/* Star Bank */
.lfp-bal{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:16px; background:linear-gradient(180deg,#FFF6D2,#FDE9A6); border:2px solid #EFD27A }
.lfp-bal > span{ font-size:34px } .lfp-bal b{ display:block; font:800 30px/1 var(--ds-font-head,'Baloo 2',sans-serif); color:#5A3B00 } .lfp-bal small{ font-size:13px; color:#6A5420 }
.lfp-bal2{ margin-left:auto; text-align:right } .lfp-bal2 b{ font-size:20px!important }
.lfp-goal{ margin:10px 0 0; padding:8px 12px; border-radius:12px; background:var(--soft); border:1.5px dashed var(--bd2); font-size:14px }
.lfp-tx{ list-style:none; margin:0; padding:0 } .lfp-tx li{ display:grid; grid-template-columns:1fr auto; gap:0 10px; padding:8px 0; border-bottom:1px solid #EEF0F5 }
.lfp-tx li small{ grid-column:1 } .lfp-tx .lfp-t{ font-size:14px } .lfp-tx b{ font-size:15px; white-space:nowrap } .lfp-tx b.up{ color:#1F8A3A } .lfp-tx b.dn{ color:#C62828 }
/* medals */
.lfp-tiles{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.lfp-tile{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:12px 10px; border-radius:16px; border:2px solid; background:#fff }
.lfp-tile > span:first-child{ font-size:36px } .lfp-tile b{ font:800 16px/1.2 var(--ds-font-head,'Baloo 2',sans-serif); margin-top:4px } .lfp-tile .lfp-t{ font-size:14px; color:#4A5266 }
.lfp-tile.bronze{ border-color:#E2B48A; background:#FFF6EE } .lfp-tile.silver{ border-color:#C9D2DD; background:#F6F8FB } .lfp-tile.gold{ border-color:#EFD27A; background:#FFFBEA }
/* certificates */
.lfp-steps{ display:flex; justify-content:center; gap:8px; margin:2px 0 10px } .lfp-steps i{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-weight:800; border:2px dashed #2E8A3C; color:#2E8A3C }
.lfp-steps i.on{ background:#2E8A3C; color:#fff; border-style:solid }
/* secret words */
.lfp-letters{ display:flex; gap:4px; margin-top:6px; flex-wrap:wrap } .lfp-letters i{ width:30px; height:34px; border-radius:8px; display:grid; place-items:center; font-style:normal; font-weight:800; background:#EDE6FF; color:#6B4FD8; border:1.5px dashed #B9A6EE }
.lfp-letters i.on{ background:#6B4FD8; color:#fff; border-style:solid }
/* each panel keeps its own identity */
.lfp-nt{ --a:#2F6FE0; --bd:#B9D3F5; --bd2:#DCE8FA; --h1:#F3F8FF; --h2:#E2EEFF; --soft:#F6F9FF; --ink:#14244F }
.lfp-sb{ --a:#6A3FB5; --bd:#D2C2F2; --bd2:#E6DCFA; --h1:#FBF8FF; --h2:#EFE6FF; --soft:#FAF7FF; --ink:#2B1B4A }
.lfp-md{ --a:#B8692E; --bd:#EBC9A6; --bd2:#F3DEC8; --h1:#FFF8EF; --h2:#FBE8D3; --soft:#FFFAF4; --ink:#4A2A10 }
.lfp-tr{ --a:#A86E12; --bd:#EED39A; --bd2:#F5E3BB; --h1:#FFFBEE; --h2:#FBEBC6; --soft:#FFFCF4; --ink:#3E2A08 }
.lfp-ct{ --a:#2E8A3C; --bd:#B5DEA6; --bd2:#D6EECB; --h1:#F4FBEF; --h2:#E0F3D6; --soft:#F7FCF4; --ink:#173A1C }
.lfp-sw{ --a:#6B4FD8; --bd:#CDBDF2; --bd2:#E3D9FA; --h1:#F8F4FF; --h2:#ECE3FF; --soft:#FBF9FF; --ink:#2B1B4A }
body.lfp-open{ overflow:hidden }
@media (max-width:700px){ .lfp-card{ max-height:calc(100vh - 32px) } .lfp-tiles{ grid-template-columns:1fr 1fr } }
/* test34: a notification is a button to its page */
.lfp .lfp-list li.lfp-go{ cursor:pointer; border-radius:12px; transition:background .15s }
.lfp .lfp-list li.lfp-go:hover{ background:#EEF4FF } .lfp .lfp-list li.lfp-go:active{ background:#DCE8FF }
.lfp .lfp-list li.lfp-go:focus-visible{ outline:3px solid #2F6FE0; outline-offset:-2px }
.lfp .lfp-arr{ margin-left:auto; padding-left:6px; font-size:20px; color:#6A7690; align-self:center }
#view .note.note-go{ cursor:pointer; transition:background .15s, box-shadow .15s }
#view .note.note-go:hover{ box-shadow:0 2px 8px rgba(30,60,120,.14) } #view .note.note-go:active{ background:#EEF4FF }
#view .note.note-go:focus-visible{ outline:3px solid #2F6FE0; outline-offset:2px }
#view .note .note-arr{ margin-left:auto; padding-left:8px; font-size:22px; color:#6A7690; align-self:center }

/* test44: drag-to-move title bars (shared) */
.lq-draggable{ cursor:grab; touch-action:none; user-select:none } .lq-draggable.lq-dragging{ cursor:grabbing }
.lpp.anch{ display:block } .lpp.anch .lpp-card{ position:absolute }
.ng-hit{ outline:4px solid #F5B700!important; outline-offset:3px; border-radius:14px; animation:nghit 1.2s ease-in-out 2 }
@keyframes nghit{50%{outline-color:#FFE48A}}
.note-x{ margin-left:auto; min-width:44px; min-height:44px; border:0; background:none; color:#8A7E66; font-size:16px; cursor:pointer; border-radius:10px }.note-x:hover{ background:#F3EEE2; color:#3A2E2A }

