/* Suken Coaching Community: the coach app. Phone first, works up to desktop. */
:root {
  --green: #0b5d3b; --green-2: #13764d; --green-soft: #e6f2ea; --gold: #c9971c; --gold-soft: #fbf3dc; --ink: #14201a; --muted: #5d6b64;
  --line: #e1e6e2; --bg: #f4f3ee; --card: #fff; --red: #b42318; --red-soft: #fdecea; --blue: #1d4ed8;
  --serif: "Source Serif 4", "Kantumruy Pro", Georgia, serif; --num: "Outfit", "Kantumruy Pro", system-ui, sans-serif; --cele: "Koulen", "Outfit", "Kantumruy Pro", sans-serif; --cere: "Moul", "Kantumruy Pro", serif; --sans: "Source Sans 3", "Kantumruy Pro", system-ui, sans-serif;
  --r: 16px; --shadow: 0 1px 2px rgba(20,32,26,.05), 0 6px 20px rgba(20,32,26,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); }
:lang(km) body, .km { font-family: "Kantumruy Pro", var(--sans); }
button { font: inherit; cursor: pointer; }
a { color: var(--green); }
img { max-width: 100%; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.logo { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; font: 700 30px/1 var(--serif); margin: 0 auto 8px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11,93,59,.3); }

