:root {
  --tiffany: #66ffdb; --on-tiffany: #04382e; --tiffany-dark: #2fd9b4;
  --brand: #00806b; --brand-2: #3fe0bd; --ink: #16302b; --muted: #5c7570; --bg: #f1fbf8; --card: #ffffff;
  --line: #dcefe9; --ok: #15a36b; --ok-bg: #e5f8ef; --no: #e0464b; --no-bg: #fff0f0; --warn: #f5a524;
  --lv0: #e6f2ef; --lv1: #ffd9cf; --lv2: #ffe9a8; --lv3: #bfeccf; --lv4: #5fd39a;
  --r: 18px; --shadow: 0 2px 0 rgba(16, 48, 43, .06), 0 8px 24px rgba(16, 48, 43, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Halaman tidak boleh bisa digeser ke samping (animasi yang masuk dari tepi layar, dsb.) */
body { overflow-x: clip; }
body { margin: 0; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: .2rem 0 .4rem; line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; } .r { text-align: right; }
.grow { flex: 1; min-width: 0; }

/* Kerangka */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.5px; display: flex; align-items: center; gap: 2px; }
.logo-m { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tiffany); color: var(--on-tiffany); margin-right: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap.wide { max-width: 1100px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.narrow { max-width: 440px; margin: 20px auto; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 12px 18px; font: inherit; font-weight: 800; background: var(--tiffany); color: var(--on-tiffany); cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 var(--tiffany-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2fd9b4; }
.btn.ghost { background: #dcfff6; color: var(--brand); box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.btn.danger { color: var(--no); background: var(--no-bg); }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.row-btn { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pill { display: inline-block; background: #dcfff6; color: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 800; margin: 2px 2px 2px 0; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 99; font-weight: 700; max-width: calc(100% - 32px); text-align: center; animation: pop .2s; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }

/* Formulir */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.form.inline { display: flex; gap: 8px; margin-bottom: 8px; }
.form.inline input { flex: 1; min-width: 0; }
input, select { font: inherit; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--brand-2); }
.codein { text-align: center; font-size: 1.6rem; font-weight: 900; letter-spacing: 6px; text-transform: uppercase; margin: 10px 0 12px; }
.code { font-family: ui-monospace, monospace; letter-spacing: 2px; background: #e8fbf5; padding: 1px 6px; border-radius: 6px; }

/* Beranda */
.hero { padding: 18px 2px 8px; }
.hero h1 { font-size: 1.9rem; font-weight: 900; }
.hero h1 span { color: var(--brand); }
.resume { display: block; background: #fff; border: 2px dashed var(--brand-2); border-radius: 14px; padding: 12px 14px; text-decoration: none; margin-top: 8px; }
.roles { display: grid; gap: 12px; margin: 16px 0; }
.role { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow); border-left: 8px solid var(--c); }
.role .ri { grid-row: span 2; font-size: 2.4rem; text-align: center; }
.role b { font-size: 1.2rem; } .role small { color: var(--muted); }
.r1 { --c: #ff7a59; } .r2 { --c: #00806b; } .r3 { --c: #00b894; }
.unit-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.unit-mini span { background: color-mix(in srgb, var(--c) 18%, white); border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 700; }
.bigemoji { font-size: 3.4rem; line-height: 1.1; text-align: center; }

/* Siswa */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.kid { display: grid; gap: 4px; justify-items: center; padding: 16px 8px; border: 0; background: #fff; border-radius: var(--r); font: inherit; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); }
.kid span { font-size: 2.8rem; }
.hello { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.av { display: inline-grid; place-items: center; font-size: 2.4rem; width: 60px; height: 60px; background: #fff; border-radius: 50%; box-shadow: var(--shadow); flex: none; }
.av.sm { font-size: 1.2rem; width: 32px; height: 32px; box-shadow: none; background: #e8fbf5; }
.av.lg { font-size: 2.8rem; width: 72px; height: 72px; }
.unit { border-top: 6px solid var(--c); }
.unit > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.unit > summary::-webkit-details-marker { display: none; }
.uicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c) 22%, white); font-size: 1.3rem; margin-right: 8px; flex: none; }
h2 .uicon { width: 32px; height: 32px; font-size: 1.05rem; vertical-align: middle; }
.utitle { flex: 1; display: grid; min-width: 0; } .utitle small { color: var(--muted); }
.ubar { width: 64px; height: 8px; border-radius: 99px; background: var(--lv0); overflow: hidden; flex: none; }
.ubar i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 99px; }
.sklist { display: grid; gap: 6px; margin-top: 12px; }
.sk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f2fdf9; text-decoration: none; color: var(--ink); font-weight: 700; }
.sk:active { background: #dcfff6; }
.sk-code { font-size: .78rem; color: var(--muted); font-weight: 800; min-width: 30px; }
.sk-name { flex: 1; }
.chip { min-width: 38px; text-align: center; padding: 3px 8px; border-radius: 99px; font-size: .82rem; font-weight: 900; }
.lv0 { background: var(--lv0); color: #8b8aa6; } .lv1 { background: var(--lv1); } .lv2 { background: var(--lv2); } .lv3 { background: var(--lv3); } .lv4 { background: var(--lv4); color: #053b22; }
.tugas { border: 2px solid #ffd27a; background: #fffaf0; }
.asg + .asg { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f1d9a0; }

/* Latihan */
.ptop { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--c); color: #1f2140; position: sticky; top: 0; z-index: 10; }
.pback { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .7); text-decoration: none; color: var(--ink); font-size: 1.3rem; font-weight: 900; flex: none; }
.ptitle { display: grid; line-height: 1.2; min-width: 0; } .ptitle small { opacity: .75; font-weight: 700; }
.ptitle b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-bottom: 1px solid var(--line); }
.pstats div { text-align: center; padding: 6px 4px; } .pstats small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.pstats b { font-size: 1.15rem; }
.pstats .ss b { color: var(--brand); font-size: 1.35rem; transition: transform .2s; display: inline-block; }
.pstats b.up { color: var(--ok); transform: scale(1.25); } .pstats b.down { color: var(--no); }
.sbar { height: 6px; background: var(--lv0); } .sbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .4s; }
.practice { padding-top: 14px; }
.qcard { background: #fff; border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.qhead { display: flex; gap: 10px; align-items: flex-start; }
.say { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #dcfff6; font-size: 1.25rem; cursor: pointer; }
.qtext { font-size: 1.2rem; font-weight: 800; margin: 6px 0; }
.qvis { margin: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-x: auto; max-width: 100%; }
.qans { margin-top: 10px; }
.opts { display: grid; gap: 10px; }
.opts.short { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
.opt { padding: 14px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.opt:active { transform: translateY(2px); box-shadow: none; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); box-shadow: 0 3px 0 var(--ok); }
.opt.wrong { border-color: var(--no); background: var(--no-bg); box-shadow: 0 3px 0 var(--no); }
.inrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.unit-l { font-weight: 900; font-size: 1.3rem; }
.indisp { min-width: 140px; padding: 10px 16px; border: 3px solid var(--brand-2); border-radius: 14px; font-size: 2rem; font-weight: 900; text-align: center; letter-spacing: 2px; background: #f4fdfa; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 340px; margin: 0 auto; }
.keypad button { padding: 14px 0; font: inherit; font-size: 1.5rem; font-weight: 900; border: 0; border-radius: 14px; background: #e5faf4; color: var(--ink); box-shadow: 0 3px 0 #dcd7fb; cursor: pointer; touch-action: manipulation; }
.keypad button:active { transform: translateY(2px); box-shadow: none; }
.keypad .kdel { background: #ffeeea; box-shadow: 0 3px 0 #f6d2c8; }
.keypad .ksub { background: var(--tiffany); color: var(--on-tiffany); font-size: 1.1rem; box-shadow: 0 3px 0 var(--tiffany-dark); }
.fb { border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.fb.ok { background: var(--ok-bg); color: var(--ok); font-weight: 900; font-size: 1.4rem; text-align: center; animation: pop .2s; }
.fb.no { background: #fff; border: 2px solid #ffd0d0; }
.fb.no h3 { margin: 0 0 6px; color: var(--no); }
.explain { background: #f0fcf8; border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px; }
.explain p { margin: 4px 0 0; }
.strike { color: var(--no); text-decoration: line-through; }
.mastered h1 { color: var(--brand); }

/* Visual soal */
.objs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 330px; }
.obj { font-size: 2rem; line-height: 1; position: relative; }
.obj.x { opacity: .45; } .obj.x::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 4px; background: var(--no); transform: rotate(-35deg); border-radius: 2px; }
.grp-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.grp { background: #f2fdf9; border-radius: 14px; padding: 10px; min-width: 90px; }
.grp .objs { max-width: 150px; } .grp-l { text-align: center; font-weight: 800; text-transform: capitalize; margin-bottom: 4px; }
.sign { font-size: 2rem; font-weight: 900; color: var(--brand); }
.tf-wrap { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tf { display: grid; grid-template-columns: repeat(5, 44px); grid-template-rows: repeat(2, 44px); border: 3px solid var(--ink); border-radius: 6px; background: #fff; }
.tf-c { border: 1.5px solid #8fa8a2; display: grid; place-items: center; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: #ff5d5d; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.nl { width: 100%; max-width: 420px; min-width: 260px; }
.nl text { font-size: 13px; text-anchor: middle; font-weight: 700; fill: var(--ink); }
.nl .ax, .nl .tk { stroke: var(--ink); stroke-width: 2; }
.nl .jump { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.nl .start { fill: #ff7a59; }
.bond { width: 220px; } .bond line { stroke: var(--ink); stroke-width: 3; }
.bond .bc { fill: #fff; stroke: var(--brand); stroke-width: 4; } .bond .w { fill: #dcfff6; }
.bond .bt { text-anchor: middle; font-size: 26px; font-weight: 900; fill: var(--ink); font-family: inherit; }
.b10 { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rod { display: grid; grid-template-rows: repeat(10, 16px); border: 1px solid #1e7bb8; }
.rod i, .ones i { display: block; width: 16px; height: 16px; background: #5bb8f5; border: 1px solid #1e7bb8; }
.ones { display: grid; grid-template-columns: repeat(2, 16px); gap: 3px; align-content: end; margin-left: 6px; }
.ones i { background: #ffb74d; border-color: #c77a12; }
.clock { width: 190px; }
.clock .face { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.clock text { font-size: 17px; font-weight: 900; text-anchor: middle; fill: var(--ink); font-family: inherit; }
.clock .mk { stroke: #8fa8a2; stroke-width: 1.5; }
.clock .hh { stroke: #e0464b; stroke-width: 8; stroke-linecap: round; }
.clock .mh { stroke: var(--brand); stroke-width: 5; stroke-linecap: round; }
.clock .pin { fill: var(--ink); }
.money { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.coin { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-weight: 900; font-size: 1.05rem; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12), 0 2px 0 rgba(0, 0, 0, .15); }
.c100 { background: #d7dade; width: 54px; height: 54px; } .c200 { background: #c9ced3; width: 58px; height: 58px; } .c500 { background: #e8c45a; } .c1000 { background: radial-gradient(circle, #e8c45a 55%, #c4c9ce 56%); width: 66px; height: 66px; }
.note { display: grid; place-items: center; width: 120px; height: 62px; border-radius: 8px; color: #222; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); border: 2px solid rgba(0, 0, 0, .12); line-height: 1; }
.note b { font-size: 1.3rem; } .note small { font-size: .6rem; letter-spacing: 2px; font-weight: 800; }
.n1000 { background: #c8d9c0; } .n2000 { background: #c7cbd6; } .n5000 { background: #d9b98a; } .n10000 { background: #c9a6d6; } .n20000 { background: #a9d5a2; }
.shape { width: 140px; height: 140px; }
.frac { width: 160px; } .frac path, .frac rect { fill: #fff; stroke: var(--ink); stroke-width: 3; } .frac .sh { fill: #ff9f7a; }
.bars { width: 100%; max-width: 420px; display: grid; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 8px; } .bar-l { width: 96px; font-weight: 800; font-size: .9rem; flex: none; }
.bar { height: 22px; border-radius: 0 12px 12px 0; display: block; border-left: 3px solid var(--ink); }
.ruler { width: 100%; max-width: 420px; min-width: 250px; }
.ruler line { stroke: var(--ink); stroke-width: 1.5; } .ruler text { font-size: 12px; text-anchor: middle; font-weight: 800; fill: var(--ink); }
.ruler .rbody { fill: #ffe9a8; stroke: #d6b13a; } .ruler .robj { fill: #ffb347; } .ruler .rtip { fill: #f3d6a4; } .ruler .cm { font-size: 11px; }
.clips { width: 100%; max-width: 380px; } .cobj { height: 20px; background: #2ecc71; border-radius: 4px 14px 14px 4px; margin-bottom: 6px; }
.crow { display: flex; } .clip { width: 11%; height: 16px; border: 3px solid #7f8aa3; border-radius: 10px; margin-right: 0; }
.clips .clip { width: calc(100% / 9); }
.pg { width: 100%; max-width: 400px; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.pg-t { background: #dcfff6; text-align: center; font-weight: 900; padding: 6px; }
.pg-r { display: flex; border-top: 1px solid var(--line); } .pg-l { width: 90px; padding: 6px 8px; font-weight: 800; border-right: 1px solid var(--line); flex: none; }
.pg-i { padding: 4px 8px; font-size: 1.3rem; letter-spacing: 2px; word-break: break-all; } .pg-k { font-size: .8rem; color: var(--muted); padding: 4px 8px; border-top: 1px solid var(--line); }
.tally { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .tally svg { width: 60px; height: 60px; } .tally line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.bm { width: 100%; max-width: 420px; display: grid; gap: 8px; }
.bm-total { text-align: center; border: 2px solid var(--ink); border-bottom: 0; height: 14px; border-radius: 8px 8px 0 0; position: relative; margin-top: 22px; }
.bm-total span { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-weight: 900; background: #fff; padding: 0 6px; }
.bm-row { display: flex; }
.bm-seg { border: 2px solid var(--ink); margin-left: -2px; padding: 8px 2px; text-align: center; font-weight: 900; background: #b5f3e3; min-width: 34px; display: grid; line-height: 1.1; }
.bm-seg:nth-child(2) { background: #c8f0dc; } .bm-seg.q { background: #fff3c4; } .bm-seg small { font-size: .7rem; font-weight: 700; }
.scale { width: 240px; padding-top: 16px; }
.beam { display: flex; justify-content: space-between; border-bottom: 6px solid var(--ink); border-radius: 3px; transition: transform .3s; }
.beam.tl { transform: rotate(-12deg); } .beam.tr { transform: rotate(12deg); }
.pan { font-size: 2.8rem; padding: 0 10px; }
.stand { width: 0; height: 0; margin: 0 auto; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 50px solid #6b6f8e; }
.seq { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seq span { min-width: 48px; padding: 10px 8px; border-radius: 12px; background: #e5faf4; font-size: 1.4rem; font-weight: 900; text-align: center; }
.seq .q, .hgrid .q { background: #fff3c4; outline: 3px dashed var(--warn); }
.hgrid { display: grid; grid-template-columns: repeat(3, 60px); gap: 4px; } .hgrid span { padding: 12px 0; text-align: center; background: #e5faf4; font-weight: 900; font-size: 1.2rem; border-radius: 8px; }
.bigeq { font-size: 2.4rem; font-weight: 900; letter-spacing: 1px; text-align: center; }
.bigeq .q { display: inline-block; min-width: 48px; background: #fff3c4; border-radius: 10px; outline: 3px dashed var(--warn); }
.stack { display: grid; justify-items: end; font-size: 2.2rem; font-weight: 900; font-family: ui-monospace, monospace; }
.stack .line { border-top: 4px solid var(--ink); width: 100%; text-align: right; color: var(--warn); }
.ord { display: flex; gap: 4px; font-size: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.eqg { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.plate { background: #fff; border: 3px solid #d7d3ef; border-radius: 50%; width: 92px; height: 92px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; font-size: 1.3rem; padding: 8px; }
.kids { font-size: 2rem; text-align: center; letter-spacing: 4px; }

/* Dasbor */
.dhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dhead select { width: auto; }
.codebox { background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); font-size: .9rem; }
.codebox b { font-size: 1.15rem; letter-spacing: 2px; color: var(--brand); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.tabs a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .92rem; box-shadow: var(--shadow); }
.tabs a.on { background: var(--tiffany); color: var(--on-tiffany); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.kpi small { color: var(--muted); font-weight: 700; display: block; } .kpi b { font-size: 1.6rem; font-weight: 900; } .kpi b span { font-size: .95rem; color: var(--muted); }
.grid2 { display: grid; gap: 14px; } .grid2 > .card { margin-bottom: 0; } .grid2 + * { margin-top: 14px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.lrow:last-child { border-bottom: 0; } .lrow small { display: block; color: var(--muted); font-size: .82rem; }
.medal { font-size: 1.4rem; }
.tagrow { padding: 8px 0; border-bottom: 1px solid var(--line); } .tagrow:last-child { border-bottom: 0; } .tagrow p { margin: 4px 0 0; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr[data-href] { cursor: pointer; } .tbl tr[data-href]:hover { background: #f4fdfa; }
.tbl.heat th, .tbl.heat td { text-align: center; } .tbl.heat td:first-child, .tbl.heat th:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.hc { font-weight: 800; font-size: .82rem; min-width: 38px; border: 2px solid #fff !important; border-radius: 6px; }
.accb { padding: 2px 8px; border-radius: 99px; font-weight: 800; } .accb.g { background: var(--lv3); } .accb.y { background: var(--lv2); } .accb.r { background: var(--lv1); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: .8rem; } .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.skd { border-bottom: 1px solid var(--line); padding: 8px 0; } .skd > summary { display: flex; gap: 8px; align-items: center; cursor: pointer; flex-wrap: wrap; } .skd-b { padding: 6px 0 0 8px; }
.asg-t { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pickskills { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; border: 2px solid var(--line); border-radius: 12px; padding: 10px; }
.pickskills fieldset { border: 0; margin: 0; padding: 0; } .pickskills legend { font-weight: 900; margin-bottom: 4px; }
.cb { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; font-weight: 600 !important; padding: 4px 0; }
.cb input { width: 20px; height: 20px; flex: none; }
.printcards { display: none; }

/* Laporan */
.report-head { display: flex; gap: 14px; align-items: center; }
.story { background: linear-gradient(135deg, #dcfff6, #fff); font-size: 1.02rem; } .story p { margin: 0; }
.week { display: flex; gap: 8px; height: 130px; align-items: flex-end; }
.wd { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wd i { display: block; width: 100%; max-width: 36px; background: var(--brand-2); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.wd small { color: var(--muted); font-weight: 700; font-size: .75rem; } .wv { font-size: .75rem; font-weight: 800; }
.good { border-top: 6px solid var(--ok); } .improve { border-top: 6px solid var(--warn); }
.wrow { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; } .wrow:last-child { border-bottom: 0; } .wrow .lrow { border: 0; } .wrow p { margin: 4px 0; }
.tip { background: #fff8e6; border-radius: 10px; padding: 6px 10px; } .ex { color: var(--muted); }
.uprog { display: grid; grid-template-columns: 1fr 80px 36px; gap: 8px; align-items: center; padding: 6px 0; font-size: .92rem; font-weight: 700; } .uprog .ubar { width: 100%; } .uprog small { color: var(--muted); text-align: right; }
.wa { padding: 8px 0; border-bottom: 1px solid var(--line); } .wa p { margin: 0 0 2px; font-weight: 700; } .wa:last-child { border-bottom: 0; }

@media (min-width: 640px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .role { grid-template-columns: 1fr; text-align: center; justify-items: center; border-left: 0; border-top: 8px solid var(--c); }
  .role .ri { grid-row: auto; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .opts:not(.short) { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.8rem; }
}
@media (max-width: 380px) {
  .tf { grid-template-columns: repeat(5, 36px); grid-template-rows: repeat(2, 36px); } .dot { width: 24px; height: 24px; }
  .obj { font-size: 1.7rem; } .keypad button { padding: 12px 0; }
}
@media print {
  body { background: #fff; } .top, .tabs, .dhead, .wrap > :not(.printcards) { display: none !important; }
  .printcards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard { border: 2px dashed #999; border-radius: 12px; padding: 12px; text-align: center; break-inside: avoid; display: grid; gap: 4px; }
  .pcard .av { box-shadow: none; margin: 0 auto; }
}

/* Memuat & offline */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60vh; font-weight: 800; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lv0); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline { background: #fff8e6; border: 1px solid #f5d88a; border-radius: 12px; padding: 8px 12px; font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.codein.sm { font-size: 1.2rem; letter-spacing: 3px; margin: 0; }
.kpi b.sm { font-size: 1.05rem; }
.kidcard .kpis { margin: 12px 0 4px; }

/* Pilihan kelas */
.gtabs { display: flex; gap: 6px; background: #fff; padding: 4px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.gtabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 800; padding: 10px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.gtabs button.on { background: var(--tiffany); color: var(--on-tiffany); }

/* Kelas 2: visual tambahan */
.flat { display: grid; grid-template-columns: repeat(10, 6px); grid-template-rows: repeat(10, 6px); border: 1px solid #1e7bb8; margin-right: 4px; }
.flat i { display: block; width: 6px; height: 6px; background: #4aa3e8; border: .5px solid #1e7bb8; }
.arr { display: grid; gap: 4px; font-size: 1.5rem; }
.nl .qm { font-size: 18px; font-weight: 900; fill: var(--warn); text-anchor: middle; }
.nl .arrow { stroke: var(--warn); stroke-width: 3; fill: none; stroke-linecap: round; }
.bgraph { width: 100%; max-width: 360px; }
.bgraph .t { font-weight: 900; font-size: 13px; text-anchor: middle; fill: var(--ink); }
.bgraph .g { stroke: var(--line); }
.bgraph .yl { font-size: 10px; text-anchor: end; fill: var(--muted); font-weight: 700; }
.bgraph .xl { font-size: 11px; text-anchor: middle; font-weight: 800; fill: var(--ink); }
.bgraph .b0 { fill: #ff7a59; } .bgraph .b1 { fill: #4d96ff; } .bgraph .b2 { fill: #2ecc71; } .bgraph .b3 { fill: #f9c74f; }
.io { border-collapse: collapse; font-weight: 900; font-size: 1.15rem; }
.io th, .io td { border: 2px solid var(--line); padding: 8px 12px; text-align: center; }
.io th { background: #dcfff6; font-size: .85rem; }
.io td.q { background: #fff3c4; color: var(--warn); }
.rgrid-wrap { display: grid; justify-items: center; gap: 4px; }
.rgrid-row { display: flex; align-items: center; gap: 6px; }
.rgrid { display: grid; border: 3px solid var(--ink); }
.rgrid i { display: block; width: 24px; height: 24px; border: 1px solid #8fa8a2; background: #b5f3e3; }
.rl-top, .rl-side { font-weight: 800; font-size: .85rem; color: var(--muted); }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 1.6rem; }
.pairs span { background: #f2fdf9; border-radius: 10px; padding: 2px 6px; }
.scale-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bigemoji.sm { font-size: 2.4rem; }
.eq { font-size: 2rem; font-weight: 900; }
.wts { display: flex; flex-wrap: wrap; gap: 6px; }
.wt { background: #5c7570; color: #fff; font-weight: 900; padding: 8px 10px; border-radius: 8px 8px 12px 12px; font-size: .9rem; }
.n50000 { background: #9cc7e8; } .n100000 { background: #f2a3a3; }

/* Referensi guru */
.ref h3 { font-size: 1rem; margin: 10px 0 4px; }
.ref p, .ref li { font-size: .92rem; }
.refsrc + .refsrc { border-top: 1px dashed var(--line); margin-top: 10px; }
.refgrid { display: grid; gap: 10px; }
.refgrid > div { background: #f2fdf9; border-radius: 12px; padding: 8px 12px; }
.refgrid h3 { margin-top: 2px; } .refgrid p { margin: 0; }
.reftbl td { white-space: normal; min-width: 120px; vertical-align: top; font-size: .85rem; }
.reftbl td small { display: block; color: var(--muted); }
.pill.warn { background: #fff1d6; color: #9a6200; white-space: normal; }
@media (min-width: 640px) { .refgrid { grid-template-columns: 1fr 1fr; } }
.b10.stackrows { flex-direction: column; align-items: center; gap: 8px; }

/* Kelas 3–6 */
.gtabs { overflow-x: auto; scrollbar-width: none; }
.gtabs button { flex: 1 0 auto; min-width: 74px; white-space: nowrap; }
.grade-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.grade-sum a { display: grid; background: #e8fbf5; border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.grade-sum small { color: var(--muted); }
.keypad.extra { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); margin-bottom: 8px; }
.keypad.extra button { background: #fff3c4; box-shadow: 0 3px 0 #f1d98a; }
.dgrid { display: grid; grid-template-columns: repeat(10, 18px); border: 2px solid var(--ink); }
.dgrid i { width: 18px; height: 18px; border: 1px solid #b9bbd6; background: #fff; }
.dgrid i.on { background: #4d96ff; }
.ang { width: 100%; max-width: 240px; }
.ang line, .ang path { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; }
.ang .arc { stroke: var(--warn); stroke-width: 2.5; }
.ang .thin { stroke-width: 1.5; stroke: #8fa8a2; }
.ang circle { fill: var(--ink); } .ang .cring { fill: none; stroke: var(--line); stroke-width: 2; }
.ang text { font-size: 14px; font-weight: 800; fill: var(--ink); text-anchor: middle; } .ang .qt { fill: var(--warn); font-size: 18px; }
.ang .cl { font-size: 12px; }
.coord { width: 100%; max-width: 300px; }
.coord .gl { stroke: #e3e1f2; stroke-width: 1; } .coord .axis { stroke: var(--ink); stroke-width: 2; }
.coord .tl { font-size: 10px; text-anchor: middle; fill: var(--muted); font-weight: 700; } .coord .tl.r { text-anchor: end; }
.coord .pt { fill: #e0464b; } .coord .pl { font-size: 13px; font-weight: 900; fill: #e0464b; }
.shp { width: 100%; max-width: 280px; }
.shp .fillp { fill: #b5f3e3; stroke: var(--ink); stroke-width: 2.5; }
.shp .f1 { fill: #c8f0dc; stroke: var(--ink); stroke-width: 2; } .shp .f2 { fill: #e9fbf1; stroke: var(--ink); stroke-width: 2; } .shp .f3 { fill: #9fdcbf; stroke: var(--ink); stroke-width: 2; }
.shp .cg { stroke: var(--ink); stroke-width: .8; opacity: .55; }
.shp .dash { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 5 4; }
.shp .dl { font-size: 12px; font-weight: 800; fill: var(--ink); text-anchor: middle; } .shp .dl.r { text-anchor: end; } .shp .dl.l { text-anchor: start; }
.bgraph .ln { fill: none; stroke: var(--brand); stroke-width: 3; } .bgraph .lp { fill: var(--brand); }
.piewrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.pie { width: 150px; height: 150px; } .pielg { display: grid; gap: 4px; font-size: .9rem; font-weight: 700; }
.pielg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bag { font-size: 1.5rem; letter-spacing: 2px; background: #f2fdf9; border: 3px dashed #c9c4ee; border-radius: 0 0 40px 40px; padding: 10px 14px; max-width: 280px; text-align: center; word-break: break-all; }
.fstack { display: grid; gap: 6px; justify-items: center; } .fstack .frac { width: 200px; height: 90px; }

/* Analitik guru */
.subtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.subtabs a { white-space: nowrap; padding: 8px 12px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.subtabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.rangebar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.rangebar button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; font-size: .85rem; color: var(--ink); cursor: pointer; }
.rangebar button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rangecustom { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.rangecustom label { display: grid; gap: 2px; font-size: .8rem; font-weight: 800; color: var(--muted); flex: 1; min-width: 140px; }
.ubars { display: flex; align-items: flex-end; gap: 2px; height: 140px; }
.ub { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.ub i { display: block; width: 100%; max-width: 28px; background: var(--brand-2); border-radius: 4px 4px 1px 1px; min-height: 2px; }
.ubv { font-size: .68rem; font-weight: 800; color: var(--muted); }
.ublab { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
details.trouble > summary, details.prog > summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
details.trouble > summary::-webkit-details-marker, details.prog > summary::-webkit-details-marker { display: none; }
details.trouble summary small, details.prog summary small { display: block; color: var(--muted); font-weight: 600; }
details[open].trouble > summary, details[open].prog > summary { margin-bottom: 10px; }
.kidchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kchip { background: #fff1d6; border-radius: 999px; padding: 4px 10px; text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 700; }
.row-btn.left { justify-content: flex-start; }
.unitchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.unitchips button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; color: var(--ink); }
.unitchips button.on { border-color: var(--brand); background: #dcfff6; color: var(--brand); }
.skl { columns: 2; column-gap: 18px; padding-left: 18px; margin: 12px 0 6px; } .skl li { break-inside: avoid; margin-bottom: 2px; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
.tbl td.wrap { white-space: normal; min-width: 160px; }
.tbl.log tr.bad td { background: #fff8f8; }
.tbl td.up { color: var(--ok); font-weight: 900; } .tbl td.down { color: var(--no); font-weight: 900; }
.sc { display: inline-block; min-width: 30px; text-align: center; border-radius: 99px; padding: 1px 6px; font-weight: 900; font-size: .82rem; }
.sc.lv-0 { background: var(--lv0); } .sc.lv-1 { background: var(--lv1); } .sc.lv-2 { background: var(--lv2); } .sc.lv-3 { background: var(--lv3); } .sc.lv-4 { background: var(--lv4); }
@media (min-width: 640px) { .filters { grid-template-columns: 1fr 1.6fr 1fr; } .skl { columns: 3; } }

/* Pelajaran */
.lessonlink { display: inline-block; margin: 10px 0 2px; font-weight: 800; text-decoration: none; background: #dcfff6; border-radius: 10px; padding: 6px 12px; font-size: .9rem; }
.lhead { display: flex; gap: 12px; align-items: flex-start; border-top: 6px solid var(--c); }
.lhead h1 { margin: 2px 0 6px; } .lhead p { margin: 0; }
.ltoc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.ltoc button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.lph { display: flex; align-items: center; gap: 10px; } .lph h2 { flex: 1; margin: 0; }
.lnum { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #1f2140; font-weight: 900; flex: none; }
.say.sm { width: 36px; height: 36px; font-size: 1rem; }
.lsteps { padding-left: 22px; margin: 12px 0; } .lsteps li { margin-bottom: 6px; line-height: 1.5; }
.sgnote { background: #fff4f4; border-left: 4px solid #e0464b; border-radius: 8px; padding: 8px 12px; font-size: .92rem; margin-bottom: 12px; }
.lex { background: #f2fdf9; border-radius: 14px; padding: 12px 14px; }
.lex h3 { margin: 0 0 4px; color: var(--brand); }
.lex .qtext { font-size: 1.05rem; }
.lopts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.lopts span { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; font-weight: 800; }
.lsol { margin-top: 8px; } .lsol summary { cursor: pointer; font-weight: 800; color: var(--brand); padding: 6px 0; }
.lsol p { margin: 6px 0; } .lans b { color: var(--ok); }
.ptop .ptitle { flex: 1; }
.plesson { text-decoration: none; }
.sgtag { display: inline-block; background: #e0464b; color: #fff; font-weight: 900; font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; margin-right: 6px; vertical-align: 1px; }

/* Logo dan avatar */
.logo-i { width: 30px; height: 30px; border-radius: 9px; margin-right: 6px; display: block; }
.avsvg { display: inline-block; width: 1.2em; height: 1.2em; border-radius: 50%; overflow: hidden; vertical-align: -.25em; line-height: 0; }
.avsvg svg { width: 100%; height: 100%; display: block; }
.av .avsvg { width: 100%; height: 100%; }
.av.sm { overflow: hidden; } .av.sm .avsvg { width: 100%; height: 100%; }
.avedit { position: relative; text-decoration: none; color: inherit; }
.avedit i { position: absolute; right: -4px; bottom: -4px; font-size: .75rem; font-style: normal; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; box-shadow: var(--shadow); }
.dhead .av { width: 52px; height: 52px; font-size: 2rem; }
.avnow { margin: 0 auto 8px; }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.avopt { aspect-ratio: 1; border: 3px solid transparent; background: #e8fbf5; border-radius: 50%; font-size: 2rem; cursor: pointer; display: grid; place-items: center; padding: 4px; line-height: 1; }
.avopt .avsvg { width: 100%; height: 100%; vertical-align: 0; }
.avopt.on { border-color: var(--brand); background: #fff; }
.avopt:active { transform: scale(.94); }
.avpick { text-decoration: none; }
.psound { font-size: 1.1rem; border: 0; cursor: pointer; }

/* Kepala dasbor guru yang ringkas */
.dhead { display: block; margin-bottom: 10px; }
.dh-row { display: flex; gap: 12px; align-items: center; }
.dh-text { flex: 1; min-width: 0; }
.dh-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.dh-who .pill { margin: 0; font-size: .72rem; padding: 1px 8px; }
.dh-text h1 { margin: 2px 0; font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.dh-meta { font-size: .85rem; color: var(--muted); }
.dh-meta .code { color: var(--brand); font-size: .95rem; }
.dhead .av { width: 48px; height: 48px; font-size: 1.8rem; flex: none; }
.dh-select { margin-top: 10px; width: 100%; padding: 9px 12px; }
.role .ri .avsvg { width: 1.3em; height: 1.3em; vertical-align: middle; }
.dhead .dh-select { width: 100%; }

/* Notifikasi */
.topr { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; font-size: 1.3rem; text-decoration: none; padding: 4px; line-height: 1; }
.bell b { position: absolute; top: -4px; right: -8px; background: #e0464b; color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 900; box-shadow: 0 0 0 2px #fff; }
.notif { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 8px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.notif small { display: block; color: var(--muted); margin-top: 2px; }
.notif.new, .notif-card.new { border-left: 5px solid var(--brand); }
.notif-card p { margin: 8px 0; }
.dot-new { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.okc { color: var(--ok); font-weight: 800; }
.pill.okp { background: var(--ok-bg); color: var(--ok); }
.asg-done { margin: 6px 0 0; }

/* Panduan */
.gtabs a { flex: 1 0 auto; text-align: center; text-decoration: none; font-weight: 800; padding: 10px; border-radius: 10px; color: var(--muted); white-space: nowrap; }
.gtabs a.on { background: var(--tiffany); color: var(--on-tiffany); }
.mhead h1 { margin-top: 0; } .mhead p { margin: 6px 0; }
.msec h2 { display: flex; align-items: center; gap: 8px; }
.micon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #dcfff6; font-size: 1.1rem; flex: none; }
.mtip { background: #fff8e6; border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; } .faq:last-child { border-bottom: 0; }
.faq summary { font-weight: 800; cursor: pointer; } .faq p { margin: 6px 0 0; }
.mlink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mlink small { display: block; color: var(--muted); }
.help { font-size: 1.15rem; text-decoration: none; padding: 4px; line-height: 1; }
@media print {
  body.pm .top, body.pm .noprint { display: none !important; }
  body.pm .wrap > .mprint { display: block !important; }
  body.pm .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* Tugas khusus siswa */
.target { border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0; }
.target legend { font-weight: 900; padding: 0 4px; }
.kidpick { display: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 10px; margin: 6px 0 2px 28px; }
.target:has(input[value="some"]:checked) .kidpick { display: grid; }
.kidpick .avsvg, .asg-for .avsvg { width: 1.3em; height: 1.3em; }
.asg-for { margin: 4px 0; font-weight: 700; }
.pill.special { background: #fff1d6; color: #9a6200; }
h3.sub { font-size: .95rem; margin: 12px 0 2px; color: var(--muted); }
.asg-t .pill, .asg .pill, .notif-card .pill, .lrow .pill { white-space: normal; }
.pill.special { white-space: normal; }

/* ---------- Dasbor siswa (gaya IXL): mau belajar apa, kemajuan minggu ini, papan hadiah ---------- */
.dwork h2, .howdo h2 { margin-top: 0; }
.dtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 12px; }
.dtabs button { border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: .84rem; padding: 7px 6px; border-radius: 12px; color: var(--ink); cursor: pointer; line-height: 1.2; min-width: 0; }
.dtabs button.on { background: var(--tiffany); border-color: var(--tiffany-dark); color: var(--on-tiffany); }
.dtabs button b { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .75rem; line-height: 20px; }
.dempty { text-align: center; padding: 14px 6px; }
.sk-name small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.wkstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.wkstats div { background: var(--bg, #eefbf7); border-radius: 12px; padding: 10px 6px; text-align: center; }
.wkstats b { display: block; white-space: nowrap; font-size: 1.2rem; font-weight: 900; color: var(--brand); }
.wkstats small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.prizecard { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.prizecard small { display: block; color: var(--muted); font-weight: 700; }
.pz-ico { font-size: 2.6rem; } .pz-go { font-size: 1.3rem; font-weight: 900; color: var(--brand); }
h2.allsk { margin: 18px 0 8px; }
.pzwrap { display: grid; gap: 14px; margin-bottom: 14px; }
.pzboard { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; background: #4d7c3a; padding: 8px; border-radius: 16px; }
.pz { aspect-ratio: 1; border: 0; border-radius: 8px; background: #dcefc8; color: #9cc483; font: inherit; font-weight: 900; font-size: 1.4rem; cursor: pointer; padding: 0; }
.pz.open { background: linear-gradient(135deg, #fff7c2, #ffd84d); color: inherit; font-size: 1.6rem; box-shadow: inset 0 0 0 2px #e5b400; }
.pz.sel { outline: 3px solid #fff; outline-offset: -3px; transform: scale(1.06); }
.pzside h2 { margin-top: 0; }
.pzinfo { background: #fffbe6; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; min-height: 44px; }
.pzbig { font-size: 1.8rem; vertical-align: middle; }
@media (min-width: 760px) { .pzwrap { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* ---------- Dasbor koordinator ---------- */
.tbl tr[data-act="openclass"] { cursor: pointer; } .tbl tr[data-act="openclass"]:hover { background: #f4fdfa; }
.accb.nowrap { white-space: nowrap; }
.cwarn { border-left: 6px solid var(--warn); } .cwarn.r { border-left-color: var(--no); }
.cwarn .lrow { border: 0; padding-top: 0; } .cwarn p { margin: 4px 0 0; }
.hardrow { border-bottom: 1px solid var(--line); padding: 4px 0; } .hardrow .lrow { border: 0; padding-bottom: 0; } .hardrow p { margin: 2px 0 6px; }
.infonote { background: #eef6ff; border-radius: 12px; padding: 10px 12px; }

/* ---------- Ulasan tugas ---------- */
.fbform { margin-top: 10px; padding: 10px 12px; background: #fffbe6; border-radius: 12px; display: grid; gap: 6px; }
.fbform p { margin: 0; }
.fbform textarea { width: 100%; font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; resize: vertical; box-sizing: border-box; }
.fbform .btn { justify-self: start; }
.starpick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.starpick label { position: relative; }
.starpick input { position: absolute; inset: 0; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.starpick span { font-size: 2rem; line-height: 1; color: #cfe3de; cursor: pointer; padding: 2px; }
.starpick label:hover span, .starpick label:hover ~ label span,
.starpick label:has(input:checked) span, .starpick label:has(input:checked) ~ label span { color: #f5b301; }
.starpick label:has(input:focus-visible) span { outline: 2px solid var(--brand); border-radius: 6px; }
.stars { color: #f5b301; letter-spacing: 1px; white-space: nowrap; } .stars i { color: #cfe3de; font-style: normal; }
.fbdone { margin-top: 8px; padding: 8px 10px; background: #fffbe6; border-radius: 10px; }
.fbbig { display: grid; justify-items: start; gap: 2px; margin-bottom: 10px; } .fbbig b { font-size: 2.2rem; font-weight: 900; line-height: 1; } .fbbig .stars { font-size: 1.3rem; } .fbbig small { color: var(--muted); font-weight: 700; }
.fbbar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; font-weight: 800; margin: 4px 0; }
.fbbar i { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; } .fbbar i b { display: block; height: 100%; background: #f5b301; border-radius: 99px; }
.fbitem { border-bottom: 1px solid var(--line); padding: 4px 0 8px; } .fbitem:last-child { border-bottom: 0; } .fbitem .lrow { border: 0; } .fbitem p { margin: 0 0 0 44px; }
.nisnform { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .nisnform label { flex: 1 1 220px; }

/* ---------- Permainan ---------- */
.glist { display: grid; gap: 10px; }
.gitem { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin: 0; }
.gitem small { display: block; color: var(--muted); font-weight: 700; font-size: .82rem; } .gitem .gtype { color: var(--brand); margin-top: 2px; }
.gicon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.7rem; }
.g-kilat { background: #fff3c4; } .g-balon { background: #ffe0ea; } .g-pasangan { background: #dcfff6; }
.gbest { text-align: right; flex: none; max-width: 92px; } .gbest small { font-size: .72rem; }
.gstars { white-space: nowrap; } .gstars i { font-style: normal; filter: grayscale(1); opacity: .3; }
.ghead { display: flex; align-items: center; gap: 12px; } .ghead h1 { margin: 2px 0 0; font-size: 1.3rem; }
.gintro p { margin: 0 0 10px; } .gend h2 { margin: 6px 0; } .gbig { font-size: 2.6rem; line-height: 1; }
.ghud { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-radius: 14px; box-shadow: var(--shadow); text-align: center; padding: 6px; margin-bottom: 8px; }
.ghud small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; } .ghud b { font-size: 1.35rem; font-weight: 900; display: inline-block; transition: transform .15s; }
.ghud b.up { color: var(--ok); transform: scale(1.2); } .ghud b.down { color: var(--no); }
.gtime { height: 8px; background: var(--lv0); border-radius: 99px; overflow: hidden; margin-bottom: 10px; } .gtime i { display: block; height: 100%; width: 100%; background: var(--tiffany-dark); transition: width .2s linear; }
.gq { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 12px; text-align: center; font-size: 2.1rem; font-weight: 900; margin-bottom: 12px; }
.gopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gopt { padding: 18px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; font-size: 1.5rem; font-weight: 900; color: var(--ink); box-shadow: 0 3px 0 var(--line); cursor: pointer; touch-action: manipulation; }
.gopt.right { background: var(--ok-bg); border-color: var(--ok); } .gopt.wrong { background: var(--no-bg); border-color: var(--no); }
.grule { background: var(--tiffany); color: var(--on-tiffany); border-radius: 14px; padding: 10px 12px; text-align: center; font-weight: 800; margin-bottom: 8px; }
.grule.flash { animation: gflash .6s; } @keyframes gflash { 0% { transform: scale(.9); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.gfield { position: relative; height: min(58vh, 460px); background: linear-gradient(#eaf9ff, #f6fffc); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); touch-action: manipulation; }
.gballoon { position: absolute; bottom: -110px; width: 88px; height: 100px; border: 0; border-radius: 50% 50% 46% 46%; color: #16302b; font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer; padding: 0 4px; animation: grise linear forwards; box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .08); }
.gballoon::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 16px; background: #9bb; }
.gballoon span { display: block; background: rgba(255, 255, 255, .85); border-radius: 10px; padding: 3px 2px; line-height: 1.15; }
@keyframes grise { from { transform: translateY(0); } to { transform: translateY(calc(-1 * min(58vh, 460px) - 130px)); } }
.gballoon.pop { animation: gpop .25s forwards !important; } @keyframes gpop { to { transform: scale(1.6); opacity: 0; } }
.gballoon.shake { outline: 3px solid var(--no); }
.gmem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard { position: relative; aspect-ratio: 1 / .85; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 1.2rem; cursor: pointer; background: var(--tiffany); color: var(--on-tiffany); box-shadow: 0 3px 0 var(--tiffany-dark); padding: 4px; touch-action: manipulation; }
.gcard .face { display: none; } .gcard .back { font-size: 1.8rem; }
.gcard.up { background: #fff; box-shadow: inset 0 0 0 2px var(--line); } .gcard.up .face { display: block; } .gcard.up .back { display: none; }
.gcard.up.a { background: #fffbe6; } .gcard.done { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); }
.gdots { font-size: .85rem; letter-spacing: 1px; line-height: 1.3; color: #e0464b; }
.gfr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.1; } .gfr b:first-child { border-bottom: 2px solid currentColor; padding: 0 4px; }
@media (min-width: 760px) { .gmem { grid-template-columns: repeat(4, 1fr); } .gq { font-size: 2.6rem; } }

/* ---------- Permainan balok jatuh ---------- */
.g-susun { background: #ffe9d6; } .g-kembar { background: #e3ecff; }
.gtip { margin: 0 0 6px; }
.gnext { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 10px; font-size: 1.05rem !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.gtower { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: #16302b; padding: 8px; border-radius: 18px; max-width: 420px; margin: 0 auto; touch-action: manipulation; }
.gcol { display: flex; flex-direction: column-reverse; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.gcol:hover, .gcol:active { background: rgba(102, 255, 219, .18); }
.gcol.full { animation: gshake .3s; } @keyframes gshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.gslot, .gblk { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-style: normal; }
.gslot { background: rgba(255, 255, 255, .05); }
.gblk { color: #16302b; font-weight: 900; font-size: clamp(.8rem, 3.6vw, 1.15rem); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14); padding: 0 2px; overflow: hidden; }
.gblk.new { animation: gdrop .25s ease-out; } @keyframes gdrop { from { transform: translateY(-120%); opacity: .4; } }
.gblk.merge { animation: gmerge .35s; } @keyframes gmerge { 50% { transform: scale(1.18); } }

/* ---------- Animasi bab (seperti GIF) ---------- */
.anim-card h2 { margin-top: 0; }
.an-stage { background: linear-gradient(#f4fdfa, #fff); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.an-svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; font-family: inherit; }
.an-say { min-height: 3.2em; margin: 10px 2px 6px; font-weight: 700; line-height: 1.45; }
.an-ctrl { display: flex; align-items: center; gap: 10px; }
.an-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tiffany); color: var(--on-tiffany); font-size: 1.05rem; font-weight: 900; cursor: pointer; flex: none; }
.an-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.an-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.an-dots button.on { background: var(--brand); width: 26px; border-radius: 6px; }
.anim-inline:not(:empty) { margin-top: 10px; }
.an-svg * { transform-box: fill-box; transform-origin: center; }
.an-svg .a-pop, .an-svg .a-fade, .an-svg .a-up, .an-svg .a-draw, .an-svg .a-growx, .an-svg .a-growy, .an-svg .a-rot, .an-svg .a-move { animation-duration: .5s; animation-fill-mode: both; animation-timing-function: ease-out; }
.an-svg .a-pop { animation-name: an-pop; } @keyframes an-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }
.an-svg .a-fade { animation-name: an-fade; } @keyframes an-fade { from { opacity: 0; } }
.an-svg .a-up { animation-name: an-up; } @keyframes an-up { from { opacity: 0; transform: translateY(10px); } }
.an-svg .a-draw { stroke-dasharray: 1; animation-name: an-draw; animation-duration: .8s; } @keyframes an-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.an-svg .a-growx { transform-origin: left center; animation-name: an-gx; animation-duration: .7s; } @keyframes an-gx { from { transform: scaleX(0); } }
.an-svg .a-growy { transform-origin: center bottom; animation-name: an-gy; animation-duration: .7s; } @keyframes an-gy { from { transform: scaleY(0); } }
.an-svg .a-rot { transform-box: view-box; animation-name: an-rot; animation-duration: 1.4s; animation-timing-function: ease-in-out; } @keyframes an-rot { from { transform: rotate(0deg); } to { transform: rotate(var(--r)); } }
.an-svg .a-move { animation-name: an-move; animation-duration: .7s; } @keyframes an-move { from { transform: translate(var(--dx), var(--dy)); } }
.an-svg.paused * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .an-svg * { animation-duration: .01s !important; } }

/* ---------- Cara kurikulum disusun ---------- */
.cdesign p, .cdesign li { font-size: .92rem; line-height: 1.55; }
.csteps { padding-left: 20px; } .csteps li { margin-bottom: 8px; }
.cdesign .refgrid { margin-bottom: 8px; }
.cdesign-wrap summary { cursor: pointer; padding: 2px 0; }
.cdesign-wrap[open] summary { margin-bottom: 8px; }
@media (min-width: 760px) { .cdesign .refgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Versi Beta dan mode coba ---------- */
.alpha { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #ffe9d6; color: #9a4a00; font-size: .62rem; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; vertical-align: middle; }
.demobar { display: flex; align-items: center; gap: 8px; background: #fff3c4; border: 1px solid #f1d98a; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: .86rem; }
.trycard h2 { margin-top: 0; } .trybtns { display: grid; gap: 8px; } .trynote { margin: 10px 0 0; }
@media (min-width: 760px) { .trybtns { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Asesmen awal ---------- */
.diag-intro h2 { margin: 16px 0 8px; }
.agepick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.agepick .btn { flex-direction: column; gap: 0; padding: 8px 4px; } .agepick b { font-size: 1.5rem; line-height: 1.1; } .agepick small { font-size: .72rem; font-weight: 700; }
.diag-top { background: var(--tiffany); }
.diag-level { display: inline-block; margin: 6px 0 4px; padding: 8px 22px; border-radius: 16px; background: var(--tiffany); color: var(--on-tiffany); font-size: 2rem; font-weight: 900; }
.diag-chips .pill { white-space: normal; }
.diag-sum { border-left: 6px solid var(--tiffany-dark); }
.warnline { color: #9a4a00; background: #fff3c4; border-radius: 10px; padding: 6px 10px; }
.diag-gain { margin: 10px 0 0; font-weight: 800; }

/* ---------- Grafik koordinator ---------- */
.vz h2 { margin-top: 0; }
.vzsvg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; margin: 6px 0; }
.vzlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0; font-size: .78rem; font-weight: 700; color: #52514e; }
.vzlegend span { display: inline-flex; align-items: center; gap: 6px; }
.vzlegend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.vzlegend i.ring { border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--c); }
.vzlegend i.dot { border-radius: 50%; }
.vzlegend i.tick { width: 3px; height: 14px; border-radius: 2px; }
.vzpills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.vzpills button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .8rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.vzpills button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.vzmark { cursor: pointer; transition: opacity .12s; } .vzmark:hover, .vzmark:focus { opacity: .8; outline: none; } .vzhit { cursor: pointer; } .vzhit:focus { outline: none; }
.vzhm { margin-top: 8px; } .vzhm + .vzhm { border-top: 1px dashed var(--line); padding-top: 6px; }
.vztable { margin-top: 6px; } .vztable summary { cursor: pointer; font-size: .82rem; font-weight: 800; color: var(--brand); }
.vztip { position: fixed; z-index: 50; display: none; pointer-events: none; background: #16302b; color: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-width: 240px; }
.vztip b { display: block; font-size: .9rem; } .vztip small { display: block; opacity: .8; font-size: .74rem; }

/* ---------- Menara Kembar (balok jatuh terus) ---------- */
.gtower.gk .gcol { gap: 4px; }
.gslot.glimit { background: rgba(224, 70, 75, .18); box-shadow: inset 0 -2px 0 #e0464b; }
.gslot.gghost { box-shadow: inset 0 0 0 2px rgba(102, 255, 219, .7); }
.gblk.fall { box-shadow: 0 0 0 2px #fff, inset 0 -4px 0 rgba(0, 0, 0, .14); }
.gtower.gover { animation: gshake .4s; filter: grayscale(.4); }
.gctrl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; margin: 10px auto 0; }
.gctrl button { padding: 14px 0; border: 0; border-radius: 14px; background: var(--tiffany); color: var(--on-tiffany); font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--tiffany-dark); touch-action: manipulation; }
.gctrl button:active { transform: translateY(2px); box-shadow: none; }

/* ---------- Statistik mode coba ---------- */
.fbar { display: grid; grid-template-columns: minmax(120px, 1.2fr) 1fr auto; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; margin: 6px 0; }
.fbar i { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; } .fbar i b { display: block; height: 100%; background: #2a78d6; border-radius: 99px; }
.fbar small { color: var(--muted); white-space: nowrap; }
.realcard { border: 2px solid var(--tiffany-dark); background: #f4fffc; } .realcard h2 { margin-top: 0; } .realcard ol { padding-left: 20px; } .realcard li { margin-bottom: 6px; }
.trylink { background: #f2fdf9; border: 1.5px solid var(--tiffany-dark); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.trykids { display: grid; gap: 8px; margin-bottom: 10px; } .trykids p { margin: 0; }
fieldset.trylink { display: grid; gap: 6px; margin: 0; } fieldset.trylink legend { font-weight: 800; font-size: .88rem; padding: 0 4px; }

/* ---------- Pengajuan akun dan super admin ---------- */
.schoolpick { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; margin: 0 0 10px; }
.schoolpick select { flex: 1; max-width: 360px; }
.reqcard.menunggu { border-left: 6px solid var(--warn); } .reqcard.disetujui { border-left: 6px solid var(--ok); } .reqcard.ditolak { border-left: 6px solid var(--no); }
.reqcard .lrow { border: 0; padding-top: 0; } .reqcard p { margin: 6px 0; }
.reqrow { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; } .reqrow:last-child { border-bottom: 0; } .reqrow small { display: block; }
b.code, .code { letter-spacing: 1px; color: var(--brand); }
td.nowrap { white-space: nowrap; }
.link.danger { color: var(--no); }

/* ---------- Kelompok belajar ---------- */
.grp .lrow { border: 0; padding-top: 0; }
.gkids { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.kidchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f2fdf9; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .85rem; }
.kidchip .av, .kidchip img, .kidchip svg { width: 22px; height: 22px; font-size: 1rem; }
.grp form .cb { font-size: .88rem; } .grow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .grow2 { grid-template-columns: 1fr; } }

/* ---------- Dasbor guru yang ringkas ---------- */
.dhead { margin-bottom: 6px; }
.dhead .av { width: 40px; height: 40px; font-size: 1.5rem; }
.dh-text h1 { font-size: 1.25rem; margin: 1px 0; }
.dh-title { display: block; width: 100%; margin: 1px 0; padding: 2px 26px 2px 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316302b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 4px center; appearance: none; -webkit-appearance: none; font: inherit; font-size: 1.25rem; font-weight: 900; color: var(--ink); cursor: pointer; }
.dh-code { flex: none; display: grid; justify-items: center; border: 0; border-radius: 12px; background: #f2fdf9; box-shadow: inset 0 0 0 1.5px var(--line); padding: 4px 10px; font: inherit; cursor: pointer; line-height: 1.15; }
.dh-code small { font-size: .62rem; color: var(--muted); font-weight: 800; } .dh-code b { font-size: 1rem; letter-spacing: 1.5px; color: var(--brand); }
.tabbar { position: sticky; top: 52px; z-index: 9; display: flex; gap: 6px; align-items: flex-start; background: var(--bg); padding: 6px 0 2px; margin: 0 -2px 8px; }
.tabbar .tabs { flex: 1; min-width: 0; margin-bottom: 0; padding-bottom: 4px; }
.tabs a { padding: 7px 12px; font-size: .86rem; }
.tabmore { position: relative; flex: none; }
.tabmore summary { list-style: none; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: .86rem; cursor: pointer; }
.tabmore summary::-webkit-details-marker { display: none; }
.tabmore.on summary { background: var(--tiffany); color: var(--on-tiffany); }
.tabmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; min-width: 190px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 48, 43, .18); padding: 6px; }
.tabmenu a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; } .tabmenu a.on, .tabmenu a:hover { background: #f2fdf9; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.startcard h2 { margin-top: 0; } .startcard .lrow { padding: 6px 0; }
.stepdot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); font-weight: 900; color: #fff; font-size: .8rem; }
.okstep .stepdot { background: var(--ok); border-color: var(--ok); } .okstep b { color: var(--muted); text-decoration: line-through; }
.asgfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #f2fdf9; font-size: .88rem; } .asgfoot small { display: block; }
details.realcard summary { cursor: pointer; list-style: none; } details.realcard summary::-webkit-details-marker { display: none; } details.realcard[open] summary { margin-bottom: 8px; }
.dh-title { padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%2300806b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 2px center; }
.form.inline select { flex: 0 0 auto; width: auto; }
.newschool input { flex: 1 1 auto; } .newschool .btn { flex: none; }
@media (max-width: 480px) { .form.inline.newschool { flex-wrap: wrap; } .newschool input { flex-basis: 100%; } .newschool select { flex: 1; } }
.form.inline.newschool { flex-wrap: wrap; } .newschool input { flex: 1 1 260px; } .newschool select { flex: 1 0 auto; max-width: 200px; }
.form.inline.newschool input { flex: 1 1 260px; } .form.inline.newschool select { flex: 1 0 auto; max-width: 200px; }

/* ---------- Landing page ---------- */
.lp-menu { position: relative; }
.lp-menu summary { list-style: none; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menulist { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; display: grid; z-index: 20; }
.lp-menulist a { padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.lp-menulist a:hover { background: var(--bg); }
.lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; padding: 18px 0 8px; }
.lp-badge { display: inline-block; background: #fff4d6; color: #8a5a00; font-weight: 800; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; margin: 12px 0 10px; }
.lp-hero h1 span { color: var(--brand); }
.lp-copy > p { color: var(--muted); margin: 0 0 12px; }
.lp-resume { display: inline-block; margin: 0 0 10px; padding: 8px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ink); text-decoration: none; }
.lp-cta { margin: 6px 0 8px; }
.btn.lp-big { font-size: 1.08rem; padding: 14px 24px; }
.lp-roles { font-weight: 700; }
.lp-roles a { color: var(--brand); }
.lp-free { font-size: .92rem; }
.lp-art { position: relative; height: 300px; }
.lp-blob { position: absolute; inset: 20px 10px 10px; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: linear-gradient(135deg, #d8fff4, #fff1d6); }
.lp-kid { position: absolute; bottom: 24px; width: 46%; }
.lp-kid svg, .lp-kid img { width: 100%; height: auto; display: block; }
.lp-kid.k1 { left: 6%; } .lp-kid.k2 { right: 6%; bottom: 34px; }
.lp-bubble { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px 14px; font-weight: 900; font-size: 1.25rem; box-shadow: var(--shadow); z-index: 2; }
.lp-star { position: absolute; color: #ffc928; font-size: 1.6rem; } .lp-star.s1 { top: 70px; left: 8%; } .lp-star.s2 { top: 40px; right: 6%; font-size: 1.2rem; }
.lp-tri { position: absolute; top: 110px; right: 2%; color: #4d96ff; font-size: 1.4rem; font-weight: 900; }
.lp-plus { position: absolute; top: 120px; left: 2%; color: #ff7a59; font-size: 1.4rem; font-weight: 900; }
.lp-book { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 2rem; }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px; margin: 12px 0 18px; text-align: center; }
.lp-stats b { display: block; font-size: 1.35rem; color: var(--tiffany); }
.lp-stats small { opacity: .85; font-size: .78rem; }
.lp-sec { margin: 0 0 22px; }
.lp-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.lp-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.lp-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.lp-hicon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.25rem; }
.lp-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.lp-grade { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 900; box-shadow: var(--shadow); }
.lp-grade small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.lp-gav { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg); }
.lp-gav svg, .lp-gav img { width: 100%; height: 100%; display: block; }
.lp-strands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-strand { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent); border-radius: 16px; background: var(--bg); padding: 14px; text-decoration: none; color: var(--ink); }
.lp-sicon { width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 4px; }
.lp-strand b { color: var(--c); filter: brightness(.8); }
.lp-strand small { color: var(--muted); font-size: .82rem; }
.lp-strand .lp-scount { margin-top: auto; font-weight: 800; color: var(--ink); }
.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-whocard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.lp-whocard > b { font-size: 1.1rem; }
.lp-wicon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 1.6rem; overflow: hidden; margin-bottom: 6px; }
.lp-wicon svg { width: 100%; height: 100%; }
.lp-whocard ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.lp-go { margin-top: auto; color: var(--brand); font-weight: 800; font-size: .9rem; }
.lp-try { background: #fff; border: 2px dashed var(--tiffany-dark); border-radius: var(--r); padding: 14px; }
.lp-cur { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.lp-cur > p { margin: 0; }
.lp-final { display: flex; align-items: center; gap: 12px; background: var(--tiffany); color: var(--on-tiffany); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.lp-final b { display: block; } .lp-final small { opacity: .85; }
.lp-mascot img { width: 48px; height: 48px; display: block; }
.lp-final .btn { background: var(--ink); color: #fff; flex: none; }
.strandpick { margin: 8px 0; }
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .lp-art { height: 220px; order: -1; max-width: 340px; width: 100%; margin: 0 auto; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-grades { grid-template-columns: repeat(2, 1fr); }
  .lp-strands { grid-template-columns: repeat(2, 1fr); }
  .lp-who { grid-template-columns: 1fr; }
  .lp-final { flex-wrap: wrap; } .lp-final .btn { width: 100%; text-align: center; }
}
@media (max-width: 420px) { .lp-strands, .lp-grades { grid-template-columns: 1fr; } .lp-strand small:not(.lp-scount) { display: none; } }
.lp-kid .avsvg, .lp-gav .avsvg, .lp-wicon .avsvg { display: block; width: 100%; height: 100%; font-size: inherit; }
.lp-kid .avsvg svg, .lp-gav .avsvg svg, .lp-wicon .avsvg svg { width: 100%; height: 100%; display: block; }
.lp-kid { aspect-ratio: 1; max-width: 150px; }
.lp-kid.k1 { left: 8%; } .lp-kid.k2 { right: 8%; }
.lp-art { height: auto; display: flex; justify-content: center; }
.lp-art img { width: 100%; max-width: 440px; height: auto; display: block; }
@media (max-width: 760px) { .lp-art { height: auto; max-width: 300px; margin: 0 auto 4px; } }

/* ---------- Lapisan iman (opsional per kelas) ---------- */
.hikmah { border-left: 5px solid #16a085; }
.hikmah blockquote { margin: 8px 0; padding: 10px 14px; background: #eefaf6; border-radius: 12px; }
.hikmah cite { display: block; font-size: .85rem; color: var(--muted); font-style: normal; }
.doa-ar { font-size: 1.5rem; line-height: 2; font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; margin: 6px 0; }
.doa .doa-id { font-style: italic; }

/* Peringatan jenis akun di formulir guru */
.kindwarn { background: #fff7e0; border: 1.5px solid #f5c451; border-radius: 14px; padding: 10px 14px; font-size: .9rem; }
.kindwarn ul { margin: 6px 0 0; padding-left: 18px; }
.kindwarn li { margin: 3px 0; }
.famchk { display: grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer; } .famchk input { width: 22px; height: 22px; accent-color: var(--brand); }

/* ---------- SMP dan SMA: penjelasan bertahap, pecahan bertingkat, matriks, tabel ---------- */
.kunci { background: #fff7e0; border-left: 4px solid #f5c451; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.kunci b { display: block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #8a5a00; }
.kunci p { margin: 4px 0 0; }
.tahap { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.tahap li b { display: block; }
.tahap li div { margin-top: 2px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.tahap li div > b { display: inline; } /* hasil akhir tetap satu baris dengan perhitungannya */
.mfr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.15; margin: 0 2px; }
.mfr b { font-weight: inherit; padding: 0 3px; }
.mfr b:first-child { border-bottom: 2px solid currentColor; }
.mmat { display: inline-block; vertical-align: middle; border-left: 2px solid currentColor; border-right: 2px solid currentColor; border-radius: 6px; padding: 2px 8px; line-height: 1.5; text-align: center; }
.mmat span { display: inline-block; min-width: 2.2em; }
.mtbl { border-collapse: collapse; margin: 8px auto; font-size: .95rem; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
.mtbl.mv { display: none; }
@media (max-width: 520px) { .mtbl { font-size: .9rem; } .mtbl th, .mtbl td { padding: 3px 8px; } .mtbl.mh { display: none; } .mtbl.mv { display: block; } }
.mtbl th, .mtbl td { border: 1px solid var(--line); padding: 4px 9px; text-align: center; }
.mtbl th { background: #f1fbf8; }

/* ---------- TK: titik, baris, dan kolom gambar ---------- */
.tkdots { font-size: 2.2rem; letter-spacing: .25em; color: #ff7a59; text-align: center; line-height: 1.3; word-break: break-all; }
.tkrow, .tkcol { display: flex; justify-content: center; gap: 18px; font-size: 3.4rem; line-height: 1; }
.tkcol { flex-direction: column; align-items: center; gap: 8px; }
.tkem { font-size: 2.4rem; line-height: 1; }

/* ---------- Notasi matematika bertingkat: limit, integral dengan batas ---------- */
.mlim { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 4px 0 0; }
.mlim > span { font-weight: inherit; }
.mlim small { font-size: .62em; white-space: nowrap; margin-top: 1px; }
.mint { display: inline-flex; align-items: center; vertical-align: middle; font-size: 1.45em; line-height: 1; margin-right: 2px; }
.mlims { display: inline-flex; flex-direction: column; justify-content: space-between; font-size: .52em; line-height: 1.15; margin-left: 1px; align-self: stretch; }
.mlims sup, .mlims sub { vertical-align: baseline; font-size: 1em; line-height: 1.15; }
.mfr { white-space: nowrap; }
.mcx { text-decoration: line-through; text-decoration-color: var(--no); text-decoration-thickness: 3px; color: var(--muted); }
ol.tahap small { color: var(--muted); font-weight: 700; font-size: .85em; display: block; margin-top: 4px; }

/* ---------- Dasbor guru: tab utama, pil sub-halaman, daftar "Yang perlu dilakukan", tambah siswa ---------- */
.tabs.tmain { flex-wrap: wrap; }
.tabs .tsep { width: 2px; align-self: stretch; margin: 2px 4px; background: var(--line); border-radius: 2px; }
.tabs a.adm { font-size: .9em; }
.tcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #ff5a5f; color: #fff; font-size: .75rem; font-weight: 900; }
.tsub { display: flex; gap: 6px; margin: -2px 0 12px; overflow-x: auto; }
.tsub a, .tsub button { flex: none; font-family: inherit; cursor: pointer; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .85rem; text-decoration: none; }
.tsub a.on, .tsub button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dh-gear { display: grid; justify-items: center; align-content: center; flex: none; min-width: 52px; padding: 4px 6px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.dh-gear small { font-size: .65rem; font-weight: 900; } .dh-gear.on { border-color: var(--tiffany-dark); background: #e6fffa; }
.todos h2 { margin-bottom: 6px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo .tic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f1fbf8; font-size: 1.3rem; }
.todo.warn .tic { background: #fff1ec; } .todo.good .tic { background: #e5f8ef; }
.todo b { display: block; } .todo small { display: block; color: var(--muted); }
.todo .btn { flex: none; }
.addkids > summary, .insights > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.addkids > summary::-webkit-details-marker, .insights > summary::-webkit-details-marker { display: none; }
.addkids > summary b, .insights > summary b { font-size: 1.1rem; } .addkids > summary small, .insights > summary small { color: var(--muted); }
.addkids > summary::after, .insights > summary::after { content: '▾'; margin-left: auto; color: var(--muted); } .addkids[open] > summary::after, .insights[open] > summary::after { content: '▴'; }
.addways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.way { position: relative; padding: 14px 12px 12px; border: 2px solid var(--line); border-radius: 16px; background: #fbfffe; }
.way .wn { position: absolute; top: -12px; left: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tiffany); color: var(--on-tiffany); font-weight: 900; }
.way h3 { margin: 4px 0 4px; font-size: 1rem; } .way p { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.way .form.inline input { min-width: 0; }
.rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rhead h2 { margin: 0; }
.roster .st0, .roster .st1, .roster .st2 { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.roster .st0 { background: #f1f4f3; color: #5c7570; } .roster .st1 { background: #fff1ec; color: #b4472b; } .roster .st2 { background: #e5f8ef; color: #127a52; }
@media (max-width: 760px) { .addways { grid-template-columns: 1fr; gap: 16px; } .todo { flex-wrap: wrap; } .todo .btn { margin-left: 50px; } }
.dhead select.dh-title { width: 100%; min-width: 0; text-overflow: ellipsis; }
.todo .grow { flex: 1 1 190px; min-width: 0; }
@media (max-width: 760px) { .todo .btn { margin-left: 50px; } .dh-row { gap: 8px; } .dh-gear { min-width: 44px; padding: 3px 4px; } }

/* Harga: Keluarga, Guru, Sekolah */
.phero { text-align: center; margin: 8px auto 16px; max-width: 640px; } .phero h1 { margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.plan { background: var(--card, #fff); border: 2px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan.hl { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand); }
.plan small { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted, #6b7c78); }
.plan h2 { margin: 0; } .plan p { flex: 1; margin: 4px 0 10px; }
.plan .price { font-size: 1.6rem; font-weight: 900; color: var(--brand); } .plan .price span { font-size: .85rem; font-weight: 700; color: var(--muted, #6b7c78); }
.pcompare td:not(:first-child), .pcompare th:not(:first-child) { text-align: center; width: 72px; }
.pyes { color: var(--ok); font-weight: 900; } .pno { color: #b8c4c1; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; } details.faq summary { font-weight: 800; cursor: pointer; } details.faq p { margin: 8px 0 0; }
.ok-note { background: var(--ok-bg); color: var(--ok); font-weight: 800; padding: 12px 14px; border-radius: 12px; }
.upsell ul { margin: 8px 0 12px 18px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.planrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: end; border-top: 1px solid var(--line); padding: 10px 0; }
.planrow > b, .planrow > small { grid-column: 1 / -1; } .planrow > input[name="note"] { grid-column: 1 / -1; }
@media (min-width: 760px) { .planrow { grid-template-columns: 1.4fr .8fr 1fr .8fr 1.4fr auto; } .planrow > b { grid-column: 1; } .planrow > small { grid-column: 1; grid-row: 2; } .planrow > input[name="note"] { grid-column: auto; } }

/* Laporan Semua kemajuan */
.apwrap { max-height: 70vh; overflow: auto; }
.allprog { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.allprog th, .allprog td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.allprog thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 2; }
.allprog tbody th { position: sticky; left: 0; background: var(--card, #fff); z-index: 1; text-align: left; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.allprog thead th:first-child { left: 0; z-index: 3; }
.allprog .apunit th, .allprog .apunit td { background: #f2fbf8; font-weight: 900; }
.allprog .apsk { font-weight: 600; padding-left: 18px; }
.apc, .apu { text-align: center; } .apc.g { color: var(--ok); font-weight: 800; } .apc.o { color: #c77700; font-weight: 800; }

/* Siswa tanpa kelas: keadaan aktivitas */
.pill.ung-aktif { background: var(--ok-bg); color: var(--ok); } .pill.ung-jeda { background: #fff6e0; color: #a86b00; }
.pill.ung-diam { background: var(--no-bg); color: var(--no); } .pill.ung-belum { background: #eef1f0; color: var(--muted); }
.kpis.ungact, .kpis.ungsum { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin: 8px 0; }
.kpis.ungact .kpi, .kpis.ungsum .kpi { padding: 8px 10px; background: #f6fbfa; box-shadow: none; }
.kpis.ungact .kpi small, .kpis.ungsum .kpi small { font-size: .74rem; line-height: 1.2; }
.kpis.ungact .kpi b, .kpis.ungsum .kpi b { font-size: 1.1rem; }
.tsub.ungf { flex-wrap: wrap; margin-top: 10px; }
/* Tabel siswa tanpa kelas: kolom nama menempel saat tabel digeser */
.ungtbl td { vertical-align: middle; }
.ungtbl td.num, .ungtbl th:nth-child(n+4):nth-child(-n+7) { text-align: right; }
.ungtbl td.ungname, .ungtbl th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 2px 0 0 var(--line); }
.ungtbl .ungn { display: flex; align-items: center; gap: 8px; min-width: 210px; }
.ungtbl td.ungname .famchk { width: 32px; height: 32px; }
.ungtbl td.ungname .av { width: 34px; height: 34px; font-size: 1.1rem; flex: none; }
.ungtbl td.ungname small { display: block; color: var(--muted); font-size: .74rem; }
.ungtbl tbody tr:hover td { background: #f4fdfa; }
.ungtbl .form.inline { margin: 0; flex-wrap: nowrap; gap: 6px; } .ungtbl .form.inline select { min-width: 170px; padding: 6px 8px; }
.ungtools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.ungtools select { flex: 1 1 210px; min-width: 0; padding: 9px 10px; }
.ungq { flex: 3 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.ungq:focus-within { border-color: var(--brand); }
.ungq input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; font: inherit; background: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }
b.big { font-size: 1.3rem; display: block; }

/* Tarik Tambang: dua tim di satu layar */
.tt-rope { position: relative; height: 104px; margin: 6px 0 10px; border-radius: 18px; background: linear-gradient(90deg, #ffeeee 0 50%, #e9efff 50% 100%); overflow: hidden; }
.tt-line { position: absolute; left: 0; right: 0; top: 58px; height: 2px; background: #e3e8e7; }
.tt-mid { position: absolute; left: 50%; top: 8px; bottom: 8px; border-left: 3px dashed #9aa7a4; }
.tt-goal { position: absolute; top: 8px; bottom: 8px; width: 0; border-left: 4px solid; } .tt-goal.l { left: 27%; border-color: #e0464b; } .tt-goal.r { left: 73%; border-color: #1f3c88; }
.tt-pull { --p: 0; position: absolute; left: 50%; top: 22px; width: 92%; display: flex; align-items: center; transform: translateX(calc(-50% + var(--p) * 25%)); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.tt-cord { flex: 1; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #c99a5b 0 8px, #e8c08a 8px 14px); margin-top: 18px; }
.tt-flag { font-size: 1.6rem; margin: 0 -4px; transform: translateY(-4px); } .tt-m { flex: none; } .tt-m.l { margin-right: -10px; } .tt-m.r { margin-left: -10px; }
.tt-sec { position: absolute; right: 10px; bottom: 4px; font-weight: 800; color: var(--muted); } .tt-sec b { color: var(--ink); }
.tt-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-side { border-radius: 18px; padding: 10px; border: 3px solid; transition: opacity .2s; } .tt-side.l { border-color: #ff8a8c; background: #fff6f6; } .tt-side.r { border-color: #8ea6e6; background: #f4f7ff; }
.tt-side.lock { opacity: .45; } .tt-side.pull { animation: tt-yank .35s ease; }
@keyframes tt-yank { 40% { transform: scale(1.03); } }
.tt-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; margin-bottom: 6px; } .tt-side.l .tt-head { color: #b52a30; } .tt-side.r .tt-head { color: #142a63; }
.tt-head span { font-size: 1.4rem; }
.tt-q { background: #fff; border-radius: 14px; padding: 14px 6px; text-align: center; font-size: clamp(1.2rem, 4.6vw, 2.2rem); font-weight: 900; margin-bottom: 8px; min-height: 72px; display: grid; place-items: center; overflow-wrap: anywhere; }
.tt-q small { display: block; font-size: .9rem; color: var(--muted); }
.tt-opts { display: grid; gap: 8px; } .tt-opts .gopt { padding: 12px 6px; font-size: clamp(1.1rem, 4.2vw, 1.8rem); }
@media (min-width: 700px) { .tt-opts { grid-template-columns: 1fr 1fr; } .tt-rope { height: 120px; } .mq-screen.tt-wide { max-width: 1280px; } .tt-wide .tt-sides { gap: 24px; } .tt-wide .tt-q { min-height: 120px; font-size: clamp(2rem, 4vw, 3.4rem); } .tt-wide .tt-opts .gopt { padding: 22px 8px; font-size: clamp(1.6rem, 3vw, 2.6rem); } }

/* Sudoku */
.sd-grid { --n: 4; display: grid; grid-template-columns: repeat(var(--n), 1fr); width: min(100%, 420px); margin: 4px auto 12px; border: 3px solid #4b2fa6; border-radius: 12px; overflow: hidden; background: #fff; }
.sd-c { aspect-ratio: 1; border: 0; border-right: 1px solid #ddd3f7; border-bottom: 1px solid #ddd3f7; background: #fff; font: inherit; font-weight: 900; color: #7c5cd6; font-size: clamp(1rem, 6vw, 1.9rem); padding: 0; cursor: pointer; }
.sd-grid.n9 .sd-c { font-size: clamp(.95rem, 4.6vw, 1.5rem); } .sd-grid.pic .sd-c { font-size: clamp(1.6rem, 10vw, 2.6rem); }
.sd-c.br { border-right: 3px solid #4b2fa6; } .sd-c.bb { border-bottom: 3px solid #4b2fa6; }
.sd-c.giv { color: #16302b; background: #f6f3ff; cursor: default; }
.sd-c.near { background: #f1ecff; } .sd-c.same { background: #e3d9ff; } .sd-c.sel { background: #ffe9a8; box-shadow: inset 0 0 0 3px #f5a524; }
.sd-c.bad { color: #e0464b; background: #ffe3e3; } .sd-c.win { animation: sd-win .6s ease; background: #e5f8ef; }
@keyframes sd-win { 50% { transform: scale(1.12); } }
.sd-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 420px); margin: 0 auto; } .sd-pad.n4 { grid-template-columns: repeat(5, 1fr); } .sd-pad.n6 { grid-template-columns: repeat(7, 1fr); }
.sd-k { min-height: 50px; border: 0; border-radius: 14px; background: #f1ecff; box-shadow: 0 4px 0 #d8ccfa; font: inherit; font-size: 1.4rem; font-weight: 900; color: #4b2fa6; cursor: pointer; touch-action: manipulation; }
.sd-k.del { background: #ffeeea; box-shadow: 0 4px 0 #f6d2c8; color: #b52a30; } .sd-k:active { transform: translateY(3px); box-shadow: 0 1px 0 #d8ccfa; }

/* Penjumlahan dan pengurangan bersusun beranimasi (js/kolom.js) */
.kolom { --cw: 2.3em; margin: 10px 0 4px; font-size: 1.35rem; }
.kc-board { position: relative; display: inline-block; padding: 4px 10px 8px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.kc-row { display: grid; grid-template-columns: repeat(calc(var(--w) + 1), var(--cw)); text-align: center; font-weight: 900; position: relative; z-index: 1; }
.kc-head span { font-size: .55em; font-weight: 900; letter-spacing: .04em; padding-bottom: 2px; }
.kc-top { padding-top: calc(var(--lv) * 0.95em + 0.2em); }
.kc-d { position: relative; line-height: 1.25; }
.kc-s { color: #19a3b8; } .kc-p { color: #1f3c88; } .kc-r { color: #d6457a; } .kc-rb { color: #8a5a00; }
.kc-op { color: var(--ink); }
.kc-n { position: absolute; left: 50%; transform: translateX(-50%); font-size: .62em; font-weight: 900; color: #e07000; line-height: 1; animation: kc-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.kc-n.l1 { top: -0.95em; } .kc-n.l2 { top: -1.85em; } .kc-n.l3 { top: -2.75em; }
.kc-n.carry { color: #e0464b; animation-name: kc-fly; }
.kc-x { position: absolute; left: 18%; right: 18%; height: 3px; border-radius: 3px; background: #ff7a00; transform-origin: left; transform: rotate(-35deg) scaleX(1); animation: kc-strike .35s ease both; }
.kc-x.l0 { top: 55%; left: 24%; right: 24%; } .kc-x.l1 { top: -0.55em; left: 30%; right: 30%; } .kc-x.l2 { top: -1.45em; left: 30%; right: 30%; }
.kc-line { height: 3px; background: var(--ink); border-radius: 2px; margin: 2px 0 4px var(--cw); position: relative; z-index: 1; }
.kc-res b { display: inline-block; color: #15a36b; animation: kc-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.kc-hot { position: absolute; top: 4px; bottom: 6px; left: calc(10px + (var(--c) - 1) * var(--cw)); width: var(--cw); border-radius: 12px; background: #fff3c4; opacity: 0; animation: kc-hot 2.6s ease both; }
.kc-cap { margin: 8px 0 0; padding-left: 20px; font-size: .95rem; font-weight: 700; line-height: 1.45; }
.kc-cap li { animation: kc-in .4s ease both; margin-bottom: 4px; } .kc-hl { color: #e07000; }
.kc-again { margin-top: 2px; }
@keyframes kc-pop { from { opacity: 0; transform: translateX(-50%) scale(.3); } }
.kc-res b { animation-name: kc-pop2; } @keyframes kc-pop2 { from { opacity: 0; transform: scale(.3); } }
@keyframes kc-fly { from { opacity: 0; transform: translate(60%, 2.4em) scale(.6); } }
@keyframes kc-strike { from { transform: rotate(-35deg) scaleX(0); } }
@keyframes kc-hot { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kc-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .kolom * { animation-duration: .01s !important; } }
/* Pembagian bersusun (porogapit) */
.pgap { --cw: 1.25em; }
.pgap .pg-board { position: relative; display: inline-grid; grid-template-columns: repeat(var(--cols), var(--cw)); grid-auto-rows: auto; padding: 8px 14px 10px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 900; text-align: center; line-height: 1.3; }
.pg-c { position: relative; z-index: 1; }
.pg-dv { color: #d6457a; }
.pg-nd { color: var(--ink); border-top: 3px solid var(--ink); }
.pg-br { position: relative; z-index: 1; border-top: 3px solid var(--ink); }
.pg-br::before { content: ''; position: absolute; left: 22%; right: 22%; top: -3px; bottom: 0; border-right: 3px solid var(--ink); border-radius: 0 60% 60% 0 / 0 50% 50% 0; }
.pg-qd { color: #15a36b; animation: kc-pop2 .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.pg-pr, .pg-op { color: #1f3c88; animation: kc-in .4s ease both; }
.pg-rm { color: var(--ink); animation: kc-in .4s ease both; }
.pg-dn { color: #e07000; animation: pg-down .5s ease both; }
.pg-ln { display: block; height: 3px; align-self: center; margin: 2px 0; background: var(--ink); border-radius: 2px; transform-origin: right; animation: pg-line .35s ease both; position: relative; z-index: 1; }
.pg-hot { display: block; border-radius: 8px; background: #fff3c4; opacity: 0; animation: kc-hot 2.6s ease both; margin: 0 -2px; }
.pg-hot.sm { animation-duration: 1.2s; background: #ffe2bf; }
.pg-ask { color: var(--warn); }
.pgap.pg-q { font-size: 2.2rem; display: flex; justify-content: center; }
.pgap.pg-q .pg-board { border: 0; background: none; padding: 0; }
.kmul .km-a { color: var(--ink); }
.kmul .km-op { color: var(--ink); animation: kc-in .4s ease both; }
.kmul .km-p { color: #1f3c88; animation: kc-pop2 .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.kmul .km-r { color: #15a36b; animation: kc-pop2 .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.kmul .km-cy { font-size: .72em; line-height: 1.1; align-self: end; color: #e0464b; animation: kc-fly .45s ease both; }
.kmul .km-cy.blink { animation-name: km-blink; animation-timing-function: linear; }
.pg-ln.st { animation: none; }
@keyframes km-blink { 0% { opacity: 0; } 6%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pg-down { from { opacity: 0; transform: translateY(-1.6em); } }
@keyframes pg-line { from { transform: scaleX(0); } }

/* Lembar Hafalan: lembar latihan urut, acak, pola */
.lb-pick { text-align: center; } .lb-pick p { font-weight: 900; margin: 8px 0 12px; }
.lb-pick > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.lb-n { padding: 16px 6px; border: 0; border-radius: 16px; background: #e9f7ef; box-shadow: 0 4px 0 #bfe5cf; font: inherit; font-size: 1.4rem; font-weight: 900; color: #1f5e44; cursor: pointer; }
.lb-sheet { background: #fff; border: 2px solid #cfe8da; border-radius: 16px; padding: 6px 14px 10px; margin-bottom: 10px; }
.lb-sheet section + section { border-top: 2px dashed #cfe8da; margin-top: 8px; }
.lb-sheet h4 { margin: 10px 0 6px; font-size: .95rem; color: #2f7d5b; } .lb-sheet h4 b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #2f7d5b; color: #fff; margin-right: 4px; }
.lb-ln { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 0; font-size: 1.35rem; font-weight: 900; }
.lb-ln > small { width: 34px; font-size: .7rem; color: var(--muted); font-weight: 800; }
.lb-b { min-width: 58px; height: 42px; padding: 0 8px; border: 2px solid #9fcdb5; border-radius: 10px; background: #fbfffd; font: inherit; font-size: 1.3rem; font-weight: 900; color: #16302b; cursor: pointer; }
.lb-b.on { border-color: #f5a524; background: #fff7dc; box-shadow: 0 0 0 3px #ffe08a; }
.lb-b.ok { border-color: #15a36b; background: #e5f8ef; color: #0a7d52; cursor: default; }
.lb-b.bad { border-color: #e0464b; background: #ffe3e3; color: #b52a30; } .lb-b.miss { border-color: #e0464b; border-style: dashed; }
.lb-pad { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--bg, #f1fbf8); }
.lb-pad button { min-height: 44px; border: 0; border-radius: 12px; background: #eefaf7; box-shadow: 0 3px 0 #cdeee5; font: inherit; font-size: 1.25rem; font-weight: 900; color: #04382e; cursor: pointer; touch-action: manipulation; }
.lb-pad .del { background: #ffeeea; box-shadow: 0 3px 0 #f6d2c8; } .lb-pad .nx { background: #fff3c4; box-shadow: 0 3px 0 #f1d98a; }
.lb-pad .ck { grid-column: 1 / -1; background: #35e0bd; box-shadow: 0 4px 0 #19b796; font-size: 1.05rem; letter-spacing: .04em; }
.lb-ln > small + span { min-width: 5.4em; text-align: right; white-space: nowrap; }

/* Latihan fakta berpola (js/pola.js) */
.pola-tag { display: inline-block; margin: 0 auto 6px; padding: 3px 12px; border-radius: 999px; background: #e9f7ef; color: #1f5e44; font-size: .85rem; font-weight: 900; }
.pola-prev { color: #9aa7a4; font-weight: 800; font-size: 1.05rem; line-height: 1.5; margin-bottom: 4px; }

/* Langkah beranimasi SMP-SMA: langkah muncul satu per satu, garis coret tergambar sesudahnya */
.lk-steps > li { animation: kc-in .45s ease both; animation-delay: calc(var(--t0, 0s) + var(--t, 0s)); }
.lk .mcx { position: relative; display: inline-block; text-decoration: none; }
.lk .mcx::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 3px; border-radius: 3px; background: var(--no); transform-origin: left; transform: rotate(-16deg) scaleX(1); animation: lk-strike .45s ease both; animation-delay: calc(var(--t0, 0s) + var(--t, 0s) + .8s); }
@keyframes lk-strike { from { transform: rotate(-16deg) scaleX(0); } }
.mnew { font-size: .72em; font-weight: 900; color: var(--no); vertical-align: super; margin-left: 2px; }
.pola-rows { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #e9f7ef; font-weight: 800; }
.pola-rows > b { display: block; font-size: .8rem; color: #1f5e44; margin-bottom: 4px; }
.pola-rows > div { animation: kc-in .4s ease both; animation-delay: var(--t, 0s); padding: 1px 0; } .pola-rows > div.now { color: #0a7d52; font-size: 1.08em; }
@media (prefers-reduced-motion: reduce) { .lk-steps > li, .lk .mcx::after, .pola-rows > div { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* Panjat Pinang: layar besar kelas. Teks besar untuk anak yang duduk jauh, tombol jawaban di bagian bawah layar agar terjangkau anak TK */
.mq-screen.pp-full { max-width: none; padding: 0 12px; min-height: 0; }
.pp { display: grid; grid-template-columns: minmax(170px, 26%) 1fr; gap: 16px; height: calc(100vh - 76px); height: calc(100dvh - 76px); min-height: 460px; }
.pp-scene { position: relative; border-radius: 22px; background: linear-gradient(#bfe6ff 0 78%, #8fd17a 78%); overflow: hidden; }
.pp-pole { position: absolute; left: 50%; top: 5%; bottom: 12%; width: 26px; margin-left: -13px; border-radius: 13px; background: linear-gradient(90deg, #8a5526, #c98a4b 45%, #8a5526); }
.pp-pole i { position: absolute; left: -7px; right: -7px; height: 5px; border-radius: 3px; background: #6d4019; }
.pp-pole b { position: absolute; left: 44px; top: -24px; font-size: clamp(1.8rem, 3.4vw, 3rem); filter: grayscale(.9); opacity: .6; transition: filter .3s, transform .3s, opacity .3s; } .pp-pole b.got { filter: none; opacity: 1; transform: scale(1.3); }
.pp-climb { --r: 0; position: absolute; left: 50%; bottom: calc(8% + var(--r) * 7.3%); transform: translateX(-74%); transition: bottom .55s cubic-bezier(.3, 1.3, .5, 1); z-index: 2; }
.pp-climb svg, .pp-pals svg { display: block; width: clamp(62px, 8vw, 118px); height: auto; }
.pp-climb.slip .m { display: block; animation: pp-slip .6s ease; } @keyframes pp-slip { 25% { transform: rotate(-14deg); } 60% { transform: rotate(12deg); } }
.pp-pals { position: absolute; left: 0; right: 0; bottom: 1%; display: flex; justify-content: space-between; padding: 0 2px; } .pp-pals svg { width: clamp(38px, 4.6vw, 70px); } .pp-pals.yay span { animation: pp-yay .6s ease; } .pp-pals span:nth-child(2) { animation-delay: .08s; position: absolute; left: 7%; bottom: 62vh; } .pp-pals span:nth-child(3) { animation-delay: .16s; } @keyframes pp-yay { 40% { transform: translateY(-22px); } }
.pp-play { display: flex; flex-direction: column; min-width: 0; gap: 10px; padding-bottom: 12px; }
.pp-hud { display: flex; align-items: center; gap: 22px; padding: 2px 8px; } .pp-hud small { display: block; font-weight: 800; color: var(--muted); font-size: clamp(.78rem, 1.2vw, 1.05rem); } .pp-hud b { font-size: clamp(1.25rem, 2.4vw, 2.2rem); font-weight: 900; color: var(--ink); }
.pp-fs { margin-left: auto; width: 50px; height: 50px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 1.5rem; cursor: pointer; }
.pp-q { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; min-height: 0; border-radius: 22px; background: #fff; border: 3px solid #16302b; padding: 8px; font-size: clamp(2.6rem, 8.5vw, 8rem); font-weight: 900; line-height: 1.12; color: #0b1f1b; overflow: hidden; }
.pp-q small { font-size: .38em; font-weight: 900; color: #16302b; } .pp-q .gdots { font-size: 1em; letter-spacing: .1em; color: #d6341f; line-height: 1.05; } .pp-q .gfr { font-size: .9em; }
.pp-opts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; height: 38%; min-height: 130px; }
.pp-opt { border: 0; border-radius: 24px; background: #0b6b58; color: #fff; font: inherit; font-size: clamp(2.2rem, 6.2vw, 6rem); font-weight: 900; box-shadow: 0 8px 0 #06493c; cursor: pointer; touch-action: manipulation; min-width: 0; overflow-wrap: anywhere; } .pp-opt:nth-child(2) { background: #1a55c4; box-shadow: 0 8px 0 #10398a; } .pp-opt:nth-child(3) { background: #c8381f; box-shadow: 0 8px 0 #8e2412; } .pp-opt:nth-child(4) { background: #7a3fc4; box-shadow: 0 8px 0 #542a8a; }
.pp-opt.right { background: #15a36b; box-shadow: 0 8px 0 #0a7d52; outline: 6px solid #ffc800; } .pp-opt.wrong { background: #6b7572; box-shadow: 0 8px 0 #4c5552; }
@media (max-width: 699px) { .pp-pals span:nth-child(2) { bottom: 110px; } .pp { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; height: auto; min-height: calc(100dvh - 76px); } .pp-opts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; height: auto; } .pp-opt { min-height: 84px; } .pp-q { font-size: clamp(2rem, 11vw, 3.4rem); min-height: 130px; } .pp-climb { bottom: calc(10% + var(--r) * 6.6%); } .pp-climb svg { width: 48px; } .pp-pals svg { width: 36px; } }
@media (prefers-reduced-motion: reduce) { .pp-climb { transition: none; } .pp-pals.yay span, .pp-climb.slip .m { animation: none; } }

/* ---------- Dasbor guru dan orang tua yang sederhana ---------- */
.thero { background: linear-gradient(135deg, #dcfff6 0%, #fff 70%); }
.thero > small { display: block; color: var(--muted); font-weight: 800; }
.thero h1 { font-size: 1.5rem; font-weight: 700; margin: 4px 0 10px; } .thero h1 b { font-weight: 900; color: var(--brand); }
.thero p { margin: 8px 0 0; font-weight: 700; }
.tbar { height: 12px; border-radius: 99px; background: var(--lv0); overflow: hidden; } .tbar i { display: block; height: 100%; border-radius: 99px; background: var(--tiffany-dark); transition: width .4s; }
.tbar.sm { height: 8px; margin: 6px 0 4px; }
.steps3 { list-style: none; counter-reset: st; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.steps3 li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; color: var(--muted); }
.steps3 li::before { content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lv0); font-weight: 900; }
.steps3 li.on { color: var(--ink); } .steps3 li.on::before { background: var(--tiffany); color: var(--on-tiffany); } .steps3 small { display: block; }
.addkids > summary, .newtask > summary, .pmore > summary { font-size: 1.05rem; }
.addname { margin-top: 10px; } .addname textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.addnext { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .addnext small { display: block; color: var(--muted); }
.addalt { margin-top: 10px; font-size: .92rem; } .addalt summary { cursor: pointer; color: var(--brand); font-weight: 800; }
.kgh { margin: 14px 0 6px; font-size: 1rem; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.kcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-left: 5px solid var(--lv3); border-radius: 14px; background: #fff; cursor: pointer; min-height: 60px; }
.kcard.r { border-left-color: var(--no); } .kcard.y { border-left-color: var(--warn); } .kcard:hover { background: #f7fffc; }
.kcard a { color: var(--ink); text-decoration: none; } .kcard small { display: block; color: var(--muted); font-size: .84rem; } .kcard .av { flex: none; }
.kcard .kpar { flex: none; white-space: nowrap; font-weight: 800; } .kgo { flex: none; color: var(--muted); font-size: 1.3rem; }
.sugrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); } .sugrow:first-of-type { border-top: 0; } .sugrow small { display: block; color: var(--muted); }
.stepn { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 1rem; } .stepn i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tiffany); color: var(--on-tiffany); font-style: normal; font-size: .9rem; font-weight: 900; }
.skfind { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; } .skbox { max-height: 300px; } .skbox [hidden] { display: none !important; }
.taskc { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); } .taskc:first-of-type { border-top: 0; } .taskc small { display: block; color: var(--muted); }
.khead { display: flex; gap: 12px; align-items: flex-start; } .khead h1 { margin: 0 0 4px; } .khead p { margin: 8px 0 0; }
.sclass { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 8px; border: 1.5px solid var(--line); border-left: 5px solid var(--lv3); border-radius: 14px; cursor: pointer; } .sclass.r { border-left-color: var(--no); } .sclass.y { border-left-color: var(--warn); } .sclass:hover { background: #f7fffc; }
.sclass small { display: block; color: var(--muted); } .sline { display: block; font-size: .92rem; margin-top: 2px; }
.phead { border-top: 6px solid var(--lv3); } .phead.r { border-top-color: var(--no); } .phead.y { border-top-color: var(--warn); }
.phead-top { display: flex; align-items: center; gap: 12px; } .phead-top small { color: var(--muted); font-weight: 700; } .phead h1 { font-size: 1.4rem; margin: 2px 0 0; } .phead h2 { font-size: 1.2rem; margin: 2px 0 0; }
.phead > p { margin: 10px 0 0; font-size: 1.02rem; }
.wkdots { display: flex; justify-content: space-between; gap: 4px; max-width: 380px; margin-top: 14px; } .wkdots span { display: grid; justify-items: center; gap: 2px; } .wkdots small { font-size: .74rem; color: var(--muted); font-weight: 800; }
.wkdots i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lv0); color: var(--on-tiffany); font-style: normal; font-weight: 900; } .wkdots .on i { background: var(--tiffany); }
.phelp { padding: 10px 0; border-top: 1px solid var(--line); } .phelp:first-of-type { border-top: 0; padding-top: 0; } .phelp p { margin: 4px 0 8px; }
.kunlink { margin: 8px 0 0; }
.pmore .sub { margin: 14px 0 6px; }
@media (max-width: 760px) { .sugrow .btn { margin-left: auto; } .thero h1 { font-size: 1.3rem; } }
@media (max-width: 480px) { .demobar { flex-wrap: wrap; } .demobar .grow { flex-basis: 100%; } }
.sclass.r, .kcard.r, .khead.r, .phead.r { text-align: left; }
