/* Brand: Arabic Without Fear — petrol green, beige, soft orange, white (see brand guide) */
:root {
  --teal: #0E5F63; --teal2: #14858A; --sun: #F29E4C; --coral: #E8735A; --sky: #38bdf8; --grape: #8b5cf6;
  --ink: #1e293b; --muted: #64748b; --bg: #F6F0E4; --card: #ffffff; --ok: #16a34a; --bad: #dc2626;
  --boy: #2563eb; --girl: #db2777; --radius: 22px; --shadow: 0 6px 0 rgba(14, 95, 99, .16), 0 10px 24px rgba(0, 0, 0, .07);
}
h1, h2, h3, .brand, .btn, .section-title { font-family: 'Cairo', 'Dubai', sans-serif; }
.bigq, .bgword, .say, .choice, .tile, .hero-bubble, .mascot .mb, .node .lbl { font-family: 'Baloo Bhaijaan 2', 'Cairo', sans-serif; }
.en, .tr { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: 'Tajawal', 'Dubai', 'Segoe UI', sans-serif; direction: rtl; color: var(--ink); font-size: 17px;
  background: radial-gradient(circle at 8% 0%, #d7ecea 0, transparent 38%), radial-gradient(circle at 100% 28%, #fbe3c8 0, transparent 34%), var(--bg); min-height: 100vh; }
img { vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }
.en { font-family: 'Segoe UI', Arial, sans-serif; direction: ltr; unicode-bidi: isolate; color: var(--muted); font-size: .78em; font-weight: 400; }
.tr { font-family: 'Segoe UI', Arial, sans-serif; direction: ltr; color: #94a3b8; font-size: .72em; font-style: italic; }
.hide-en .en, .hide-tr .tr { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: rgba(255, 253, 245, .9); backdrop-filter: blur(8px); border-bottom: 2px solid #e2e8f0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--teal); text-decoration: none; }
.brand img { height: 38px; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #e2e8f0; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 16px; }
.pill img { height: 22px; }
.iconbtn { background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 4px 8px; font-size: 18px; }
.iconbtn img { height: 26px; }
.me { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.me .av { font-size: 26px; }

main { max-width: 1050px; margin: 0 auto; padding: 18px 14px 120px; }
h1, h2, h3 { margin: .2em 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: none; border-radius: 18px; padding: 12px 22px; font-size: 20px; font-weight: 800;
  background: var(--teal); color: #fff; box-shadow: 0 5px 0 #083f42; transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #083f42; }
.btn.sun { background: var(--sun); color: #4a2600; box-shadow: 0 5px 0 #c4762c; }
.btn.coral { background: var(--coral); box-shadow: 0 5px 0 #b54f3a; }
.btn.ghost { background: #fff; color: var(--teal); border: 3px solid var(--teal); box-shadow: 0 5px 0 #cbd5e1; }
.btn.small { font-size: 16px; padding: 8px 14px; border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn img { height: 26px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; padding: 20px 0; }
.hero h1 { font-size: clamp(40px, 6.5vw, 68px); line-height: 1.15; color: var(--teal); font-weight: 900; }
.hero .slogan { font-family: 'Poppins', sans-serif; direction: ltr; color: var(--sun); font-weight: 700; letter-spacing: 3px; font-size: clamp(16px, 2.2vw, 22px); }
.sections { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sec { position: relative; display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border-top: 6px solid var(--teal); transition: transform .15s; }
.sec:hover { transform: translateY(-4px); }
.sec img { height: 52px; }
.sec h3 { margin: 6px 0 2px; font-size: 19px; }
.sec p { margin: 4px 0 0; font-size: 15px; color: #475569; }
.sec.soon { opacity: .7; }
.sec .badge.on { background: #dcfce7; color: #166534; }
.levels { display: flex; flex-direction: column; gap: 12px; }
.lvl-row { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.lvl-tag { text-align: center; }
.lvl-tag b { display: block; font-family: 'Poppins', sans-serif; font-size: 28px; color: #fff; border-radius: 16px; padding: 4px 0; }
.lvl-tag span { font-weight: 700; font-size: 15px; }
.lvl-units { display: flex; flex-wrap: wrap; gap: 8px; }
.u-chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #e7dccb; border-radius: 14px; padding: 4px 10px; background: #fffaf2; text-decoration: none; color: inherit; font-weight: 700; font-size: 15px; }
.u-chip img { height: 28px; }
.u-chip.open { border-color: var(--teal); background: #e6f2f1; }
.u-chip.soon { opacity: .55; }
@media (max-width: 600px) { .lvl-row { grid-template-columns: 1fr; } }
.culture .tipc { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; font-size: 18px; }
.culture .tipc img { height: 60px; }
.hero p.lead { font-size: 22px; margin: 8px 0 18px; }
.hero-stage { position: relative; height: 320px; }
.hero-robo { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 210px; animation: bob 2.4s ease-in-out infinite; }
.hero-bubble { position: absolute; top: 10px; right: 0; left: 0; margin: auto; width: fit-content; max-width: 90%; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 10px 18px; font-size: 22px; font-weight: 700; }
.hero-bubble::after { content: ''; position: absolute; bottom: -16px; left: 50%; border: 10px solid transparent; border-top-color: var(--ink); }
.floaty { position: absolute; width: 56px; animation: floaty 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-14px) rotate(-3deg); } }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(8deg); } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero-stage { height: 260px; } }

.units .unit { position: relative; padding: 16px; text-align: center; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 3px solid transparent; transition: transform .15s; text-decoration: none; color: inherit; display: block; }
.units .unit:hover { transform: translateY(-4px); border-color: var(--teal2); }
.units .unit img { height: 64px; }
.units .unit h3 { font-size: 20px; }
.units .unit.locked { opacity: .55; filter: grayscale(.6); pointer-events: none; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--sun); color: #5b3a00; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
.section-title { font-size: 26px; color: var(--teal); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title img { height: 36px; }
.teacher-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.privacy { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* unit map */
.unit-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit-head h1 { color: var(--teal); font-size: 34px; }
.ladder { display: flex; gap: 6px; align-items: flex-end; margin: 10px 0; }
.ladder .st { flex: 1; border-radius: 10px 10px 4px 4px; padding: 4px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; opacity: .35; }
.ladder .st.on { opacity: 1; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0; }
.node { position: relative; width: 112px; height: 112px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 8px 0 #cbd5e1; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .15s; }
.node img { height: 54px; }
.node .lbl { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-weight: 800; font-size: 18px; background: #fff; padding: 4px 12px; border-radius: 12px; box-shadow: 0 3px 0 #e2e8f0; }
.node.left .lbl { right: 125px; } .node.right .lbl { left: 125px; }
.node .stars { position: absolute; bottom: -12px; display: flex; gap: 1px; }
.node .stars img { height: 22px; }
.node.done { background: #dcfce7; box-shadow: 0 8px 0 #86efac; }
.node.next { background: #fef3c7; box-shadow: 0 8px 0 #fbbf24; animation: pulse 1.4s infinite; }
.node.lock { filter: grayscale(1); opacity: .5; }
.node:active { transform: translateY(5px); }
.path .seg { width: 10px; height: 34px; border-radius: 6px; background: repeating-linear-gradient(to bottom, #cbd5e1 0 8px, transparent 8px 14px); }
@keyframes pulse { 50% { transform: scale(1.07); } }
@media (max-width: 600px) { .node .lbl { font-size: 15px; } .node.left .lbl { right: 118px; } .node.right .lbl { left: 118px; } }

/* activity frame */
.act-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.act-head h2 { color: var(--teal); font-size: 28px; }
.act-head img { height: 44px; }
.progress { height: 14px; background: #e2e8f0; border-radius: 999px; overflow: hidden; flex: 1; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal2), var(--sun)); width: 0; transition: width .4s; }
.speed { display: inline-flex; border: 2px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.speed button { border: none; background: #fff; padding: 6px 12px; font-size: 15px; font-weight: 700; }
.speed button.on { background: var(--teal); color: #fff; }

.wcard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 12px; text-align: center; border: 3px solid transparent; cursor: pointer; transition: transform .12s; position: relative; }
.wcard:hover { transform: translateY(-3px); }
.wcard.heard { border-color: #86efac; }
.wcard img.pic { height: 70px; }
.wcard .ar { font-size: 22px; font-weight: 800; color: var(--teal); margin-top: 4px; }
.wcard .mini { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.wcard .mini button { border: 2px solid #e2e8f0; background: #fff; border-radius: 10px; font-size: 14px; padding: 2px 8px; }
.wcard.playing { animation: wiggle .5s; border-color: var(--sun); }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.choice { background: #fff; border: 3px solid #e2e8f0; border-radius: 18px; padding: 14px; font-size: 22px; font-weight: 800; box-shadow: 0 5px 0 #e2e8f0; transition: transform .1s; }
.choice:active { transform: translateY(3px); }
.choice img { height: 56px; display: block; margin: 0 auto 4px; }
.choice.ok { border-color: var(--ok); background: #dcfce7; box-shadow: 0 5px 0 #86efac; }
.choice.no { animation: shake .4s; border-color: var(--bad); background: #fee2e2; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.bigq { text-align: center; font-size: 30px; font-weight: 800; margin: 10px 0; }
.bigq img { height: 96px; display: block; margin: 0 auto 6px; }
.playbig { font-size: 40px; width: 110px; height: 110px; border-radius: 50%; border: none; background: var(--sun); box-shadow: 0 7px 0 #c98a00; margin: 8px auto; display: flex; align-items: center; justify-content: center; }
.playbig img { height: 60px; }

/* robo scenes */
.stage { position: relative; min-height: 330px; border-radius: 26px; overflow: hidden; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.stage.night { background: linear-gradient(#1e1b4b, #4338ca); }
.stage.school { background: linear-gradient(#bae6fd, #fef9c3); }
.stage.home { background: linear-gradient(#fde68a, #fecaca); }
.stage .bgicon { position: absolute; top: 14px; left: 18px; height: 70px; opacity: .9; }
.actor { text-align: center; position: relative; }
.actor img { height: 140px; transition: transform .3s; }
.actor .nm { font-weight: 800; background: #fff; border-radius: 10px; padding: 2px 10px; display: inline-block; }
.actor.talk img { animation: talk .35s infinite alternate; }
.actor.oops img { animation: shake .5s 2; }
.actor.happy img { animation: jump .5s 3; }
@keyframes talk { to { transform: translateY(-6px) scale(1.03); } }
@keyframes jump { 50% { transform: translateY(-30px) rotate(10deg); } }
.say { min-height: 64px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 12px; font-size: 21px; font-weight: 800; margin-bottom: 10px; visibility: hidden; position: relative; }
.say.show { visibility: visible; animation: pop .25s; }
.say .en { display: block; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* dialogues */
.dlg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dlg-card { background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); text-align: center; border: 3px solid transparent; cursor: pointer; }
.dlg-card.done { border-color: #86efac; }
.dlg-card .pp img { height: 52px; }
.dlg-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.dlg-dots i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center; font-size: 15px; }
.dlg-dots i.on { background: #16a34a; color: #fff; font-weight: 700; }
.dlg-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
/* school dictionary */
.dict-search { width: 100%; font: inherit; font-size: 18px; padding: 10px 14px; border: 2px solid #cbd5e1; border-radius: 14px; }
.dict-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.dict-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 18px; padding: 14px 8px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); text-align: center; }
.dict-cat .emo { font-size: 44px; } .dict-cat b { font-size: 17px; } .dict-cat em { font-style: normal; color: var(--teal); font-weight: 700; font-family: Poppins, sans-serif; font-size: 14px; }
.dict-cat.mine { border: 2px dashed var(--sun); }
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.dict-w { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 10px 6px; font: inherit; cursor: pointer; }
.dict-w .emo { font-size: 40px; } .dict-w b { font-size: 18px; font-family: 'Cairo', sans-serif; }
.dict-w:hover { border-color: var(--teal); }
.dict-big .dw-ar { font-family: 'Cairo', sans-serif; font-size: 34px; font-weight: 800; color: var(--teal); }
.dict-big .dw-f { font-size: 14px; color: var(--muted); font-weight: 600; }
.dw-g.g-m { color: var(--boy); } .dw-g.g-f { color: var(--girl); }
.choices.dict-pics { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.dlg-step { flex: 1 1 140px; border: 2px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 8px; font: inherit; font-size: 17px; cursor: pointer; }
.dlg-step .en { display: block; font-size: 12px; }
.dlg-step.on { border-color: var(--teal); background: #ecfeff; font-weight: 700; }
.dlg-step.ok { color: #15803d; }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; animation: pop .25s; }
.msg.b { align-self: flex-end; flex-direction: row-reverse; }
.msg .face { text-align: center; font-size: 12px; font-weight: 700; }
.msg .face img { height: 48px; display: block; }
.msg .bub { background: #ccfbf1; border: 2px solid var(--teal2); border-radius: 18px; padding: 8px 12px; font-size: 20px; font-weight: 800; cursor: pointer; }
.msg.b .bub { background: #fef3c7; border-color: var(--sun); }
.msg .bub .en { display: block; }
.msg.mine .bub { background: #ede9fe; border: 3px dashed var(--grape); }

/* match */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { width: 100%; background: #fff; border: 3px solid #e2e8f0; border-radius: 16px; padding: 12px; font-size: 20px; font-weight: 800; margin-bottom: 10px; box-shadow: 0 4px 0 #e2e8f0; }
.tile.sel { border-color: var(--sun); background: #fef3c7; }
.tile.done { border-color: var(--ok); background: #dcfce7; color: #166534; box-shadow: none; }
.tile.no { animation: shake .4s; border-color: var(--bad); }

/* map */
.gender { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.gender button { border: 3px solid; border-radius: 16px; background: #fff; padding: 6px 16px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.gender button img { height: 34px; }
.gender .b { border-color: var(--boy); color: var(--boy); } .gender .g { border-color: var(--girl); color: var(--girl); }
.gender .b.on { background: #dbeafe; } .gender .g.on { background: #fce7f3; }
.cont { border-radius: 20px; overflow: hidden; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
.cont h3 { margin: 0; color: #fff; padding: 6px 14px; }
.flags { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; justify-content: center; }
.flag { background: #fff; border: 3px solid #e2e8f0; border-radius: 14px; padding: 6px; width: 112px; font-size: 16px; font-weight: 800; }
.flag img { height: 48px; display: block; margin: 0 auto 4px; border-radius: 6px; }
.flag.seen { border-color: #86efac; }
.flag.sel { border-color: var(--sun); transform: translateY(-3px); }
.mapout { text-align: center; font-size: 26px; font-weight: 800; background: #f0fdfa; border: 3px dashed var(--teal); border-radius: 20px; padding: 14px; line-height: 1.9; margin-bottom: 14px; }

/* boy-girl game */
.gamebar { display: flex; justify-content: space-between; align-items: center; font-size: 22px; font-weight: 800; }
.timer { font-size: 30px; color: var(--coral); }
.bgword { font-size: 54px; font-weight: 800; text-align: center; margin: 26px 0; min-height: 80px; }
.bgbtns { display: flex; gap: 18px; justify-content: center; }
.bgbtns button { border: 4px solid; border-radius: 24px; background: #fff; padding: 14px 30px; font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.bgbtns img { height: 64px; }
.bgbtns .b { border-color: var(--boy); color: var(--boy); } .bgbtns .g { border-color: var(--girl); color: var(--girl); }

/* order */
.slots, .pool { display: flex; flex-direction: column; gap: 8px; max-width: 680px; margin: 12px auto; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; border: 3px solid #e2e8f0; background: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.line img { height: 40px; }
.line.empty { border-style: dashed; color: #94a3b8; justify-content: center; cursor: default; }
.line.placed { border-color: var(--ok); background: #dcfce7; cursor: default; }
.line.no { animation: shake .4s; border-color: var(--bad); }

/* boss */
.lives img { height: 30px; }
.lives img.lost { filter: grayscale(1); opacity: .3; }
.boss-robo { height: 130px; display: block; margin: 0 auto; }
.boss-robo.hurt { animation: shake .5s; filter: hue-rotate(140deg); }
.qtimer { height: 10px; background: #fee2e2; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.qtimer > i { display: block; height: 100%; background: var(--coral); width: 100%; }

/* record */
.recrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.recbox { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 16px; text-align: center; }
.recbox.on .btn { background: var(--bad); animation: pulse 1s infinite; }
.recbox .secs { font-size: 34px; font-weight: 800; color: var(--coral); }
audio { width: 100%; margin-top: 8px; }
.model { background: #f8fafc; border: 2px dashed var(--muted); border-radius: 16px; padding: 10px; font-size: 20px; text-align: center; margin: 12px 0; }

/* finish */
.finish { text-align: center; padding: 26px 10px; }
.finish .stars-big img { height: 72px; margin: 0 4px; }
.finish .stars-big img.off { filter: grayscale(1); opacity: .25; }
.finish .stars-big img.on { animation: starpop .5s backwards; }
.finish h2 { font-size: 34px; color: var(--teal); }
.pl-skills { max-width: 460px; margin: 10px auto; display: grid; gap: 8px; text-align: start; }
.pl-sk { display: grid; grid-template-columns: 9em 1fr 3em; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.pl-sk .en { grid-column: 1; grid-row: 2; font-size: 12px; }
.pl-sk .progress { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.pl-sk em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-family: Poppins, sans-serif; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }

/* mascot */
.mascot { position: fixed; bottom: 14px; left: 14px; z-index: 30; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; opacity: 0; transform: translateY(60px); transition: opacity .25s, transform .25s; }
.mascot.talk { opacity: 1; transform: none; }
@media (max-width: 600px) { .mascot img { height: 64px !important; } .mascot .mb { font-size: 16px; max-width: 200px; } }
.mascot img { height: 92px; transition: transform .3s; }
.mascot .mb { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 12px; font-size: 18px; font-weight: 800; max-width: 260px; opacity: 0; transform: translateY(10px); transition: all .25s; }
.mascot.talk .mb { opacity: 1; transform: none; }
.mascot.happy img { animation: jump .5s 2; }
.mascot.oops img { animation: shake .5s 2; }
/* Zizo the parrot: asks, challenges, echoes (bottom right, above the help button) */
.mascot.zizo { left: auto; right: 14px; bottom: 84px; flex-direction: row-reverse; }   /* the parrot sits at the right edge, its bubble to its left */
@media (max-width: 600px) { .mascot.zizo { bottom: 120px; } .mascot.zizo img { height: 56px !important; } }
.mascot.zizo .mb { border-color: #16a34a; }
.mascot.zizo.echo img { animation: zbob .35s 4; }
@keyframes zbob { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.08); } 70% { transform: rotate(10deg); } }
.zq { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-size: 16px; font-weight: 800; }
.zq img { height: 38px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal .card { width: min(560px, 100%); max-height: 92vh; overflow: auto; }
.avatars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.avatars button { border: 3px solid #e2e8f0; background: #fff; border-radius: 18px; padding: 6px; }
.avatars button img { height: 56px; }
.avatars button.on { border-color: var(--teal); background: #ccfbf1; }
input[type=text] { width: 100%; font-family: inherit; font-size: 22px; padding: 10px 14px; border-radius: 14px; border: 3px solid #e2e8f0; text-align: center; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stamp { text-align: center; border: 3px dashed #94a3b8; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.stamp img { height: 40px; filter: grayscale(1); opacity: .4; }
.stamp.on { border: 4px solid var(--grape); color: var(--grape); background: #f5f3ff; transform: rotate(-6deg); }
.stamp.on img { filter: none; opacity: 1; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 18px; }
.switch { width: 54px; height: 30px; border-radius: 999px; border: none; background: #cbd5e1; position: relative; }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: right .2s; }
.switch.on { background: var(--teal); } .switch.on::after { right: 27px; }
.confetti { position: fixed; top: -30px; font-size: 28px; pointer-events: none; z-index: 60; animation: fall 2.4s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(600deg); } }
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: var(--grape); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 18px; z-index: 70; animation: pop .3s; }
.dash { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 8px; }
.dash th { background: var(--teal); color: #fff; padding: 6px 8px; white-space: nowrap; font-weight: 700; }
.dash td { border-bottom: 1px solid #e7dccb; padding: 6px 8px; text-align: center; white-space: nowrap; }
.dash td.nm { text-align: right; font-weight: 700; } .dash td.nm img { height: 28px; }
.dash .st1 { color: #94a3b8; } .dash .st2 { color: #F29E4C; } .dash .st3 { color: #16a34a; }
.dash .lv { color: #fff; border-radius: 10px; padding: 2px 8px; font-size: 13px; }
.dash .rm { border: none; background: #fee2e2; color: var(--bad); border-radius: 8px; padding: 2px 8px; }
html, body { overflow-x: hidden; }
@media (max-width: 600px) { .brand-t { display: none; } .topbar { gap: 6px; padding: 6px 8px; } .me .av, .me span { display: none; } }
/* onboarding */
.ob { max-width: 760px; margin: 10px auto; }
.ob-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.ob-dots i { width: 44px; height: 8px; border-radius: 99px; background: #e7dccb; }
.ob-dots i.on { background: var(--teal); }
.ob-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.ob-opt { background: #fff; border: 3px solid #e7dccb; border-radius: 20px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 19px; box-shadow: 0 5px 0 #e7dccb; transition: transform .12s; }
.ob-opt:hover { transform: translateY(-3px); border-color: var(--teal2); }
.ob-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #e7dccb; }
/* «رحلتي» */
.me-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.me-hi { display: flex; align-items: center; gap: 12px; } .me-hi img { height: 70px; } .me-hi h2 { margin: 0; color: var(--teal); }
.me-stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; } .ring .bg { stroke: #efe6d6; } .ring .fg { stroke: var(--sun); stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; }
.ring-t b { font-size: 22px; font-family: Poppins, sans-serif; }
.me-pill { background: #fffaf2; border: 2px solid #e7dccb; border-radius: 18px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.me-pill b { font-size: 26px; font-family: Poppins, sans-serif; color: var(--teal); }
.me-unit { margin-bottom: 14px; }
.lvl-chip { background: var(--teal); color: #fff; font-family: Poppins, sans-serif; font-weight: 700; border-radius: 12px; padding: 2px 12px; font-size: 18px; }
.big-go { width: 100%; font-size: 24px; padding: 16px; margin-top: 6px; }
.lessons { display: flex; flex-direction: column; gap: 10px; }
.lesson { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px 14px; border-right: 6px solid #e7dccb; }
.lesson.done { border-right-color: var(--ok); } .lesson.cur { border-right-color: var(--sun); background: #fffaf2; }
.ln { width: 48px; height: 48px; border-radius: 50%; background: #efe6d6; display: flex; align-items: center; justify-content: center; font-family: Poppins, sans-serif; font-weight: 700; font-size: 20px; }
.lesson.done .ln { background: #dcfce7; color: var(--ok); } .lesson.cur .ln { background: var(--sun); color: #fff; }
.lt b { display: block; font-size: 18px; }
.la { display: flex; gap: 10px; }
.la-i { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; font-size: 12px; min-width: 70px; }
.la-i span { color: var(--sun); font-size: 13px; min-height: 16px; } .la-i.lock { opacity: .45; pointer-events: none; }
@media (max-width: 600px) { .lesson { grid-template-columns: 44px 1fr; } .la { grid-column: 1 / -1; justify-content: center; } }
/* adult look: calm, flat and grown-up — same colours, no cartoon helpers, no bouncing */
body.adult { background: #f7f5f0; font-size: 16px; }
body.adult .hero-robo { width: 170px; } body.adult .floaty { display: none; }
body.adult .bigq, body.adult .choice, body.adult .tile, body.adult .say, body.adult .bgword, body.adult .hero-bubble, body.adult .mascot .mb, body.adult .node .lbl { font-family: 'Cairo', sans-serif; }
body.adult h2 { font-size: 24px; } body.adult .finish h2 { font-size: 28px; }
body.adult .card { border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); border: 1px solid #e5e7eb; }
body.adult .btn { border-radius: 10px; font-size: 17px; padding: 10px 18px; font-weight: 700; box-shadow: none; }
body.adult .btn:active { transform: none; box-shadow: none; filter: brightness(.95); }
body.adult .btn.ghost { border-width: 2px; }
body.adult .choice { border-radius: 10px; box-shadow: none; border-width: 2px; }
body.adult .pill, body.adult .iconbtn { border-width: 1px; }
body.adult .dlg-card, body.adult .sc-card, body.adult .lesson, body.adult .node { border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
/* Robo becomes a plain note at the bottom; Zizo stays hidden (zizo() is silent for adults) */
body.adult .mascot img { display: none; }
body.adult .mascot .mb { border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; font-weight: 600; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); }
body.adult .mascot.happy img, body.adult .mascot.oops img { animation: none; }
body.adult .mascot.zizo, body.adult .zq img { display: none; }
body.adult .confetti { font-size: 18px; }
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }

/* «أقول وأرد»: speak-and-reply cards */
.say-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.say-card { background: #fff; border: 3px solid #e7dccb; border-radius: 20px; padding: 14px; transition: border-color .2s; }
.say-card.done { border-color: var(--good, #22c55e); background: #f0fdf4; }
.say-q { font-size: 20px; margin-bottom: 10px; }
.say-q b { font-family: Cairo, sans-serif; }
.say-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 2px dashed #e7dccb; padding-top: 10px; }
.say-hint { flex-basis: 100%; font-size: 19px; color: var(--teal); font-weight: 700; }
.say-r audio { height: 36px; max-width: 100%; }
.say-r .btn.on { background: #ef4444; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.say-card [hidden] { display: none !important; }

/* ================= the learner's journey ================= */
.jr { margin-bottom: 14px; border-top: 6px solid var(--sun); }
.jr-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 16px 0 6px; overflow-x: auto; counter-reset: s; }
.jr-steps li { flex: 1 1 0; min-width: 92px; text-align: center; position: relative; padding-top: 4px; }
.jr-steps li::before { content: ''; position: absolute; top: 26px; right: 50%; width: 100%; height: 5px; background: #e7dccb; z-index: 0; }
.jr-steps li:first-child::before { display: none; }
.jr-steps li.done::before, .jr-steps li.cur::before { background: var(--teal2); }
.jr-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 4px solid #e7dccb; font-weight: 900; font-size: 22px; color: #fff; }
.jr-steps li.done .jr-dot { background: var(--teal); border-color: var(--teal); }
.jr-steps li.cur .jr-dot { border-color: var(--sun); box-shadow: 0 0 0 5px #fde6cc; animation: pulse 1.6s infinite; }
.jr-steps li.warn .jr-dot { background: var(--bad); border-color: var(--bad); }
.jr-steps li.wait .jr-dot { background: #fff7ed; border-color: var(--sun); color: #000; }
.jr-steps li.soon { opacity: .5; }
.jr-steps b { display: block; font-size: 15px; margin-top: 4px; }
.jr-steps small { display: block; font-size: 12px; }
.jr-steps em { display: inline-block; font-style: normal; font-family: Poppins, sans-serif; font-size: 13px; background: #e6f2f1; color: var(--teal); border-radius: 10px; padding: 0 8px; }
.jr-chip { display: inline-block; color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 800; background: #64748b; }
.jr-chip.s-review { background: #d97706; } .jr-chip.s-approved { background: var(--ok); } .jr-chip.s-support { background: var(--bad); }
.jr-wait { display: flex; gap: 12px; align-items: center; background: #fff7ed; border: 3px dashed var(--sun); border-radius: 18px; padding: 12px 16px; text-align: right; }
.jr-wait.ok { background: #f0fdf4; border-color: var(--ok); }
.jr-note { margin-top: 6px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.jr-rec { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jr-acct { display: flex; gap: 10px; align-items: center; margin-top: 12px; background: #e6f2f1; border-radius: 16px; padding: 10px 14px; }
.jr-acct.warn { background: #fff7ed; }
.jr-acct div { flex: 1; }

/* student login + login cards */
.login-card { max-width: 540px; margin: auto; }
.login-card input { margin: 6px 0; }
.pin-in { width: 100%; font-size: 34px; letter-spacing: 14px; text-align: center; padding: 8px; border-radius: 14px; border: 3px solid #e2e8f0; font-family: Poppins, sans-serif; }
.login-print { border: 3px dashed var(--teal); border-radius: 18px; padding: 14px; background: #fff; text-align: center; break-inside: avoid; }
.lp-head { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--teal); }
.lp-head img { height: 34px; }
.lp-row { display: flex; justify-content: space-between; align-items: center; background: #f6f0e4; border-radius: 12px; padding: 6px 12px; margin: 6px 0; }
.lp-row b { font-family: Poppins, sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--teal); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

/* picture word cards */
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.wcard { background: #fff; border: 3px solid #e7dccb; border-radius: 20px; padding: 12px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; font-size: 20px; transition: transform .15s; }
.wcard:hover { transform: translateY(-3px); }
.wcard.on { border-color: var(--teal2); background: #e6f2f1; }
.wcard .tr { font-family: Poppins, sans-serif; font-size: 14px; color: var(--sun); direction: ltr; }

/* worksheets */
.ws-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ws-paper { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 26px 30px; max-width: 860px; margin: 0 auto 16px; border-top: 10px solid var(--teal); }
.ws-head { display: flex; align-items: center; gap: 10px; color: var(--teal); border-bottom: 3px solid #f6f0e4; padding-bottom: 8px; }
.ws-head img { height: 46px; } .ws-head b { display: block; font-family: Cairo, sans-serif; font-size: 20px; }
.ws-stage { background: var(--sun); color: #4a2600; border-radius: 999px; padding: 3px 14px; font-weight: 800; }
.ws-paper h2 { color: var(--teal); font-size: 26px; margin: 14px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-paper h2 .en { flex-basis: 100%; }
.ws-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; background: #f6f0e4; border-radius: 14px; padding: 8px 14px; margin-bottom: 8px; font-size: 16px; }
.ws-sec { margin-top: 18px; }
.ws-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; color: var(--ink); flex-wrap: wrap; }
.ws-sec h3 i { font-style: normal; display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; align-items: center; justify-content: center; font-family: Poppins, sans-serif; }
.ws-items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 8px; }
.ws-items.t-free { grid-template-columns: 1fr; }
.ws-it { border: 2px solid #e7dccb; border-radius: 16px; padding: 10px; text-align: center; }
.ws-it p { margin: 4px 0; font-size: 19px; }
.ws-model { font-size: 21px; font-weight: 800; color: var(--teal); margin: 4px 0; }
.ws-line { width: 100%; border: 0; border-bottom: 3px dotted #94a3b8; font-size: 22px; text-align: center; padding: 6px; background: transparent; font-family: inherit; }
.ws-lines { width: 100%; border: 0; font-size: 21px; line-height: 44px; font-family: inherit; padding: 0 6px; resize: vertical;
  background-image: repeating-linear-gradient(transparent, transparent 42px, #94a3b8 42px, #94a3b8 44px); background-attachment: local; }
.ws-opts { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.ws-opts label { display: flex; align-items: center; gap: 8px; border: 2px solid #e2e8f0; border-radius: 12px; padding: 6px 10px; cursor: pointer; font-size: 19px; }
.ws-opts input { width: 20px; height: 20px; accent-color: var(--teal); }
.ws-opts label:has(input:checked) { border-color: var(--teal); background: #e6f2f1; }
.ws-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; border-top: 3px solid #f6f0e4; padding-top: 10px; color: var(--muted); }
.ws-send { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto; }
.ws-send > p { grid-column: 1 / -1; }
.ws-way { background: #f6f0e4; border-radius: 18px; padding: 12px; text-align: center; }
.ws-way h3 { font-size: 19px; }
.ws-hist { max-width: 860px; margin: 0 auto 12px; }
.ws-h { display: flex; flex-wrap: wrap; gap: 6px 16px; border-bottom: 1px dashed #e7dccb; padding: 6px 0; }
.ws-h .fb { flex-basis: 100%; color: var(--teal); font-weight: 700; }
@media (max-width: 640px) { .ws-send { grid-template-columns: 1fr; } .ws-paper { padding: 16px; } }

/* support plan */
.sup-note { display: flex; gap: 12px; align-items: flex-start; border-right: 6px solid var(--teal); margin-bottom: 12px; }
.sup-list { display: grid; gap: 10px; }
.sup-it { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); }
.sup-it.done { opacity: .7; background: #f0fdf4; }
.sup-t { flex: 1; } .sup-t b { display: block; font-size: 19px; }
.sup-ok { font-size: 30px; color: var(--ok); font-weight: 900; }

/* help chat */
.help-btn { position: fixed; bottom: 16px; right: 16px; z-index: 40; display: flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px 8px 10px; font-family: inherit; font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 6px 18px rgba(14,95,99,.35); }
.help-btn img { background: #fff; border-radius: 50%; padding: 2px; }
.help-btn i { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); border: 3px solid #fff; }
.help-panel { position: fixed; bottom: 76px; right: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s; }
.hp-head { display: flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; padding: 10px 12px; }
.hp-head .iconbtn { background: rgba(255,255,255,.2); color: #fff; }
.hp-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #f6f0e4; display: flex; flex-direction: column; gap: 8px; }
.hp-m { display: flex; flex-direction: column; max-width: 86%; }
.hp-m.me { align-self: flex-start; } .hp-m.robo, .hp-m.staff { align-self: flex-end; }
.hp-b { white-space: pre-line; border-radius: 16px; padding: 8px 12px; font-size: 16px; line-height: 1.6; background: #fff; }
.hp-m.me .hp-b { background: var(--teal); color: #fff; }
.hp-m.staff .hp-b { background: #fff7ed; border: 2px solid var(--sun); }
.hp-yn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hp-yn button, .hp-chips button { border: 2px solid var(--teal); background: #fff; color: var(--teal); border-radius: 999px; padding: 4px 10px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.hp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-top: 1px solid #eee; flex-shrink: 0; }
.hp-chips button { white-space: nowrap; }
.hp-chips button.human { background: var(--sun); border-color: var(--sun); color: #4a2600; }
.hp-in { display: flex; gap: 6px; padding: 8px; }
.hp-in input { flex: 1; font-size: 16px; padding: 8px 10px; border-radius: 12px; border: 2px solid #e2e8f0; text-align: right; }
body.adult .help-btn { font-size: 15px; }

/* supervisor dashboard */
.sv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sv-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 3px solid #e7dccb; border-radius: 16px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 800; }
.sv-tab.on { border-color: var(--teal); background: #e6f2f1; color: var(--teal); }
.sv-tab i { font-style: normal; background: var(--bad); color: #fff; border-radius: 999px; padding: 0 8px; font-family: Poppins, sans-serif; font-size: 14px; }
.sv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px dashed #e7dccb; padding: 8px 0; }
.code-big { font-family: Poppins, sans-serif; font-size: 30px; letter-spacing: 6px; color: var(--teal); background: #e6f2f1; border-radius: 14px; padding: 2px 14px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 800px) { .sf-grid { grid-template-columns: 1fr; } }
.kv { width: 100%; border-collapse: collapse; } .kv th { text-align: right; color: var(--muted); font-weight: 700; padding: 4px 8px 4px 0; width: 40%; } .kv td { padding: 4px 0; }
.crit { list-style: none; padding: 0; } .crit li { padding: 4px 0; } .crit li.no { color: #991b1b; }
.decide { background: #f6f0e4; border-radius: 16px; padding: 12px; margin-top: 10px; }
.decide textarea, .sp-custom input { width: 100%; font-size: 16px; border-radius: 12px; border: 2px solid #e2e8f0; padding: 8px; margin: 4px 0; font-family: inherit; }
.sup-pick { margin-top: 10px; background: #fff; border-radius: 14px; padding: 8px 12px; }
.sup-pick summary { cursor: pointer; font-weight: 800; color: var(--bad); }
.sp-it { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.sp-it input { width: 20px; height: 20px; accent-color: var(--teal); }
.sp-custom { margin: 8px 0; }
.sf-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.sf-act { text-align: center; background: #f6f0e4; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; align-items: center; }
.sf-act.st0 { opacity: .5; } .sf-act b { color: var(--sun); }
.sub { border: 2px solid #e7dccb; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.sub.submitted { border-color: #d97706; } .sub.marked { border-color: var(--ok); } .sub.redo { border-color: var(--bad); }
.sub-mark { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.sub-mark input[type=number] { width: 80px; font-size: 17px; padding: 4px; border-radius: 10px; border: 2px solid #e2e8f0; text-align: center; }
.sub-mark input[type=text] { flex: 1; min-width: 180px; font-size: 16px; padding: 6px 8px; border-radius: 10px; border: 2px solid #e2e8f0; text-align: right; }
.sub-photo { max-width: 100%; max-height: 520px; border-radius: 12px; border: 2px solid #e7dccb; margin-top: 6px; }
.ans { list-style: none; padding: 0; margin: 4px 0; } .ans li { padding: 3px 0; } .ans li.ok { color: #166534; } .ans li.no { color: #991b1b; }
.sub h5 { margin: 8px 0 2px; color: var(--teal); font-size: 16px; }
.thread { border: 2px solid #e7dccb; border-radius: 16px; padding: 10px; margin-bottom: 10px; } .thread.open { border-color: var(--sun); }
.thread .msgs { display: flex; flex-direction: column; gap: 6px; background: #f6f0e4; border-radius: 12px; padding: 8px; margin: 6px 0; }
.timeline { list-style: none; padding: 0; max-height: 420px; overflow-y: auto; } .timeline li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #eee; flex-wrap: wrap; }

/* printing: worksheet as a clean paper; login cards only */
@media print {
  .topbar, footer, .mascot, .help-btn, .help-panel, .no-print, .toast { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; max-width: none !important; }
  .ws-paper { box-shadow: none; max-width: none; padding: 0; border-top-width: 6px; }
  .ws-opts input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border: 2px solid #475569; border-radius: 50%; }
  .ws-line { border-bottom: 2px dotted #475569; }
  .ws-lines { min-height: 180px; }
  body.print-cards main > *:not(#svBody):not(.t-shell), body.print-cards #svBody > .card > *:not(#cardsOut), body.print-cards .sv-tabs, body.print-cards .act-head { display: none !important; }
  body.print-cards #svBody > .card { box-shadow: none; padding: 0; }
  .modal { position: static !important; background: none !important; }
  body:has(.modal .login-print) main { display: none !important; }
}
.crit .sk { display: inline-block; background: #e6f2f1; color: var(--teal); border-radius: 8px; padding: 0 8px; font-size: 13px; font-weight: 800; margin-left: 4px; } .crit li { border-bottom: 1px dashed #eee; padding: 6px 0; } .crit li.man label { cursor: pointer; } .crit li.man input { width: 18px; height: 18px; accent-color: var(--teal); vertical-align: middle; }

/* ---- unit 2: emoji pictures + family activity ---- */
.emo{display:inline-block;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.wcard .emo{display:block;margin:0 auto 4px}
.choice .emo{display:block;margin:0 auto 4px}
.fam-pic{display:inline-flex;flex-direction:column;align-items:center;gap:6px;background:var(--beige,#F6F0E4);border-radius:22px;padding:14px 26px;margin-bottom:10px}
.fam-pic .nm{font-weight:700;font-size:20px}
.me-unit.u2{border-top:5px solid #F29E4C}

/* ---- scene path (unit 3+): house, rooms, sentence builder, duet ---- */
.sc-house { position: relative; width: 100%; max-width: 860px; margin: 8px auto; aspect-ratio: 4 / 3; border-radius: 26px; background: linear-gradient(#bfe6f5, #e9f7fc 60%); overflow: hidden; box-shadow: var(--shadow); }
.sc-house.has-img { background-size: cover; background-position: center; }
.sc-roof { position: absolute; left: 16%; top: 3%; width: 58%; height: 18%; background: #E8735A; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sc-body { position: absolute; left: 18%; top: 19%; width: 54%; height: 77%; background: #fff7ea; border: 4px solid #d9c7a8; border-radius: 6px; }
.sc-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: #7cc26b; }
.sc-room { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 3px solid rgba(14, 95, 99, .25); border-radius: 14px; font-family: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; padding: 4px; }
.sc-house.has-img .sc-room { background: rgba(255, 255, 255, .0); border: 3px dashed rgba(255, 255, 255, .0); }
.sc-house.has-img .sc-room:hover { background: rgba(255, 255, 255, .25); border-color: #fff; }
.sc-room:hover { transform: scale(1.04); box-shadow: 0 0 0 4px var(--sun); z-index: 2; }
.sc-room .emo { font-size: clamp(28px, 6vw, 56px); }
.sc-room b { font-size: clamp(14px, 2.2vw, 22px); color: var(--teal); background: rgba(255, 255, 255, .85); border-radius: 10px; padding: 0 8px; }
.sc-room small { font-size: 12px; }
.sc-count { position: absolute; top: 4px; left: 6px; font-style: normal; font-size: 13px; font-weight: 800; background: #fff; border-radius: 10px; padding: 0 6px; color: var(--muted); }
.sc-room.full .sc-count { background: var(--ok); color: #fff; }
.sc-roomview { position: relative; width: 100%; max-width: 860px; margin: 10px auto; aspect-ratio: 16 / 9; border-radius: 26px; box-shadow: var(--shadow); background-size: cover; background-position: center; overflow: hidden; }
.sc-roomtitle { position: absolute; top: 10px; right: 14px; font-size: 22px; font-weight: 800; color: var(--teal); background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 2px 12px; }
.sc-item { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; border: 3px solid transparent; background: rgba(255, 255, 255, .55); border-radius: 18px; padding: 6px 10px; cursor: pointer; font-family: inherit; animation: scBob 2.4s ease-in-out infinite; }
.sc-item:hover { border-color: var(--sun); background: rgba(255, 255, 255, .9); }
.sc-item small { font-size: 18px; font-weight: 800; color: var(--teal); min-height: 22px; }
.sc-item.heard { background: rgba(220, 252, 231, .85); animation: none; }
.sc-item.sel { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(242, 158, 76, .35); }
@keyframes scBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -58%); } }
.sc-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 12px 16px; }
.sc-cardin { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sc-cardtx .ar { font-size: 34px; font-weight: 800; }
.sc-cardtx .tr, .sc-flash .tr { font-family: Poppins, sans-serif; color: var(--sun); direction: ltr; }
.sc-sent { font-size: 22px; margin-top: 4px; }
.sc-card .mini, .sc-cardin .mini { display: flex; gap: 6px; }
.sc-card .mini button { border: 2px solid #e2e8f0; background: #fff; border-radius: 12px; font-size: 20px; padding: 4px 10px; }
.sc-rec { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.sc-rec .btn.on { background: var(--bad); animation: pulse 1s infinite; }
.sc-rec audio { height: 38px; }
.sc-flash { max-width: 560px; margin: 10px auto; }
.sc-flash .ar { font-size: 40px; font-weight: 800; color: var(--teal); }
.sc-flash.done { border: 3px solid #86efac; }
.sc-steps { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.sc-step { font-weight: 800; font-size: 18px; }
.sc-model { font-size: clamp(28px, 5vw, 44px); font-weight: 800; padding: 14px; background: #f6f0e4; border-radius: 18px; margin-bottom: 10px; }
.sc-model u { text-decoration: none; border-bottom: 4px solid var(--sun); }
.sc-model.pop { animation: scPop .35s; }
.sc-hl { color: var(--teal2); }
@keyframes scPop { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.sc-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 860px; margin: 8px auto; }
.sc-strip .choice { padding: 8px 10px; font-size: 18px; min-width: 92px; }
.sc-strip .choice small { display: block; font-size: 16px; }
.sc-slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; min-height: 58px; }
.sc-slot { min-width: 96px; min-height: 52px; border: 3px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; font-family: inherit; font-size: 24px; font-weight: 800; padding: 4px 12px; display: inline-flex; align-items: center; justify-content: center; }
.sc-slot.full { border-style: solid; border-color: var(--teal2); background: #e6f2f1; cursor: pointer; }
.sc-slot.ok { border-color: var(--ok); background: #dcfce7; }
.sc-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 12px; }
.sc-tile { border: 3px solid #e2e8f0; background: #fff; border-radius: 14px; box-shadow: 0 4px 0 #e2e8f0; font-family: inherit; font-size: 24px; font-weight: 800; padding: 6px 14px; cursor: pointer; }
.sc-tile:disabled { opacity: .25; cursor: default; }
.sc-tile.no { animation: shake .4s; border-color: var(--bad); }
.shake { animation: shake .4s; }
.sc-show { margin: 4px 0 8px; }
.sc-hint { min-height: 26px; font-size: 20px; font-weight: 800; color: var(--coral); }
.sc-duet .msg { opacity: .45; transition: opacity .2s; }
.sc-duet .msg.mine .bub { border: 3px solid var(--sun); }
.sc-duet:not(.live) .msg, .sc-duet .msg.now { opacity: 1; }
.sc-duet .msg.now .bub { box-shadow: 0 0 0 5px rgba(242, 158, 76, .45); transform: scale(1.03); }
.sc-duet .msg.past { opacity: .7; }
.sc-mdl { margin-inline-start: 6px; font-size: 16px; }
.sc-duet.live .sc-mdl { display: none; }
.sc-duetbar { position: sticky; bottom: 10px; z-index: 5; margin: 10px 0; }

/* scene path: name / label under a picture */
.sc-cap{font-size:20px;font-weight:700;color:var(--ink,#1f2937);background:#fff8e7;border-radius:12px;padding:2px 14px;margin:6px auto 0;display:table}

/* Robo's wardrobe */
.ward { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.ward-i { background: #fff; border: 3px solid #e5e7eb; border-radius: 18px; padding: 6px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ward-i svg { width: 90px; height: 100px; }
.ward-i b { font-size: 15px; color: var(--ink); } .ward-i small { font-size: 12px; color: #64748b; }
.ward-i.on { border-color: #F29E4C; box-shadow: 0 0 0 3px rgba(242,158,76,.25); }
.ward-i.locked { cursor: default; } .ward-i.locked svg { filter: grayscale(1); opacity: .35; }
.boss-robo, .hero-robo { object-fit: contain; }

/* badges, 7-day streak row, surprise box */
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.bdg { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bdg .badge-svg { width: 92px; height: 100px; }
.bdg.on .badge-svg { animation: bpop .5s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.bdg b { font-size: 15px; } .bdg small { font-size: 12px; color: #64748b; }
.bdg:not(.on) b { color: #94a3b8; }
.wk-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.wk-d { background: #f1f5f9; border-radius: 14px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; }
.wk-d span { font-size: 22px; color: #cbd5e1; } .wk-d small { font-size: 11px; color: #64748b; }
.wk-d.on { background: #ffedd5; } .wk-d.today { outline: 2px solid #F29E4C; }
.box-card { display: flex; align-items: center; gap: 12px; }
.box-card .box-ico { font-size: 44px; filter: grayscale(1); opacity: .5; }
.box-card.ready { border: 3px solid #F29E4C; } .box-card.ready .box-ico { filter: none; opacity: 1; animation: wob 1s infinite; }
.box-card.done .box-ico { filter: none; opacity: 1; }
.box-anim { font-size: 90px; animation: boxpop .8s; }
@keyframes wob { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes boxpop { 0% { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.3) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes bpop { 0% { transform: scale(.6); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.badge-strip { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.bs-mini { display: flex; gap: 2px; } .bs-mini .badge-svg { width: 38px; height: 42px; }
@media (max-width: 600px) { .bs-mini { display: none; } }
body.adult .box-card.ready .box-ico { animation: none; }

/* «دفتري» notebook */
.nb-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.nb-tab { background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; padding: 8px 10px; text-decoration: none; color: var(--ink); font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nb-tab b { margin-inline-start: auto; background: #f1f5f9; border-radius: 999px; padding: 0 8px; font-size: 14px; }
.nb-tab .en { width: 100%; font-size: 12px; font-weight: 500; }
.nb-tab.on { border-color: #0E5F63; background: #e6f2f2; }
.nb-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eef2f6; }
.nb-row:last-child { border-bottom: 0; }
.nb-t { flex: 1; display: flex; flex-direction: column; } .nb-t b { font-size: 19px; }
.nb-row audio { max-width: 220px; height: 36px; }
.nb-row.gram .gm { font-size: 24px; width: 36px; text-align: center; color: #94a3b8; }
.nb-row.gram.ok .gm { color: #16a34a; } .nb-row.gram.half .gm { color: #F29E4C; }
.nb-row.gram small { color: #64748b; }
@media (max-width: 600px) { .nb-row { flex-wrap: wrap; } .nb-row audio { max-width: 100%; width: 100%; } }

/* smart revision */
.srs-strip.due { border: 3px solid #0E5F63; }
.srs-lvl { display: inline-flex; gap: 3px; vertical-align: middle; margin-inline-start: 8px; }
.srs-lvl i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: inline-block; }
.srs-lvl i.on { background: #F29E4C; }
.srs-word { font-size: 40px; margin: 8px 0; }
.srs-sent { font-size: 34px; font-weight: 800; margin: 12px 0; }
.srs-gap { display: inline-block; min-width: 110px; border-bottom: 4px dashed #F29E4C; color: #F29E4C; }
.act-head .pill { white-space: nowrap; }

/* supervisor: skills report */
.sk-rep h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-total { margin-inline-start: auto; background: #0E5F63; color: #fff; border-radius: 999px; padding: 2px 14px; font-size: 22px; }
.sk-row { margin: 10px 0; } .sk-h { display: flex; align-items: center; gap: 6px; }
.sk-bar { height: 12px; background: #eef2f6; border-radius: 999px; overflow: hidden; margin: 4px 0; }
.sk-bar i { display: block; height: 100%; border-radius: 999px; }
.sk-sum { background: #f6f0e4; border-radius: 14px; padding: 10px 14px; display: grid; gap: 6px; margin: 10px 0; }

/* text size, help centre, feedback */
#app, .modal > .card { zoom: var(--fs, 1); }
.fs-pick { display: inline-flex; gap: 4px; }
.fs-pick button { border: 2px solid #e5e7eb; background: #fff; border-radius: 10px; min-width: 40px; height: 40px; font-weight: 800; cursor: pointer; font-family: inherit; }
.fs-pick button.on { border-color: #0E5F63; background: #e6f2f2; }
.hq { border-bottom: 1px solid #eef2f6; padding: 8px 2px; }
.hq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.hq p { margin: 8px 0 4px; line-height: 1.9; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
#fbT { width: 100%; box-sizing: border-box; border: 2px solid #e5e7eb; border-radius: 14px; padding: 10px; font-family: inherit; font-size: 17px; }
footer a { color: inherit; }

/* ---------- «مواقف من الحياة / Real Life Arabic» ---------- */
.life-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 14px 0; }
.life-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border-radius: 18px; padding: 18px 12px; text-decoration: none; color: inherit; box-shadow: 0 4px 14px rgba(14,95,99,.12); border-top: 6px solid #7c3aed; transition: transform .15s; text-align: center; }
.life-card:hover { transform: translateY(-3px); }
.life-card.soon { opacity: .55; border-top-color: #cbd5e1; }
.life-emo { font-size: 54px; line-height: 1.1; }
.life-card b { font-size: 21px; }
.life-stars { font-size: 20px; letter-spacing: 2px; }
.life-npc-big { font-size: 90px; line-height: 1; animation: wob 3s ease-in-out infinite; }
.life-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.life-seg button { border: 2px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }
.life-seg button.on { border-color: #7c3aed; background: #ede9fe; font-weight: 700; }
.life-chat { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#f5f3ff, #fff); border-radius: 18px; padding: 14px; min-height: 160px; }
.lb { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; animation: bpop .3s ease; }
.lb.npc { align-self: flex-start; }
.lb.me { align-self: flex-end; flex-direction: row-reverse; }
.lb-who { font-size: 34px; line-height: 1; flex: none; }
.lb-who img { width: 38px; height: 38px; }
.lb-t { background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.lb.npc .lb-t { border-bottom-right-radius: 4px; }
.lb.me .lb-t { background: #7c3aed; color: #fff; border-bottom-left-radius: 4px; }
.lb.me .en { color: #ede9fe; }
.lb.me.wrong .lb-t { background: #fee2e2; color: #991b1b; text-decoration: line-through; text-decoration-thickness: 1px; }
.lb.me.wrong .en { color: #b91c1c; }
.lb-ar { font-size: 21px; }
.lb-pl { flex: none; }
.life-ch { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.life-opt { display: flex; align-items: center; gap: 8px; }
.life-opt .choice { flex: 1; display: flex; align-items: center; gap: 10px; text-align: right; }
.life-opt .choice .en { display: block; }
.lo-emo { font-size: 32px; }
/* ---------- performance log / revision / notebook / plan / stories ---------- */
.srs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.srs-stats > div { background: #f8fafc; border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.srs-stats b { font-size: 26px; color: var(--teal, #0E5F63); }
.srs-stats .ok b { color: #16a34a; } .srs-stats .due b { color: #ea580c; }
.wr-out { min-height: 64px; font-size: 44px; margin: 10px auto; padding: 4px 18px; border-bottom: 3px dashed #cbd5e1; max-width: 320px; }
.wr-out.ok { color: #16a34a; border-color: #16a34a; } .wr-out.no { color: #dc2626; border-color: #dc2626; animation: wob .4s; }
.wr-ph { color: #cbd5e1; }
.wr-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.wr-t { width: 58px; height: 58px; font-size: 32px; border-radius: 14px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; font-family: inherit; }
.wr-t:disabled { opacity: .25; }
.dict-w { position: relative; }
.fav-b { position: absolute; top: 4px; left: 4px; border: 0; background: transparent; font-size: 22px; color: #cbd5e1; cursor: pointer; line-height: 1; padding: 2px; }
.fav-b.on { color: #f59e0b; }
.nb-row .fav-b, .lb .fav-b { position: static; }
.nb-unit { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 18px; }
.nb-write { background: #f8fafc; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.nb-write input { flex: 1; min-width: 200px; font: inherit; font-size: 19px; padding: 8px 12px; border-radius: 12px; border: 2px solid #cbd5e1; }
.nb-own { font-size: 24px; }
.ach-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ach-top > div { background: #fffbeb; border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.ach-top b { font-size: 26px; }
.me-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.plan-open { border: 2px solid #f59e0b; }
.plan-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }
.plan-item p { margin: 4px 0; } .plan-ex { background: #ecfeff; border-radius: 8px; padding: 2px 8px; }
.plan-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-t { width: 100%; border-collapse: collapse; margin: 8px 0; }
.plan-t th, .plan-t td { padding: 8px; border-bottom: 1px solid #e2e8f0; text-align: right; vertical-align: middle; }
.plan-t th { background: #f1f5f9; font-size: 15px; }
.ps-master td:nth-child(2) { color: #16a34a; } .ps-weak td:nth-child(2) { color: #dc2626; font-weight: 700; } .ps-practice td:nth-child(2) { color: #ea580c; font-weight: 700; } .ps-few td { color: #94a3b8; }
.rh { display: inline-flex; gap: 2px; vertical-align: middle; } .rh i { width: 8px; height: 14px; border-radius: 2px; } .rh i.y { background: #16a34a; } .rh i.n { background: #dc2626; }
.fix-pr { font-size: 64px; line-height: 1.2; margin: 6px 0; }
.life-stg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 12px; }
.life-stg span { background: #f1f5f9; border-radius: 999px; padding: 4px 12px; font-size: 15px; color: #64748b; }
.life-stg span.on { background: #7c3aed; color: #fff; } .life-stg span.on .en { color: #ede9fe; }
.life-stg span.done { background: #dcfce7; color: #166534; }
.life-words .dict-w.seen { outline: 3px solid #a7f3d0; }
.say-card.now { outline: 3px solid #7c3aed; }
.choice.tried { opacity: .5; text-decoration: line-through; }
.st-who { color: #7c3aed; font-weight: 700; }
.sw { border-bottom: 2px dotted #7c3aed; cursor: pointer; }
.sw.heard { background: #ede9fe; border-radius: 4px; }
.lb.me .sw { border-bottom-color: #fff; } .lb.me .sw.heard { background: rgba(255,255,255,.25); }
.st-bank, .st-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.st-bank .pill, .st-pick .pill { cursor: pointer; border: 2px solid transparent; font: inherit; }
.st-pick .pill.on { border-color: #db2777; background: #fce7f3; }
#swt, #smt { width: 100%; font: inherit; font-size: 20px; line-height: 1.8; padding: 10px; border-radius: 14px; border: 2px solid #cbd5e1; box-sizing: border-box; }
.st-check { background: #f8fafc; border-radius: 14px; padding: 12px; margin-top: 10px; }
.nb-print { display: none; }
@media print {
  body.printing > *:not(.nb-print) { display: none !important; }
  body.printing .nb-print { display: block; font-family: Cairo, sans-serif; direction: rtl; color: #000; }
  .nb-print .np-head { display: flex; gap: 12px; align-items: center; border-bottom: 3px solid #0E5F63; padding-bottom: 8px; }
  .nb-print .np-head img { width: 56px; } .nb-print h1 { margin: 0; font-size: 26px; color: #0E5F63; }
  .nb-print .np-sum { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; font-size: 15px; }
  .nb-print h2 { font-size: 18px; color: #0E5F63; margin: 14px 0 6px; break-after: avoid; }
  .nb-print table { width: 100%; border-collapse: collapse; font-size: 16px; }
  .nb-print td { border: 1px solid #cbd5e1; padding: 4px 8px; } .nb-print td.a { font-size: 19px; font-weight: 700; } .nb-print td.e, .nb-print td.c { width: 34px; text-align: center; }
  .nb-print tr { break-inside: avoid; }
  .nb-print .np-lines i { display: block; border-bottom: 1px solid #94a3b8; height: 34px; }
}
/* ---------- AI tutor ---------- */
.tut-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.tut-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: inherit; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.tut-mode:hover { transform: translateY(-3px); border-color: #0891b2; }
.tut-mode b { font-size: 22px; color: #0e7490; }
.tut-mode small { color: var(--muted); }
.tut-emo { font-size: 46px; }
.tut-note { background: #ecfeff; border: 1px dashed #67e8f9; line-height: 1.9; }
.tut-demo { background: #fef9c3; border: 1px solid #fde047; color: #713f12; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; text-align: center; }
.tut-chat { background: linear-gradient(#ecfeff, #fff); min-height: 260px; }
.tut-chat .lb-ar { line-height: 1.9; }
.tut-flag { font-size: 14px; opacity: .45; align-self: flex-start; }
.tut-flag:hover, .tut-flag:disabled { opacity: 1; }
.lb.typing .lb-ar { display: flex; gap: 5px; padding: 6px 4px; }
.lb.typing i { width: 8px; height: 8px; border-radius: 50%; background: #0891b2; animation: tutdot 1s infinite ease-in-out; }
.lb.typing i:nth-child(2) { animation-delay: .15s; } .lb.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tutdot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.tut-sug { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.tut-chip { border: 2px solid #67e8f9; background: #fff; color: #0e7490; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 18px; cursor: pointer; }
.tut-chip:hover { background: #ecfeff; }
.tut-in { display: flex; gap: 10px; align-items: stretch; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tut-in textarea { flex: 1; resize: none; border: 2px solid #cffafe; border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 20px; }
.tut-in textarea:focus { outline: none; border-color: #0891b2; }
.tut-side { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 6px; }
.tut-cnt { font-size: 12px; color: var(--muted); }.tq { padding: 6px 10px; border-radius: 10px; margin: 4px 0; line-height: 1.8; }
.tq.user { background: #f5f3ff; } .tq.assistant { background: #ecfeff; }
.tq.fl { outline: 2px solid #f87171; }
.tq-flags { background: #fef2f2; border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.tq-conv { border: 1px solid #e5e7eb; border-radius: 12px; padding: 6px 12px; margin: 6px 0; }
.tq-conv summary { cursor: pointer; font-weight: 700; }#tleft[hidden], .tut-demo[hidden] { display: none !important; }
.tt-case .row { flex-wrap: wrap; gap: 6px; }
.tt-chk { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; font-size: 14px; }
.tt-chk span { padding: 2px 8px; border-radius: 999px; }
.tt-chk .y { background: #dcfce7; color: #166534; } .tt-chk .n { background: #fee2e2; color: #991b1b; }
.tt-rev label { cursor: pointer; margin-inline-end: 8px; }
.tt-note { flex: 1; min-width: 180px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 8px; font: inherit; }.tut-care { align-self: stretch; background: #fff7ed; border: 2px solid #fdba74; border-radius: 16px; padding: 12px 14px; line-height: 2; color: #7c2d12; }
.sv-alert { background: #fef2f2; border: 2px solid #ef4444; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.sv-alert h3 { color: #b91c1c; margin: 0 0 6px; }
.sv-alert .sv-row { background: #fff; border-radius: 12px; padding: 8px 10px; margin: 6px 0; flex-wrap: wrap; }
.sv-alert q { display: block; margin: 4px 0; color: #374151; }
/* ================= design v2 (2026-12-04): calm, soft, modern — one identity, two tracks (kids / adults) ================= */
:root { --teal: #0E5F63; --teal2: #14858A; --tealbg: #E6F2F1; --sun: #F29E4C; --sunbg: #FDF0E1; --bg: #F7F3EA; --line: #ECE6D8;
  --shadow: 0 1px 2px rgba(14, 95, 99, .06), 0 8px 24px rgba(14, 95, 99, .08); --radius: 20px; }
body { background: var(--bg); }
.card, .sec { box-shadow: var(--shadow); border: 1px solid var(--line); }
.btn { border-radius: 999px; box-shadow: 0 3px 0 #083f42, 0 6px 14px rgba(14, 95, 99, .18); }
.btn.sun { box-shadow: 0 3px 0 #c4762c, 0 6px 14px rgba(242, 158, 76, .25); }
.btn.coral { box-shadow: 0 3px 0 #b54f3a; }
.btn.ghost { border-width: 2px; box-shadow: 0 3px 0 #dbe4e3; }
.btn.small { border-radius: 999px; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.topbar { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); min-height: 58px; }
.pill, .iconbtn { border: 1px solid var(--line); }
.hero-steps { font-family: 'Cairo', sans-serif; font-weight: 800; color: var(--sun); font-size: 1.15em; }

/* side menu (desktop) */
.sidenav { display: none; }
body.has-nav .sidenav { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 58px; right: 0; bottom: 0; width: 250px; z-index: 15;
  background: #fff; border-left: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; }
.sn-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sn-me img { height: 44px; width: 44px; border-radius: 50%; background: var(--tealbg); object-fit: contain; }
.sn-me b { display: block; font-family: 'Cairo', sans-serif; color: var(--teal); }
.sn-me small { color: var(--muted); font-family: 'Poppins', sans-serif; font-weight: 600; }
.sn-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .15s; }
.sn-i:hover { background: var(--tealbg); }
.sn-i.on { background: var(--teal); color: #fff; }
.sn-i.on small, .sn-i.on .en { color: #cfe7e5 !important; }
.sn-ic { width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; border-radius: 10px; background: var(--bg); flex: none; }
.sn-i.on .sn-ic { background: rgba(255, 255, 255, .16); }
.sn-t { display: flex; flex-direction: column; line-height: 1.25; }
.sn-t b { font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 800; }
.sn-t small { font-size: 12px; color: var(--muted); }
/* bottom bar (mobile) */
.botnav { display: none; }
@media (min-width: 900px) {
  body.has-nav main, body.has-nav footer { margin-right: 250px; }
  body.has-nav main { max-width: 1000px; margin-left: auto; padding-right: 26px; padding-left: 26px; }
}
@media (max-width: 899px) {
  body.has-nav .sidenav { display: none; }
  body.has-nav .botnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; right: 0; left: 0; z-index: 25;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(14, 95, 99, .07); }
  .bn-i { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--muted); text-decoration: none; border-radius: 14px; font-family: 'Cairo', sans-serif; }
  .bn-i span { font-size: 22px; line-height: 1; padding: 4px 14px; border-radius: 999px; }
  .bn-i small { font-size: 12px; font-weight: 800; }
  .bn-i.on { color: var(--teal); }
  .bn-i.on span { background: var(--tealbg); }
  body.has-nav main { padding-bottom: 150px; }
  body.has-nav .mascot { bottom: 84px; }
  body.has-nav .mascot.zizo { bottom: 150px; }
  body.has-nav footer { padding-bottom: 90px; }
}

/* learner home (dashboard) */
.dash { display: grid; gap: 16px; grid-template-columns: 2fr 1fr 1fr; }
.dash > section { border-radius: var(--radius); }
.d-hi { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 24px 28px; color: #fff; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0E5F63 0%, #14858A 100%); box-shadow: var(--shadow); }
.d-hi::after { content: ''; position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.d-hi-t { flex: 1; position: relative; z-index: 1; }
.d-hi h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 8px 0 4px; }
.d-hi p { margin: 0; font-size: 18px; color: #e6f2f1; }
.d-hi .en { color: #b9dcd9; }
.d-chip { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.d-chip b { color: #FFD9A8; font-family: 'Poppins', sans-serif; }
.d-hi-robo { height: 150px; position: relative; z-index: 1; animation: dfloat 4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); }
@keyframes dfloat { 50% { transform: translateY(-8px); } }
.d-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 20px; }
.d-card h2 { font-size: 22px; color: var(--teal); margin: 4px 0 8px; }
.d-card h3 { font-size: 20px; margin: 4px 0; }
.d-card p { margin: 6px 0 14px; }
.d-lbl { display: block; font-weight: 800; color: var(--muted); font-family: 'Cairo', sans-serif; }
.d-prog small { color: var(--muted); }
.d-pct { font-family: 'Poppins', sans-serif; color: var(--teal); font-size: 22px; }
.d-bar { height: 12px; border-radius: 999px; background: var(--tealbg); overflow: hidden; margin: 10px 0 8px; }
.d-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14858A, #0E5F63); transition: width .6s; }
.d-bar.sun { background: #fbe3c8; }
.d-bar.sun i { background: var(--sun); }
.d-stat { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.d-stat b { font-family: 'Poppins', sans-serif; font-size: 30px; color: var(--teal); line-height: 1.1; }
.d-stat small { color: var(--muted); font-weight: 700; }
.d-ico { font-size: 28px; }
.d-next { grid-column: 1 / 2; }
.d-mission { grid-column: 2 / 4; background: var(--sunbg); border-color: #f6dcbc; }
.d-mission h3 { color: #8a4b0f; }
.d-mission.done { background: #e9f7ef; border-color: #c7ebd4; }
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr 1fr; gap: 12px; }
  .d-hi { padding: 18px; } .d-hi-robo { height: 96px; }
  .d-prog, .d-next, .d-mission { grid-column: 1 / -1; }
}

/* talk with Robo: Robo stays visible beside the chat */
.tut-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #E6F2F1, #fff); margin-bottom: 16px; }
.tut-hero h1 { color: var(--teal); font-size: clamp(26px, 4vw, 36px); font-weight: 900; }
.tut-hero-robo { height: 130px; animation: dfloat 4s ease-in-out infinite; }
.tut-say { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 16px; font-size: 18px; font-weight: 700; margin: 6px 0; box-shadow: var(--shadow); }
.tut-modes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tut-mode { border-top: 5px solid var(--mc, var(--teal)) !important; text-decoration: none; color: inherit; transition: transform .15s; }
.tut-mode:hover { transform: translateY(-3px); }
.tut-mode b { color: var(--mc, var(--teal)); font-family: 'Cairo', sans-serif; font-size: 19px; }
.tut-room { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.tut-robo { position: sticky; top: 76px; background: linear-gradient(180deg, #E6F2F1, #fff); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-top: 5px solid var(--mc, var(--teal)); }
.tut-robo img { height: 150px; transition: transform .3s; }
.tut-robo b { font-family: 'Cairo', sans-serif; color: var(--teal); font-size: 18px; }
.tut-robo small { color: var(--muted); font-weight: 700; }
.tut-robo.think img { animation: rthink 1s ease-in-out infinite; }
.tut-robo.talk img { animation: jump .5s 1; }
@keyframes rthink { 50% { transform: rotate(-6deg) translateY(-4px); } }
.tut-main { min-width: 0; }
.tut-chat .lb-who img { height: 34px; }
@media (max-width: 760px) {
  .tut-room { grid-template-columns: 1fr; gap: 10px; }
  .tut-robo { position: static; flex-direction: row; justify-content: flex-start; padding: 8px 14px; gap: 10px; text-align: start; }
  .tut-robo img { height: 56px; }
  .tut-hero { flex-direction: column; text-align: center; } .tut-hero-robo { height: 100px; }
}@media (min-width: 900px) { body.has-nav .help-btn { right: 266px; } }
@media (max-width: 899px) { body.has-nav .help-btn { bottom: 84px; padding: 6px; } body.has-nav .help-btn span { display: none; } }a.btn { text-decoration: none; }
.d-next h2 .en { display: block; font-size: .62em; margin-top: 2px; }
.tut-modes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 600px) { .act-head h2 { font-size: 22px; line-height: 1.3; } .act-head h2 .en { display: block; font-size: .6em; } }

/* ================= design v2, phase 2: the calm lesson page ================= */
body.in-lesson footer { display: none; }
body.in-lesson main { max-width: 860px; }
.l-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.l-x { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 20px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); transition: background .15s, color .15s; }
.l-x:hover { background: var(--tealbg); color: var(--teal); }
.l-meta { flex: 1; min-width: 0; }
.l-meta small { display: block; color: var(--muted); font-weight: 700; font-size: 14px; }
.l-meta h2 { margin: 0; font-size: 24px; color: var(--teal); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.l-meta h2 img { height: 34px; }
.l-meta h2 .en { font-size: .55em; }
.l-extra { flex: none; display: flex; align-items: center; gap: 8px; }
.l-extra .progress { width: 160px; }
.l-steps { display: flex; gap: 4px; margin: 0 0 12px; }
.l-steps i { flex: 1; height: 6px; border-radius: 999px; background: #e7e1d3; }
.l-steps i.ok { background: var(--teal2); }
.l-steps i.cur { background: var(--sun); box-shadow: 0 0 0 3px rgba(242, 158, 76, .22); }
.l-robo { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.l-robo img { height: 58px; flex: none; animation: dfloat 4s ease-in-out infinite; }
.l-say { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; border-bottom-right-radius: 4px; padding: 10px 16px;
  font-size: 18px; font-weight: 700; box-shadow: var(--shadow); }
.l-say .en { display: block; font-size: .72em; font-weight: 400; }
body.adult .l-robo img { height: 40px; animation: none; }
body.adult .l-say { font-size: 16px; font-weight: 500; }
@media (max-width: 600px) {
  .l-meta h2 { font-size: 20px; } .l-meta h2 .en { display: none; }
  .l-extra .progress { width: 90px; }
  .l-robo img { height: 44px; } .l-say { font-size: 16px; padding: 8px 12px; }
}
/* end of an activity: result → feedback → reward → next */
.l-done { max-width: 560px; margin: 10px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 26px 22px; }
.l-done-top { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.l-done-robo { height: 120px; animation: jump .6s 2; }
.l-done .stars-big img { height: 54px; }
.l-done-act { color: var(--muted); font-weight: 700; }
.l-done h2 { color: var(--teal); font-size: 28px; margin: 6px 0; }
.l-msg { font-size: 19px; margin: 6px 0; }
.l-fb { background: var(--tealbg); color: #0b4a4d; border-radius: 16px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
.l-reward { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.l-reward span { background: var(--sunbg); border: 1px solid #f6dcbc; color: #8a4b0f; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.l-reward b { font-family: 'Poppins', sans-serif; }
.l-done-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.l-done-btns .btn { min-width: 260px; }
.l-map { color: var(--muted); font-weight: 700; font-size: 15px; }.l-done .stars-big img.off { filter: grayscale(1) !important; opacity: .28 !important; }
.l-done .stars-big img { margin: 0 4px; } .l-done .stars-big img.on { animation: starpop .5s backwards; }

/* ================= Design v2, phase 3: the teacher's own layout (supervisor.js) ================= */
body.t-mode main { max-width: 1320px; }
body.t-mode footer, body.t-mode .mascot, body.t-mode .zizo { display: none !important; }
.t-shell { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.t-side { position: sticky; top: 12px; background: var(--teal); color: #fff; border-radius: var(--radius); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 24px); overflow: auto; }
.t-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 10px; border-bottom: 1px solid rgba(255,255,255,.15); }
.t-brand img { width: 40px; height: 40px; background: #fff; border-radius: 12px; padding: 4px; }
.t-brand b { display: block; font-size: 18px; } .t-brand small { color: #cfe7e6; }
.t-who { display: flex; align-items: center; gap: 8px; padding: 10px 8px; font-size: 15px; color: #e6f3f2; }
.t-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-g { font-size: 13px; color: #9fcfcc; padding: 12px 10px 4px; font-weight: 700; }
.t-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 16px; line-height: 1.3; }
.t-i:hover { background: rgba(255,255,255,.1); }
.t-i.on { background: #fff; color: var(--teal); font-weight: 700; }
.t-ic { width: 26px; text-align: center; font-size: 19px; }
.t-t { flex: 1; }
.t-i i { font-style: normal; background: var(--sun); color: #3b1d00; border-radius: 999px; min-width: 24px; padding: 0 7px; text-align: center; font-size: 13px; font-weight: 800; }
.t-i em { font-style: normal; font-size: 11px; background: rgba(255,255,255,.18); padding: 1px 7px; border-radius: 999px; }
.t-i.on em { background: #fdebd8; color: #8a4b10; }
.t-out { margin-top: 10px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 12px; padding: 8px; font: inherit; font-size: 15px; cursor: pointer; }
.t-out:hover { background: rgba(255,255,255,.1); }
.t-main { min-width: 0; }
.t-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.t-top h2 { margin: 0; font-size: 26px; color: var(--teal); }
.t-cls select { font: inherit; font-size: 16px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line, #e2e8f0); background: #fff; }
.t-hi { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff 55%, #e7f3f2); margin-bottom: 14px; }
.t-hi > div { flex: 1; } .t-hi h3 { margin: 0 0 6px; color: var(--teal); } .t-hi p { margin: 4px 0; }
.t-hi img { width: 110px; height: auto; }
.t-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.t-kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.t-kpi span { font-size: 24px; } .t-kpi b { font-size: 28px; color: var(--teal); font-family: Poppins, Tajawal, sans-serif; } .t-kpi small { color: var(--muted); font-size: 14px; }
.t-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.t-cols .card { margin: 0; } .t-cols h3 { margin-top: 0; font-size: 19px; }
.t-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid #eef2f1; color: var(--ink); text-decoration: none; }
.t-row:last-of-type { border-bottom: 0; }
a.t-row:hover { background: #f4faf9; border-radius: 10px; }
.t-row img { height: 30px; } .t-row b { color: var(--teal); } .t-row small { color: var(--muted); font-size: 13px; }
.t-row.zero b { color: #94a3b8; }
.t-units { gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.t-scroll { overflow: auto; }
.t-mx { border-collapse: collapse; width: 100%; font-size: 15px; }
.t-mx th, .t-mx td { padding: 7px 6px; border-bottom: 1px solid #eef2f1; text-align: center; white-space: nowrap; }
.t-mx thead th { background: #f4faf9; color: var(--teal); font-weight: 700; vertical-align: bottom; }
.t-mx thead th small { display: block; font-size: 11px; font-weight: 500; white-space: normal; max-width: 72px; margin: 2px auto 0; color: var(--muted); }
.t-mx tfoot th { background: #fbf7ef; font-size: 13px; color: var(--muted); }
.t-mx td.nm { text-align: right; } .t-mx td.nm img { height: 28px; vertical-align: middle; } .t-mx td.nm a { color: var(--ink); font-weight: 700; text-decoration: none; }
.pc { font-style: normal; border-radius: 8px; color: #b45309; font-size: 13px; }
.pc.s0 { color: #cbd5e1; } .pc.s1 { background: #fff7ed; } .pc.s2 { background: #fdebd2; } .pc.s3 { background: #fcd9a8; color: #92400e; }
.t-legend i { padding: 2px 6px; margin: 0 2px; }
.rs.hi { background: #dcfce7; color: #166534; font-weight: 700; } .rs.mid { background: #fef9c3; color: #854d0e; } .rs.lo { background: #fee2e2; color: #991b1b; font-weight: 700; }
.t-err td { vertical-align: top; } .t-err a.pill { text-decoration: none; margin: 2px; display: inline-block; }
.t-words { display: flex; flex-wrap: wrap; gap: 8px; } .t-words small { color: var(--muted); }
.t-report { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.tr-head { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--teal); padding-bottom: 10px; margin-bottom: 10px; }
.tr-head img { width: 46px; }
.tr-sum { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 12px; }
.t-soon .t-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.t-soon .t-types div { background: #f4faf9; border: 2px dashed #b9dbd8; border-radius: 16px; padding: 14px; text-align: center; font-size: 28px; opacity: .8; }
.t-soon .t-types b { display: block; font-size: 16px; color: var(--teal); }
@media (max-width: 1100px) { .t-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .t-shell { grid-template-columns: 1fr; gap: 12px; }
  .t-side { position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; overflow-x: auto; max-height: none; padding: 8px; border-radius: 16px; gap: 4px; }
  .t-brand, .t-who, .t-g { display: none; }
  .t-nav { display: flex; gap: 4px; }
  .t-i { flex-direction: column; gap: 2px; padding: 6px 10px; font-size: 12px; white-space: nowrap; position: relative; }
  .t-i i { position: absolute; top: 0; left: 2px; font-size: 11px; min-width: 18px; padding: 0 4px; }
  .t-i em { display: none; }
  .t-out { margin: 0; white-space: nowrap; font-size: 12px; padding: 6px 10px; }
  .t-out .en { display: none; }
  .t-top h2 { font-size: 21px; }
  .t-cols { grid-template-columns: 1fr; }
  .t-kpis { grid-template-columns: 1fr 1fr; }
  .t-hi img { width: 72px; }
}
@media print {
  body.print-report .t-side, body.print-report .t-top, body.print-report #svAlerts, body.print-report .topbar, body.print-report .no-print { display: none !important; }
  body.print-report .t-shell { display: block; }
  body.print-report .t-report { box-shadow: none; padding: 0; }
  body.print-cards .t-side, body.print-cards .t-top, body.print-cards #svAlerts { display: none !important; }
  body.print-cards .t-shell { display: block; }
}
body.t-mode .help-btn { right: auto !important; left: 16px; }
@media (max-width: 900px) { .t-kpi { padding: 10px 12px; } .t-kpi span { font-size: 18px; } .t-kpi b { font-size: 22px; } .t-kpi small { font-size: 12px; } .t-side { scrollbar-width: thin; } }

/* ================= Design v2, phase 4: parent page (#/parent) — calm, bilingual, few blocks ================= */
.par-gate { max-width: 460px; margin: 30px auto; }
.par-gate .par-ic { font-size: 54px; }
.par-q { font-size: 34px; font-family: Poppins, sans-serif; font-weight: 700; color: var(--teal); margin: 8px 0; }
.par-gate input { width: 120px; font-size: 24px; text-align: center; padding: 6px; border-radius: 14px; border: 2px solid #cbd5e1; }
.par { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.par > section { margin: 0; }
.par h2 { font-size: 20px; margin: 0 0 10px; color: var(--teal); }
.par h3 { font-size: 16px; margin: 12px 0 6px; color: var(--muted); }
.par .en { font-size: .95em; }
.par-hi, .par-home, .par-foot, .par > p { grid-column: 1 / -1; }
.par-hi { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff 55%, #e7f3f2); }
.par-hi img { height: 84px; } .par-hi h1 { margin: 2px 0 6px; font-size: 26px; color: var(--teal); } .par-hi p { margin: 0; } .par-hi small { color: var(--muted); }
.par-hi h1 .en { display: block; font-size: 17px; color: var(--muted); font-weight: 500; }
.par-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.par-nums b { display: block; font-size: 26px; color: var(--teal); font-family: Poppins, Tajawal, sans-serif; }
.par-nums small { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }
.par-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 120px; margin: 14px 0 6px; align-items: end; }
.par-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.par-bars i { width: 70%; min-height: 4px; background: var(--teal2); border-radius: 8px 8px 3px 3px; display: block; }
.par-bars .now i { background: var(--sun); }
.par-bars small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.par-bar { height: 12px; background: #e2ecea; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.par-bar i { display: block; height: 100%; background: var(--teal2); border-radius: 99px; }
.par-words { display: flex; flex-wrap: wrap; gap: 8px; }
.par-words span { background: #f4faf9; border: 1px solid #d6ebe8; border-radius: 14px; padding: 6px 10px; text-align: center; }
.par-words small { display: block; font-size: 12px; }
.par-row { padding: 8px 0; border-bottom: 1px solid #eef2f1; }
.par-home ol { margin: 0 0 12px; padding-inline-start: 22px; line-height: 1.9; }
.par-home li .en { display: block; font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.par-foot { display: flex; gap: 10px; justify-content: center; }
@media (max-width: 760px) {
  .par { grid-template-columns: 1fr; }
  .par-hi img { height: 60px; } .par-hi h1 { font-size: 21px; }
}
@media print { .par .btn { display: none; } .par { display: block; } .par > section { margin-bottom: 10px; box-shadow: none; border: 1px solid #ddd; break-inside: avoid; } }.par-focus { grid-column: 1 / -1; }

/* ================= Design v2, phase 5: two visual tracks — one identity (petrol, beige, orange) ================= */
/* --- kids: warm, colourful, a little bouncy, big touch targets --- */
body.kid .sn-i .sn-ic { transition: transform .2s; }
body.kid .sn-i:hover .sn-ic { transform: rotate(-8deg) scale(1.08); }
body.kid .sidenav .sn-i:nth-of-type(1) .sn-ic { background: #E6F2F1; } body.kid .sidenav .sn-i:nth-of-type(2) .sn-ic { background: #FDF0E1; }
body.kid .sidenav .sn-i:nth-of-type(3) .sn-ic { background: #E8F1FE; } body.kid .sidenav .sn-i:nth-of-type(4) .sn-ic { background: #FDE8E4; }
body.kid .sidenav .sn-i:nth-of-type(5) .sn-ic { background: #EFE9FD; } body.kid .sidenav .sn-i:nth-of-type(6) .sn-ic { background: #FFF6D6; }
body.kid .sidenav .sn-i:nth-of-type(7) .sn-ic { background: #E4F6EC; } body.kid .sidenav .sn-i:nth-of-type(8) .sn-ic { background: #FDE8F1; }
body.kid .sidenav .sn-i:nth-of-type(9) .sn-ic { background: #FFF1D6; }
body.kid .sidenav .sn-i.on .sn-ic { background: rgba(255, 255, 255, .2); }
body.kid .d-stat:nth-of-type(3) { background: linear-gradient(180deg, #FFF3E6, #fff); border-color: #F8DDBE; }
body.kid .d-stat:nth-of-type(4) { background: linear-gradient(180deg, #FFF9E0, #fff); border-color: #F5E6A8; }
body.kid .d-stat .d-ico { animation: dfloat 3s ease-in-out infinite; display: inline-block; }
body.kid .d-card, body.kid .d-stat, body.kid .tut-mode, body.kid .card.me-unit { transition: transform .18s; }
body.kid .d-card:hover, body.kid .d-stat:hover { transform: translateY(-3px); }
body.kid .d-hi h1 { font-family: 'Cairo', sans-serif; }
body.kid .btn { min-height: 46px; }
body.kid .l-steps i { height: 8px; }

/* --- adults: calm, professional, flat; no cartoon characters, no motion --- */
body.adult { --bg: #F6F6F3; --radius: 12px; --line: #E5E7EB; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .04); }
body.adult h1, body.adult h2, body.adult h3, body.adult .sn-t b, body.adult .d-hi h1 { font-family: 'Cairo', sans-serif; font-weight: 700; }
body.adult .btn { box-shadow: none !important; }
body.adult .sidenav { background: #fff; }
body.adult .sn-ic { background: transparent !important; font-size: 17px; width: 26px; filter: grayscale(.35); }
body.adult .sn-i { border-radius: 8px; padding: 8px 10px; }
body.adult .sn-i.on { background: var(--tealbg); color: var(--teal); box-shadow: inset -3px 0 0 var(--teal); }
body.adult .sn-i.on small, body.adult .sn-i.on .en { color: var(--muted) !important; }
body.adult .sn-t b { font-size: 14px; }
body.adult .bn-i span { filter: grayscale(.35); }
body.adult .d-hi { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 22px 26px; }
body.adult .d-hi::after { display: none; }
body.adult .d-hi h1 { font-size: clamp(22px, 3vw, 30px); color: var(--teal); }
body.adult .d-hi p { color: var(--muted); font-size: 16px; }
body.adult .d-hi .en { color: #94a3b8; }
body.adult .d-chip { background: var(--tealbg); border-color: transparent; color: var(--teal); }
body.adult .d-chip b { color: var(--teal); }
.d-ring { --p: 0; position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%), conic-gradient(var(--teal2) calc(var(--p) * 1%), #E7ECEB 0); }
.d-ring b { font-family: 'Poppins', sans-serif; font-size: 24px; color: var(--teal); line-height: 1; }
.d-ring small { font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
body.adult .d-stat b, body.adult .d-pct { font-size: 26px; }
body.adult .d-ico { font-size: 20px; filter: grayscale(.4); }
body.adult .d-mission { background: #fff; border-color: var(--line); border-right: 4px solid var(--sun); }
body.adult .d-mission h3 { color: var(--ink); }
body.adult .d-bar { height: 8px; }
body.adult .tut-hero { background: #fff; }
body.adult .tut-hero-robo { height: 72px; animation: none; }
body.adult .tut-hero h1 { font-size: clamp(22px, 3vw, 28px); }
body.adult .tut-mode { border-top-width: 3px !important; }
body.adult .tut-mode:hover { transform: none; border-color: var(--mc, var(--teal)); }
body.adult .tut-robo { background: #fff; border-top-width: 3px; }
body.adult .tut-robo img { height: 64px; }
body.adult .tut-robo.think img, body.adult .tut-robo.talk img { animation: none; }
body.adult .l-done { border-radius: 14px; padding: 24px 22px; }
body.adult .l-done-robo { display: none; }
body.adult .l-done .stars-big img { height: 34px; animation: none !important; }
body.adult .l-done h2 { font-size: 24px; }
body.adult .l-say { border-radius: 10px; }
body.adult .l-x { border-radius: 10px; box-shadow: none; }
body.adult .l-steps i { height: 4px; }
body.adult .l-steps i.cur { box-shadow: none; }
@media (max-width: 760px) { .d-ring { width: 90px; height: 90px; } .d-ring b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { body.kid .d-stat .d-ico, .d-hi-robo, .l-robo img, .tut-hero-robo { animation: none !important; } }
/* ================= Design v2, phase 6: the public landing page (#/welcome) ================= */
.lp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 30px; }
.lp-trust span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
.lp-trust small { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.lp-h { text-align: center; color: var(--teal); font-size: clamp(24px, 3.4vw, 32px); margin: 34px 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lp-h .en { font-size: .55em; color: var(--muted); font-weight: 500; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px 18px; text-align: center; }
.lp-step i { position: absolute; top: -14px; right: 50%; transform: translateX(50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; font-family: Poppins, sans-serif; }
.lp-step > span { font-size: 40px; display: block; }
.lp-step h3 { margin: 6px 0; color: var(--teal); font-family: 'Cairo', sans-serif; }
.lp-step p { margin: 0; color: var(--ink); } .lp-step .en { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.lp-secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-sec { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-right: 5px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; color: var(--ink); text-decoration: none; transition: transform .15s; }
.lp-sec:hover { transform: translateY(-3px); }
.lp-sec img { flex: none; }
.lp-sec h3 { margin: 0; color: var(--c); font-size: 19px; font-family: 'Cairo', sans-serif; }
.lp-sec p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.lp-soon { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.lp-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.lp-lv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; opacity: .7; box-shadow: var(--shadow); }
.lp-lv.open { opacity: 1; border-top: 4px solid var(--c); }
.lp-lv b { font-family: Poppins, sans-serif; font-size: 26px; color: var(--c); }
.lp-lv span { font-weight: 800; font-family: 'Cairo', sans-serif; }
.lp-lv small { color: var(--muted); font-size: 12px; }
.lp-lv em { font-style: normal; font-size: 13px; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--muted); align-self: center; }
.lp-lv.open em { background: var(--tealbg); color: var(--teal); font-weight: 700; }
.lp-note { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-who .card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-who h3 { margin: 0; color: var(--teal); font-family: 'Cairo', sans-serif; }
.lp-who p { flex: 1; margin: 0 0 8px; }
.lp-who .row { gap: 8px; flex-wrap: wrap; }
.lp-ic { font-size: 38px; }
.lp-cta { display: flex; align-items: center; gap: 20px; margin: 40px 0 10px; padding: 22px 28px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #0E5F63, #14858A); box-shadow: var(--shadow); }
.lp-cta img { height: 110px; flex: none; }
.lp-cta h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 28px); }
.lp-cta .en { display: block; font-size: .6em; color: #cfe7e5; font-weight: 500; }
@media (max-width: 860px) {
  .lp-steps, .lp-secs, .lp-who { grid-template-columns: 1fr; }
  .lp-steps { gap: 24px; }
  .lp-levels { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .lp-cta { flex-direction: column; text-align: center; } .lp-cta img { height: 80px; }
  .lp-trust span { font-size: 14px; padding: 6px 12px; }
}@media (max-width: 860px) { .lp-secs { grid-template-columns: 1fr 1fr; gap: 10px; } .lp-sec { flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; border-right-width: 1px; border-top: 4px solid var(--c); } .lp-sec p { display: none; } .lp-sec h3 { font-size: 16px; } .lp-sec img { width: 36px; height: 36px; } }
@media (max-width: 600px) { .lp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lp-trust span { font-size: 13px; padding: 6px 8px; text-align: center; border-radius: 14px; } .lp-trust small { display: block; margin: 0; } .lp-steps { gap: 10px; } .lp-step { display: grid; grid-template-columns: 44px 1fr; text-align: start; padding: 12px 14px; column-gap: 10px; } .lp-step i { position: static; transform: none; grid-row: span 2; align-self: center; width: 34px; height: 34px; } .lp-step > span { display: none; } .lp-step h3 { margin: 0; font-size: 17px; } .lp-step p { font-size: 14px; } }

/* ---------- v7: learner account page (#/account) ---------- */
.acc-card{max-width:520px;margin:20px auto}
.acc-offer{background:#fff7e6;border:2px solid #fde3a7;border-radius:14px;padding:10px 14px;text-align:center;line-height:1.8;margin:8px 0 12px}
.acc-tabs{display:flex;gap:8px;justify-content:center;margin:6px 0 12px}
.acc-l{display:block;margin:10px 0 0;font-weight:700}
.acc-l input{display:block;width:100%;margin-top:6px;font-size:19px;padding:10px 12px;border-radius:14px;border:3px solid #e2e8f0;font-family:Poppins,sans-serif;text-align:left;box-sizing:border-box}
.acc-l input:focus{border-color:var(--teal);outline:none}
.acc-chk{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;font-size:15px;line-height:1.7;cursor:pointer}
.acc-chk input{width:22px;height:22px;flex:none;margin-top:4px;accent-color:var(--teal)}
.acc-chk[hidden]{display:none}
.acc-msg{min-height:1.6em;line-height:1.8}
.linkbtn{background:none;border:0;color:var(--teal);text-decoration:underline;cursor:pointer;font:inherit;font-size:15px}
.acc-alt{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;border-top:2px dashed #e7dccb;margin-top:12px;padding-top:12px;font-size:15px}
.acc-alt a{color:var(--teal)}
.acc-who b{font-family:Poppins,sans-serif;font-size:18px}
body.adult .acc-offer{background:#f8fafc;border-color:#e2e8f0}@media (max-width:520px){.acc-card{margin:8px auto}.acc-tabs .btn{flex:1;padding-inline:8px}.acc-tabs .en{display:none}.acc-alt{flex-direction:column;align-items:center}}@media (max-width:520px){#aGo .en,#aCont .en{display:none}}
.acc-pay{text-align:center;margin:6px 0 4px}
.acc-pay .btn{margin:4px}@media (max-width:760px){#aSub .en,#aPortal .en{display:none}}

/* v8 lock */
.acc-lock{background:#fff1f0;border:2px solid #f5a3a3;color:#7a1f1f;border-radius:14px;padding:12px 14px;margin:10px 0;line-height:1.9}

/* public pages: nav strip, four doors, info pages (families / schools) */
.lp-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 8px;margin:0 0 14px;box-shadow:var(--shadow)}
.lp-nav a{color:var(--ink);text-decoration:none;font-weight:700;padding:6px 14px;border-radius:999px;font-size:16px}
.lp-nav a .en{font-size:12px;color:var(--muted);font-weight:500}
.lp-nav a:hover{background:var(--tealbg)}
.lp-nav a.on{background:var(--teal);color:#fff}.lp-nav a.on .en{color:#cfe7e5}
.lp-nav .lp-nav-in{margin-inline-start:auto;border:2px solid var(--teal);color:var(--teal)}
.doors{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.door{background:#fff;border:1px solid var(--line);border-top:6px solid var(--c);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 16px;display:flex;flex-direction:column;gap:6px;text-align:center;transition:transform .15s}
.door:hover{transform:translateY(-4px)}
.door-ic{font-size:46px;line-height:1}
.door h3{margin:4px 0 0;color:var(--c);font-family:'Cairo',sans-serif;font-size:21px}
.door h3 .en{display:block;font-size:13px;color:var(--muted);font-weight:500}
.door p{flex:1;margin:0 0 8px;font-size:15px}.door p .en{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.door-go{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.door-go .btn{justify-content:center}
.info-hero{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-right:8px solid var(--c);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 24px}
.info-ic{font-size:64px;line-height:1;flex:none}
.info-hero h1{margin:0 0 6px;color:var(--c);font-size:clamp(28px,4.5vw,42px);font-weight:900}
.info-hero h1 .en{font-size:.45em;color:var(--muted);font-weight:500}
.info-hero .lead{margin:0;font-size:19px}.info-hero .lead .en{display:block;font-size:15px;color:var(--muted);margin-top:4px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.info-card>span{font-size:34px}
.info-card h3{margin:4px 0;color:var(--teal);font-family:'Cairo',sans-serif;font-size:19px}
.info-card p{margin:0;font-size:15px}.info-card .en{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.info-list ul{list-style:none;margin:0;padding:0}
.info-list li{padding:9px 0;border-bottom:1px dashed var(--line);font-size:17px}
.info-list li:last-child{border-bottom:0}
.info-list li>span:first-child{display:inline-block;width:32px}
.info-list li .en{font-size:13px;color:var(--muted);margin-inline-start:6px}
.info-price{margin:24px 0 0;background:var(--sunbg);border:2px dashed var(--sun);border-radius:var(--radius);padding:14px 18px;font-size:18px;line-height:1.9;text-align:center}
.info-price .en{display:block;font-size:14px;color:var(--muted)}
.info-price a{font-weight:800;color:var(--teal)}
@media (max-width:900px){.doors{grid-template-columns:repeat(2,1fr)}.info-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.doors,.info-grid{grid-template-columns:1fr}.info-hero{flex-direction:column;text-align:center;border-right:1px solid var(--line);border-top:8px solid var(--c)}
  .lp-nav{border-radius:18px;justify-content:center}.lp-nav a .en{display:none}.lp-nav .lp-nav-in{margin-inline-start:0}}
.door-go .btn{flex-direction:column;gap:0;line-height:1.25;padding-top:8px;padding-bottom:8px;white-space:normal}.door-go .btn .en{font-size:11px;opacity:.85}

/* ---- teacher dashboard v2: quick actions, mastery bars, sortable roster, student-file tabs, certificate ---- */
.t-qas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.t-qa { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: .15s; text-align: center; }
.t-qa:hover { border-color: var(--teal); transform: translateY(-2px); }
.t-qa span { font-size: 26px; } .t-qa b { font-size: 15px; color: var(--teal); } .t-qa small { font-size: 12px; }
.t-cols + .t-cols { margin-top: 14px; }
.t-rank { width: 24px; height: 24px; border-radius: 50%; background: #F29E4C; color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.t-bar .t-bl { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.t-bar .t-bl i { display: block; height: 7px; background: #eef2f1; border-radius: 9px; overflow: hidden; }
.t-bar .t-bl em { display: block; height: 100%; background: var(--teal); border-radius: 9px; }
.t-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.t-tools input[type=search] { font: inherit; font-size: 16px; padding: 7px 12px; border-radius: 12px; border: 2px solid var(--line, #e2e8f0); min-width: 230px; }
.t-sort th[data-k] { cursor: pointer; user-select: none; white-space: nowrap; }
.t-sort th[data-k]:hover, .t-sort th.on { color: var(--teal); }
.t-sort th i { font-style: normal; font-size: 11px; }
.t-sort td.t-old { color: #dc2626; }
.sf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; border-bottom: 3px solid #e7f0ef; }
.sf-tabs button { font: inherit; font-size: 16px; background: none; border: 0; padding: 9px 14px 7px; border-radius: 12px 12px 0 0; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; align-items: center; margin-bottom: -3px; border-bottom: 3px solid transparent; }
.sf-tabs button small { font-size: 11px; }
.sf-tabs button.on { color: var(--teal); border-bottom-color: var(--teal); background: #f4faf9; font-weight: 700; }
.sf-tabs button i { font-style: normal; background: #dc2626; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; }
.cert-wrap { position: fixed; inset: 0; background: rgba(15, 40, 42, .6); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.cert-bar { display: flex; gap: 10px; }
.cert { background: #fff; width: min(820px, 96vw); aspect-ratio: 1.414; border: 14px double var(--teal); border-radius: 8px; padding: 30px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cert img { height: 64px; } .cert h1 { margin: 6px 0 0; font-size: 44px; color: var(--teal); } .cert h2 { font-size: 38px; color: #F29E4C; margin: 4px 0; }
.cert p { margin: 4px 0; font-size: 19px; }
.cert-foot { display: flex; justify-content: space-between; width: 80%; margin-top: 22px; }
.cert-foot div { display: flex; flex-direction: column; border-top: 2px solid #cbd5e1; padding-top: 6px; min-width: 180px; }
@media print { body.print-cert > *:not(#certBox) { display: none !important; } body.print-cert .cert-wrap { position: static; background: none; padding: 0; } body.print-cert .cert { width: 100%; } }
@media (max-width: 560px) { .sf-tabs button { font-size: 14px; padding: 7px 9px 5px; } .cert h1 { font-size: 28px; } .cert h2 { font-size: 24px; } .cert { padding: 16px; } }
table.dash.t-sort { display: table; gap: 0; }

/* ---- class tasks (js/tasks.js) ---- */
.tk-new summary { cursor: pointer; font-size: 18px; }
.tk-f { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-weight: 700; }
.tk-f input, .tk-dt input { font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line, #e2e8f0); }
.tk-dt { gap: 16px; flex-wrap: wrap; margin: 10px 0; } .tk-dt label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.tk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.tk-it { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 2px solid #e2e8f0; cursor: pointer; background: #fff; font-size: 15px; }
.tk-it input { accent-color: var(--teal); } .tk-it.on { border-color: var(--teal); background: #eef7f6; }
.tk-chosen { margin: 6px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tk-h { margin: 18px 4px 8px; color: var(--teal); } .tk-h small { color: var(--muted); }
.tk { border-inline-start: 6px solid #16a34a; } .tk-soon { border-inline-start-color: #2563eb; } .tk-done { border-inline-start-color: #94a3b8; }
.tk-dates { margin: 6px 0; } .tk-items { display: flex; flex-wrap: wrap; gap: 6px; } .tk-note { margin: 6px 0; }
.tk-bar { display: flex; height: 10px; border-radius: 9px; background: #eef2f1; overflow: hidden; margin: 10px 0 6px; }
.tk-bar i { display: block; height: 100%; } .tk-bar .ok { background: #16a34a; } .tk-bar .late { background: #F29E4C; } .tk-bar .part { background: #93c5fd; }
.tk-sum { gap: 14px; flex-wrap: wrap; font-size: 15px; } .tk-det { margin-top: 10px; }
.tk-ok { background: #dcfce7; } .tk-late { background: #ffedd5; } .tk-no { color: #94a3b8; }
.my-tasks h3 { margin-top: 0; } .mt { border: 2px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.mt.done { border-color: #86efac; background: #f0fdf4; } .mt.over { border-color: #fdba74; }
.mt-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.mt-i { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--teal); color: var(--ink); text-decoration: none; font-size: 15px; }
.mt-i.ok { border-color: #86efac; background: #f0fdf4; } .mt-i b { color: var(--teal); }

/* ---- class groups (js/tasks.js) ---- */
.g-chip { display: inline-block; background: var(--g, #0E5F63); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.g-chip.all { background: #e2e8f0; color: #334155; }
.g-card h3 .g-chip { font-size: 18px; padding: 4px 14px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.g-grid > .card { margin: 0; }
.g-card { border-top: 6px solid var(--g, #0E5F63); }
.g-sug .g-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.g-sug .g-card h4 { margin: 0 0 4px; color: var(--g); }
.g-sug summary { cursor: pointer; font-size: 18px; } .g-sug .g-grid { margin-top: 12px; }
.g-kids { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.g-kid { display: flex; align-items: center; gap: 5px; background: #f4faf9; border-radius: 999px; padding: 3px 10px 3px 4px; text-decoration: none; color: var(--ink); font-size: 14px; }
.g-kid img { height: 24px; }
.g-edit { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px dashed #cbd5e1; }
.g-edit .center { width: 100%; margin-top: 6px; }
.g-new { gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.g-new input[type=text] { font: inherit; font-size: 16px; padding: 7px 12px; border-radius: 12px; border: 2px solid var(--line, #e2e8f0); flex: 1; min-width: 220px; }
.g-cols { display: flex; gap: 4px; } .g-cols label { cursor: pointer; } .g-cols input { display: none; }
.g-cols i { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--g); border: 3px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
.g-cols input:checked + i { box-shadow: 0 0 0 3px var(--g); }
.t-gsel, #tkG { font: inherit; font-size: 16px; padding: 7px 12px; border-radius: 12px; border: 2px solid var(--line, #e2e8f0); background: #fff; }

/* ---- exams (js/exams.js) ---- */
.ex-head { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.ex-gen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; padding: 10px; background: #f4faf9; border-radius: 14px; }
.ex-gen select { font: inherit; font-size: 15px; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line, #e2e8f0); }
.ex-q { border: 2px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.ex-n { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; }
.ex-q .x { border: 0; background: none; cursor: pointer; font-size: 15px; color: #64748b; }
.ex-in { font: inherit; font-size: 16px; padding: 7px 10px; border-radius: 10px; border: 2px solid var(--line, #e2e8f0); width: 100%; margin: 6px 0; box-sizing: border-box; }
.ex-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; }
.ex-opts label { display: flex; align-items: center; gap: 6px; border: 2px solid #e2e8f0; border-radius: 10px; padding: 2px 8px; }
.ex-opts label.ok { border-color: #16a34a; background: #f0fdf4; } .ex-opts label .ex-in { margin: 2px 0; border: 0; }
.ex-opts input[type=radio] { accent-color: #16a34a; width: 18px; height: 18px; }
.ex-pic { text-align: center; } .ex-pic.big { margin: 10px 0; } .ex-pic.big img { height: 130px !important; width: auto; }
.ex-kpis { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; font-size: 15px; }
.ex-no { background: #fee2e2; color: #b91c1c; }
.ex-prev li { margin: 6px 0; }
.ex-score { color: #16a34a; font-size: 18px; }
.ex-intro h2 { margin: 6px 0; } .ex-rules { text-align: right; display: inline-block; margin: 10px auto; }
.ex-top { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; font-size: 20px; color: var(--teal); }
.ex-clock { background: var(--teal); color: #fff; border-radius: 12px; padding: 4px 12px; font-family: Poppins, sans-serif; direction: ltr; }
.ex-clock.low { background: #dc2626; animation: pulse 1s infinite; }
.ex-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; justify-content: center; }
.ex-dots button, .ex-dots span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; font: inherit; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.ex-dots button.ok { background: #e7f3f2; border-color: var(--teal); } .ex-dots button.cur { background: var(--teal); color: #fff; border-color: var(--teal); }
.ex-dots.res span { width: auto; padding: 0 12px; border-radius: 999px; cursor: default; } .ex-dots.res .ok { background: #dcfce7; border-color: #16a34a; } .ex-dots.res .no { background: #fee2e2; border-color: #dc2626; }
.ex-card { min-height: 260px; }
.ex-qt { font-size: 24px; text-align: center; margin: 14px 0; }
.big-play { font-size: 26px; display: block; margin: 16px auto; padding: 18px 34px; }
.ex-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.ex-c { font: inherit; font-size: 22px; padding: 16px; border-radius: 16px; border: 3px solid #e2e8f0; background: #fff; cursor: pointer; transition: .15s; }
.ex-c:hover { border-color: var(--teal); } .ex-c.on { border-color: var(--teal); background: #e7f3f2; box-shadow: 0 0 0 3px #b6dcd9; }
.ex-line { min-height: 62px; border: 3px dashed #cbd5e1; border-radius: 16px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ex-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ex-w { font: inherit; font-size: 22px; padding: 8px 16px; border-radius: 14px; border: 3px solid var(--teal); background: #fff; cursor: pointer; }
.ex-w.on { background: var(--teal); color: #fff; } .ex-w:disabled { opacity: .25; cursor: default; }
.ex-nav { margin-top: 12px; }
@media (max-width: 700px) { .ex-head { grid-template-columns: 1fr; } .ex-qt { font-size: 20px; } .ex-c, .ex-w { font-size: 19px; } }
.ex-opts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .ex-opts label .ex-in { flex: 1; min-width: 0; width: auto; } .ex-opts > .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- v12: open content (teacher), read to me, weekly charts ---------- */
.cc-intro p { margin: 6px 0; }
.cc-list { display: grid; gap: 10px; }
.cc-unit { margin: 0; border-inline-start: 5px solid #cbd5e1; }
.cc-unit.open { border-inline-start-color: var(--ok); }
.cc-unit.closed { border-inline-start-color: var(--bad); background: #fff7f7; }
.cc-unit .row { flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-unit small.en, .cc-cls { display: block; }
.cc-seg { display: inline-flex; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.cc-seg button { border: 0; background: #fff; padding: 7px 12px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.cc-seg button + button { border-inline-start: 2px solid #e2e8f0; }
.cc-seg button.on { background: var(--teal); color: #fff; font-weight: 700; }
.cc-unit.closed .cc-seg button.on { background: var(--bad); }
.cc-unit.open .cc-seg button.on { background: var(--ok); }
.cc-more { border: 0; background: none; font: inherit; color: var(--teal); cursor: pointer; padding: 6px 0 0; }
.cc-more i { color: var(--bad); font-style: normal; font-weight: 700; }
.cc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.cc-a { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #d1fae5; background: #f0fdf4; border-radius: 12px; padding: 5px 10px; font: inherit; font-size: 15px; cursor: pointer; }
.cc-a.off { border-color: #fecaca; background: #fef2f2; color: #991b1b; text-decoration: line-through; }
.cc-a b { text-decoration: none; }
.node.tshut { opacity: .55; }
.node.tshut .lbl small { display: block; font-size: 12px; color: var(--bad); }

.ra-btn { border: 0; background: #e6f4f4; color: var(--teal); border-radius: 50%; width: 30px; height: 30px; font-size: 15px; line-height: 30px;
  padding: 0; margin-inline-end: 6px; cursor: pointer; vertical-align: middle; flex: none; }
.ra-btn:hover, .ra-btn:focus-visible { background: #cdeaea; }
.ra-btn.on { background: var(--teal); color: #fff; animation: raPulse 1s infinite; }
@keyframes raPulse { 50% { box-shadow: 0 0 0 5px rgba(14, 95, 99, .18); } }
@media print { .ra-btn { display: none; } }

.wk-sum { margin: 4px 0 10px; }
.wk-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 18px 4px 0; border-bottom: 1px solid #e2e8f0; }
.wk-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; outline: none; }
.wk-col i { display: block; width: min(34px, 70%); min-height: 2px; background: #9cc9cb; border-radius: 4px 4px 0 0; transition: background .15s; }
.wk-col.cur i { background: var(--teal); }
.wk-col:hover i, .wk-col:focus-visible i { background: var(--teal2); }
.wk-col small { position: absolute; bottom: -20px; font-size: 12px; color: var(--muted); }
.wk-col em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.wk-chart { margin-bottom: 24px; }
.wk-tip { position: absolute; top: -8px; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; direction: rtl; pointer-events: none; z-index: 2; }
.wk-tbl summary { cursor: pointer; color: var(--teal); font-size: 14px; }
.wk-tbl table { margin-top: 6px; }
.cc-reset { border: 0; background: none; color: var(--teal); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- «لماذا أخطأت؟» + Robo sign-in card ---------- */
.why-btn { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--teal); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 6px 18px rgba(14, 95, 99, .35); cursor: pointer; }
.why-btn .en { color: #cdeaea; font-weight: 400; font-size: 13px; margin-inline-start: 4px; }
.why-btn.pop { animation: whyPop .45s ease-out; }
@keyframes whyPop { 0% { transform: translateX(-50%) scale(.6); opacity: 0; } 70% { transform: translateX(-50%) scale(1.08); } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.why-pair { display: grid; gap: 6px; margin: 8px 0; }
.why-no { background: #fef2f2; border: 2px solid #fecaca; border-radius: 12px; padding: 8px 12px; }
.why-ok { background: #f0fdf4; border: 2px solid #bbf7d0; border-radius: 12px; padding: 8px 12px; }
.why-rule { background: #f8fafc; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.why-rule p { margin: 6px 0 0; }
.why-ex { color: var(--teal); font-weight: 700; }
.why-ai { background: #e6f4f4; border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; white-space: pre-line; }
.why-f { display: flex; gap: 6px; margin-top: 8px; }
.why-f input { flex: 1; min-width: 0; }
.tut-signin .btn { text-decoration: none; }
@media print { .why-btn { display: none; } }

/* ---------- unit summary «ماذا تعلّمت؟» ---------- */
.sum-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-top: 18px; border: 2px dashed #9cc9cb; }
.sum-link > span { font-size: 34px; }
.sum-link small { display: block; color: var(--muted); }
.sum-top { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.sum-top b { display: block; font-size: 24px; color: var(--teal); }
.sum-top small { color: var(--muted); }
.sum-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.sum-w { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 10px 6px; font: inherit; cursor: pointer; }
.sum-w:hover, .sum-w:focus-visible { border-color: var(--teal2); background: #f0fafa; }
.sum-w small { font-size: 12px; text-align: center; }
.sum-s { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; width: 100%; text-align: start; border: 0; border-bottom: 1px solid #eef2f7; background: none; padding: 10px 4px; font: inherit; cursor: pointer; }
.sum-s span { grid-row: span 2; font-size: 22px; align-self: center; }
.sum-s small { grid-column: 2; }
.sum-s:hover { background: #f8fafc; }
.sum-me > div { line-height: 2; font-size: 19px; }
.sum-go { flex-wrap: wrap; gap: 10px; margin: 14px 0; }