/* top bar and bottom tabs */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244,243,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); }
.top .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; margin: 0; box-shadow: none; flex: none; }
.top .brand { flex: 1; min-width: 0; line-height: 1.15; } .top .brand b { font: 700 17px var(--serif); display: block; letter-spacing: .1px; } .top .brand span { font: 600 10.5px var(--sans); color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; background: #fff; padding: 2px; }
.lang button { border: 0; background: none; padding: 3px 10px; border-radius: 99px; font-size: 13px; color: var(--muted); }
.lang button.on { background: var(--green); color: #fff; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabs button { border: 0; background: none; display: grid; justify-items: center; gap: 1px; padding: 6px 0; color: var(--muted); font-size: 11.5px; border-radius: 12px; }
.tabs button i { font-style: normal; font-size: 21px; line-height: 1.1; filter: grayscale(1); opacity: .7; }
.tabs button.on { color: var(--green); font-weight: 700; } .tabs button.on i { filter: none; opacity: 1; }
main { max-width: 760px; margin: 0 auto; padding: 14px 16px 110px; }
@media (min-width: 900px) { .tabs { left: 50%; transform: translateX(-50%); max-width: 560px; bottom: 14px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); } }

/* building blocks */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 0 0 14px; }
.card h3 { margin: 0 0 8px; font: 700 17px var(--serif); display: flex; align-items: center; gap: 8px; }
.card h3 .more { margin-left: auto; font: 600 13px var(--sans); color: var(--green); background: none; border: 0; }
h2.sec { font: 700 20px var(--serif); margin: 18px 2px 10px; }
.mu { color: var(--muted); } .sm { font-size: 13.5px; } .xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn.block { width: 100%; } .btn.ghost { background: var(--green-soft); color: var(--green); } .btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, #d9a627, #b9850e); } .btn.red { background: var(--red-soft); color: var(--red); } .btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.pill.gold { background: var(--gold-soft); color: #7a5a00; } .pill.grey { background: #eef0ee; color: var(--muted); } .pill.red { background: var(--red-soft); color: var(--red); } .pill.blue { background: #e7edfd; color: var(--blue); }
.bar { height: 8px; border-radius: 99px; background: #e8ece9; overflow: hidden; } .bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-2), #2fa36b); transition: width .6s; }
.bar.gold > span { background: linear-gradient(90deg, #e3b23c, var(--gold)); }
.field { display: grid; gap: 4px; margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid #cbd4ce; border-radius: 12px; background: #fff; width: 100%; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.err { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14.5px; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; font-size: 14.5px; }
.seg { display: flex; background: #e9ece9; border-radius: 12px; padding: 3px; gap: 3px; margin: 0 0 14px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 8px 4px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--green-soft); color: var(--green); display: inline-grid; place-items: center; font: 700 18px var(--serif); overflow: hidden; }
.av.lg { width: 76px; height: 76px; font-size: 30px; border: 3px solid #fff; box-shadow: var(--shadow); } .av.sm { width: 30px; height: 30px; font-size: 13px; } .av img { width: 100%; height: 100%; object-fit: cover; }
.avs { display: flex; } .avs .av { margin-left: -8px; border: 2px solid #fff; } .avs .av:first-child { margin-left: 0; }

/* home */
.hero { background: radial-gradient(120% 120% at 100% 0%, #1d8a5a 0%, var(--green) 55%, #083f28 100%); color: #fff; border-radius: 22px; padding: 18px; margin: 0 0 14px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(11,93,59,.28); }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.06); }
.hero .name { font: 700 21px var(--serif); line-height: 1.2; } .hero .sub { font-size: 13.5px; opacity: .88; }
.hero .rank { display: inline-flex; gap: 5px; align-items: center; background: rgba(255,255,255,.16); border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.hero .lv { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; font-size: 14px; } .hero .lv b { font: 800 28px var(--num); }
.hero .bar { background: rgba(255,255,255,.2); } .hero .bar > span { background: linear-gradient(90deg, #f6d27a, #e3b23c); }
.hero .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hero .chip { background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px; text-align: center; } .hero .chip b { display: block; font: 800 20px var(--num); } .hero .chip span { font-size: 11.5px; opacity: .9; }
.daily { display: flex; gap: 14px; align-items: center; }
.ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; flex: none; background: conic-gradient(var(--green) calc(var(--p) * 1%), #e5ebe7 0); display: grid; place-items: center; }
.ring > div { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 17px var(--num); }
.chal { border: 1.5px solid #f0d58a; background: linear-gradient(180deg, #fffaf0, #fff); }
.chal .qprev { background: #fff; border: 1px dashed #e8cf86; border-radius: 12px; padding: 10px 12px; margin: 8px 0 10px; font-size: 15px; overflow-x: auto; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); } .stat b { display: block; font: 800 23px var(--num); } .stat span { font-size: 12.5px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: grid; justify-items: center; gap: 2px; width: 78px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.2; }
.badge i { font-style: normal; font-size: 26px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); box-shadow: inset 0 0 0 1px #f1dfa6; }
.badge.off i { filter: grayscale(1); opacity: .35; background: #eef0ee; box-shadow: none; } .badge.off { opacity: .7; }

/* feed */
.post { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); } .post:first-child { border-top: 0; padding-top: 2px; }
.post .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--gold-soft); }
.post .who { font-weight: 700; } .post .what { font-size: 14.5px; } .post .when { font-size: 12px; color: var(--muted); }
.kudo { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 2px 10px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.kudo.on { background: var(--green-soft); color: var(--green); border-color: #b9dcc8; font-weight: 700; }
.post .body { white-space: pre-wrap; background: #f7f8f7; border-radius: 12px; padding: 8px 10px; margin-top: 4px; font-size: 15px; }

/* people */
.person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; } .person:first-child { border-top: 0; }
.person .nm { font-weight: 700; } .person .hl { font-size: 13.5px; color: var(--muted); }
.lb { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .lb:first-child { border-top: 0; }
.lb .pos { width: 28px; text-align: center; font: 800 17px var(--num); color: var(--muted); } .lb.me { background: var(--green-soft); border-radius: 12px; padding-left: 6px; padding-right: 6px; }
.lb .pts { font: 800 16px var(--num); }

/* practice */
.tracks { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; }
.tracks button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tracks button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lesson { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; } .lesson:first-child { border-top: 0; }
.lesson .num { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font: 800 16px var(--num); }
.lesson .num.full { background: var(--green); color: #fff; }
.lesson .t { font-weight: 700; font-size: 15px; } .lesson .bar { margin-top: 6px; height: 6px; }
.lbox { border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; font-size: 15px; overflow-x: auto; }
.lbox h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.lbox.rules { background: var(--green-soft); } .lbox.rules h4 { color: var(--green); }
.lbox.ex { background: #eef3fd; } .lbox.ex h4 { color: var(--blue); }
.lbox.warn { background: var(--red-soft); } .lbox.warn h4 { color: var(--red); }
.lbox ul { margin: 0; padding-left: 20px; } .lbox li { margin: 3px 0; }
.setbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.setbtns button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; font-weight: 700; font-size: 14px; display: grid; gap: 2px; }
.setbtns button span { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.setbtns button.c { border-color: #f0b4ad; background: #fff7f6; }
.sprint { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .sprint:first-child { border-top: 0; }

/* quiz player */
.qtop { position: sticky; top: 0; z-index: 25; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.qtop .x { border: 0; background: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; box-shadow: var(--shadow); }
.qtop .bar { flex: 1; height: 10px; }
.combo { font-family: var(--num); font-weight: 800; color: #c2410c; white-space: nowrap; font-size: 15px; } .combo.hot { animation: pop .4s; }
.clock { font: 700 15px var(--num); font-variant-numeric: tabular-nums; background: var(--gold-soft); color: #6b5000; border-radius: 8px; padding: 3px 9px; }
.clock.late { background: var(--red-soft); color: var(--red); }
.qcard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin-top: 14px; }
.qcard .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.qcard .instr { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.qcard .q { font-size: 19px; line-height: 1.6; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.qcard .fig { display: block; margin: 10px auto; width: 300px; max-width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.qcard .form { font-size: 12.5px; color: #7a3b00; background: #fff6ec; border-radius: 10px; padding: 6px 10px; margin-top: 8px; }
.answer { display: flex; gap: 8px; margin-top: 16px; }
.answer input { flex: 1; min-width: 0; font: 600 20px var(--sans); padding: 12px 14px; border: 2px solid #cbd4ce; border-radius: 14px; }
.answer input:focus { outline: none; border-color: var(--green); }
.reveal { margin-top: 14px; border-radius: 16px; padding: 14px; animation: rise .25s ease-out; }
.reveal.right { background: var(--green-soft); } .reveal.wrong { background: var(--red-soft); } .reveal.self { background: #f2f4f2; }
.reveal .verdict { font: 400 22px var(--cele); letter-spacing: .3px; margin-bottom: 4px; } .reveal.right .verdict { color: var(--green); } .reveal.wrong .verdict { color: var(--red); }
.reveal .key { font-size: 19px; overflow-x: auto; }
.selfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.xpfly { position: fixed; left: 50%; top: 40%; transform: translate(-50%, 0); font: 800 30px var(--num); color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,.15); pointer-events: none; animation: fly 1s ease-out forwards; z-index: 60; }
.done { text-align: center; padding: 26px 10px; }
.done .big { font: 800 58px var(--num); color: var(--green); line-height: 1; }
.done .trophy { font-size: 64px; animation: pop .6s; }
@keyframes fly { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* member card */
.mcard { position: relative; border-radius: 22px; padding: 18px; color: #fff; overflow: hidden; aspect-ratio: 1.586; max-width: 420px; margin: 0 auto 14px;
  background: radial-gradient(140% 120% at 0% 0%, #1f8f5e 0%, #0b5d3b 45%, #062e1e 100%); box-shadow: 0 16px 40px rgba(6,46,30,.35); display: flex; flex-direction: column; }
.mcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px); }
.mcard::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(227,178,60,.15); }
.mcard > * { position: relative; z-index: 1; }
.mcard .mh { display: flex; justify-content: space-between; align-items: flex-start; font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700; opacity: .92; }
.mcard .mh .gold { color: #f3cf74; }
.mcard .mb { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.mcard .mb .av { width: 64px; height: 64px; border: 2px solid #f3cf74; font-size: 26px; background: rgba(255,255,255,.15); color: #fff; }
.mcard .mn { font: 700 19px var(--serif); line-height: 1.15; } .mcard .mr { color: #f3cf74; font-weight: 700; font-size: 13px; }
.mcard .mf b { font-family: var(--num); }
.mcard .mf { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; font-size: 11px; opacity: .92; } .mcard .mf b { display: block; font-size: 13px; letter-spacing: .6px; }
.mcard .qr { background: #fff; border-radius: 8px; padding: 4px; width: 66px; height: 66px; } .mcard .qr img, .mcard .qr svg { width: 100%; height: 100%; display: block; }

/* students */
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 6px; }
.rate div { border-radius: 12px; padding: 8px 6px; text-align: center; background: #f2f4f2; color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.rate div b { display: block; font: 800 21px var(--num); } .rate div.on { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(11,93,59,.25); } .rate div.done { background: var(--green-soft); color: var(--green); }
.copy { display: flex; gap: 6px; align-items: center; background: #f4f6f4; border-radius: 12px; padding: 6px 6px 6px 12px; margin: 6px 0; font-size: 13.5px; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.stu { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; } .stu:first-child { border-top: 0; }

/* sheet (bottom drawer) */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,20,15,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: #cfd6d1; margin: 4px auto 10px; }
.sheet h2 { font: 700 20px var(--serif); margin: 0 0 12px; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .6; } }
#toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14.5px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; }
.signin { max-width: 420px; margin: 8vh auto 0; }
.signin .logo { width: 72px; height: 72px; font-size: 38px; border-radius: 22px; }
.signin h1 { font: 700 26px var(--serif); text-align: center; margin: 10px 0 2px; }
.katex { font-size: 1.05em; }
.q .katex-display, .key .katex-display { margin: .3em 0; }

/* registration: a card not yet issued */
.mcard.pend { filter: saturate(.55); }
.mcard .stamp { position: absolute; z-index: 2; right: 16px; top: 40%; transform: rotate(-12deg); border: 3px solid #f3cf74; color: #f3cf74; font: 800 20px var(--sans); letter-spacing: 3px; padding: 2px 12px; border-radius: 8px; opacity: .9; }

/* font option B: celebrations in Koulen, the member card title in Moul */
.done h2 { font: 400 26px/1.3 var(--cele) !important; letter-spacing: .3px; }
.mcard .mh .cere { font: 400 13px/1.3 var(--cere); letter-spacing: 0; text-align: right; color: #fff; }
.mcard .mh .cere small { display: block; font: 700 9.5px var(--sans); letter-spacing: 1.2px; opacity: .85; }
.mcard .mh .pw { font-size: 9.5px; letter-spacing: 1.4px; }
.mcard .mr { font-family: "Kantumruy Pro", var(--sans); }
.hero .rank, .pill { font-family: var(--sans); }

/* sponsor credit: quiet, at the bottom, never competing with the group name */
.sponsor { text-align: center; color: #9aa59f; font: 400 12px var(--sans); margin: 22px 0 4px; letter-spacing: .2px; }
.sponsor::before, .sponsor::after { content: ""; display: inline-block; width: 18px; height: 1px; background: #d3d9d5; vertical-align: middle; margin: 0 8px; }
.mcard .spon { font: 400 9px var(--sans); color: rgba(255,255,255,.5); letter-spacing: .3px; margin-top: 6px; }

/* practice helpers: lesson tip and maths keys */
.qcard .meta { align-items: center; }
.tipbtn { margin-left: auto; border: 1px solid #f0d58a; background: var(--gold-soft); color: #7a5a00; border-radius: 99px; padding: 3px 10px; font: 700 12.5px var(--sans); }
.mkeys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.mkeys button { border: 1px solid var(--line); background: #f7f8f7; border-radius: 8px; padding: 7px 0; font: 600 16px var(--sans); color: var(--ink); min-width: 0; }
.mkeys button:active { background: var(--green-soft); }
@media (max-width: 360px) { .mkeys { grid-template-columns: repeat(5, 1fr); } }
.install { border: 1.5px solid #b9dcc8; background: linear-gradient(180deg, #f1f8f3, #fff); }
.sharebtn { margin-top: 12px; width: 100%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; border-radius: 12px; padding: 9px; font: 700 14px var(--sans); }

/* mock exams */
.qcard .ctx { background: #f2f6f3; border-left: 4px solid var(--green); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; overflow-x: auto; }
.qcard .qimg { width: 100%; max-height: none; }
.verdict2 { font: 400 26px var(--cele); color: var(--red); margin: 6px 0 0; } .verdict2.ok { color: var(--green); }
.mockrow { padding: 12px 0; border-top: 1px solid var(--line); } .mockrow:first-child { border-top: 0; padding-top: 2px; }
.mnum { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--gold-soft); color: #7a5a00; display: grid; place-items: center; font: 800 16px var(--num); }
.mnum.full { background: var(--green); color: #fff; }
.mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; } .mbtns .btn { width: 100%; }
