.topbar[hidden] { display: none; }
body.teacher { font-size: 16px; }
.tbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.tag-mode { font-size: 12px; font-weight: 800; background: var(--mint); color: var(--navy); border-radius: 999px; padding: 2px 10px; }
.tag-mode.demo { background: var(--yellow); }
.sess { display: flex; gap: 6px; flex: 1; }
.sess a { color: #C9D6EE; text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.sess a.on { background: #fff; color: var(--navy); }
.tright { display: flex; align-items: center; gap: 8px; }
.tright .muted { color: #9FB3D9; font-size: 14px; }
.twrap { max-width: 1400px; margin: 0 auto; padding: 16px; }
.tgrid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
.col { display: grid; gap: 0; }
.small { font-size: 14px; }
.qrbox { width: 220px; margin: 0 auto; }
.qrbox svg, #qrBig svg { width: 100%; height: auto; display: block; }
.url { text-align: center; word-break: break-all; font-weight: 700; }
.mbtns { display: grid; gap: 8px; margin-bottom: 8px; }
.mbtn { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; cursor: pointer; }
.mbtn small { display: block; color: var(--muted); font-weight: 700; }
.mbtn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.mb-ic { width: 40px; height: 40px; }
.switch { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 700; cursor: pointer; }
.switch input { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); }
.card .chips { margin: 10px 0; }
.card .chip { font-size: 14px; min-height: 36px; padding: 6px 12px; }
.le { border-left: 0; background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.le-h { font-weight: 700; margin-bottom: 6px; }
.le-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; }
.le-row a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-add { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; }
.le-add input { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.le-add .btn { min-height: 40px; }
.canva-link { display: grid; gap: 6px; margin-top: 10px; }
.canva-link input { min-height: 44px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stampstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ss { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; background: #F3F5FA; border-radius: 12px; padding: 8px 10px; }
.ss-ic { width: 36px; height: 36px; }
.ss small { font-weight: 700; color: var(--muted); }
.ssbar { height: 8px; background: #E3E7F0; border-radius: 999px; overflow: hidden; }
.ssbar i { display: block; height: 100%; background: var(--c); transition: width .4s; }
.ss b { font-size: 20px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.mem { display: flex; align-items: center; gap: 6px; background: #F3F5FA; border-radius: 12px; padding: 4px 8px; font-size: 14px; font-weight: 700; }
.mem span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem em { font-style: normal; background: var(--navy); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.mem.off { opacity: .45; }
.mem-av { width: 30px; height: 30px; }
.tv { margin-bottom: 10px; }
.tv p { margin: 0 0 4px; }
.tvbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #EEF1F6; }
.tvbar i { display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; }
.tboard { columns: 3 220px; column-gap: 10px; max-height: 520px; overflow: auto; }
.note.hid, .tg.hid { opacity: .4; outline: 2px dashed var(--coral); }
.tgal { display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.tg { display: grid; gap: 2px; background: #F3F5FA; border-radius: 12px; padding: 10px 12px; }
.tg a { text-decoration: none; }
.danger { border: 2px solid #FFD9D9; }
.modal-box.full { width: min(1400px, 96vw); max-height: 94vh; }
.bigqr { text-align: center; }
.bigqr h1 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 40px; }
.bq-ic { width: 80px; height: 80px; }
#qrBig { width: min(62vh, 560px); margin: 10px auto; }
.url.big { font-size: 34px; color: var(--navy); }
.bigview h1 { font-size: 36px; }
.board.big { columns: 4 260px; }
.board.big .note p { font-size: 24px; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }
.games .row { margin-bottom: 6px; }
.gm { background: #F7F3FF; border-radius: 12px; padding: 8px 12px; margin-top: 8px; }
.gm summary { cursor: pointer; }
.gm ol, .gm .qs { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.gm-links { flex-wrap: wrap; }
.gm-links .btn { min-height: 38px; font-size: 14px; padding: 6px 10px; }
.btn.mini { min-height: 26px; padding: 2px 8px; font-size: 12px; border-radius: 8px; }
body.teacher { padding-bottom: 20px; }
.dash-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.dash-nums div { background: var(--navy); color: #fff; border-radius: 16px; padding: 10px; text-align: center; display: grid; }
.dash-nums b { font-size: 30px; color: #FFC93C; line-height: 1.1; }
.dash-nums span { font-size: 13px; color: #C9D6EE; }
.dash-nums.big { grid-template-columns: repeat(3, 1fr); }
.dash-nums.big b { font-size: 72px; }
.dash-nums.big span { font-size: 22px; }
.dash-energy { height: 26px; background: #EEF1F6; border-radius: 999px; overflow: hidden; margin: 6px 0 16px; }
.dash-energy i { display: block; height: 100%; background: linear-gradient(90deg, #FF6B6B, #FFC93C, #2EC4B6, #5AA9E6, #B892FF); transition: width .8s; }
.dash-missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dm { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); border-radius: 16px; padding: 10px 14px; }
.dm-ic { width: 60px; height: 60px; }
.dm small { font-weight: 800; color: var(--muted); }
.dm b { display: block; font-size: 18px; }
.dm strong { font-size: 40px; color: var(--navy); }
.dm strong small { font-size: 16px; }
.dashview .rank li { font-size: 20px; }
#bgmBtn.primary { background: var(--purple); border-color: var(--purple); color: var(--navy); }
.active { margin: 6px 0; font-size: 14px; text-align: center; }
.active.on { background: #E3F8F5; border-radius: 10px; padding: 6px; color: #12907F; }
