/* Nâng giá trị Bé Vui Học Plus (11/11/2026): Ôn thi cuối kỳ 1, Bài hôm nay, phiếu in, báo cáo tuần. Tách file để không đụng app.css. */

/* Ô Ôn thi trên bản đồ, thẻ đầu Học cùng lớp */
.island.examisl { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.5), transparent 60%), linear-gradient(135deg, #ff922b, #f76707); }
.exambanner { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 700px; margin: 4px auto 6px; padding: 10px 16px 10px 10px;
  border-radius: 22px; background: linear-gradient(135deg, #ff922b, #f76707); color: #fff; text-align: left; box-shadow: 0 5px 0 #d9480f; }
.exambanner img { width: 52px; height: 52px; flex: none; }
.exambanner span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.exambanner b { font-size: 1.15em; }
.exambanner small { font-weight: 700; opacity: .95; }
.exambanner i { font-style: normal; font-size: 1.8em; font-weight: 800; }

/* Danh sách đề */
.examnote { max-width: 640px; margin: 0 auto 12px; text-align: center; color: var(--ink-soft); font-weight: 600; }
.examlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
@media (max-width: 520px) { .examlist { grid-template-columns: 1fr; } }
.examcard { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; text-align: left;
  background: rgba(255,255,255,.94); border-radius: 22px; padding: 12px 14px; box-shadow: 0 5px 0 rgba(0,0,0,.08); border: 3px solid transparent; min-width: 0; }
.examcard img { grid-row: 1 / span 3; width: 60px; height: 60px; }
.examcard.mock { border-color: #f76707; background: #fff4e6; }
.examcard .ename { font-weight: 800; font-size: 1.08em; }
.examcard .emeta { color: var(--ink-soft); font-weight: 600; font-size: .88em; }
.examcard .escore, .scorecard .escore { color: #2b8a3e; font-weight: 800; font-size: .9em; }
.examcard .etry { color: #e8590c; font-weight: 800; font-size: .88em; }
.exampill { background: #fff4e6; }

/* Kết quả */
.scorecard { max-width: 520px; width: 100%; margin: 0 auto; background: rgba(255,255,255,.95); border-radius: 26px; padding: 16px; text-align: center; box-shadow: 0 6px 0 rgba(0,0,0,.08); }
.scorecard p { margin: 6px 0 0; font-weight: 700; }
.bigscore b { font-size: 4em; line-height: 1; color: #f76707; }
.bigscore span { font-weight: 800; color: var(--ink-soft); margin-left: 4px; }
.scorecard .bigstars img { width: 64px; }
.secrows { display: flex; flex-direction: column; gap: 8px; max-width: 620px; width: 100%; margin: 0 auto 14px; }
.secrow { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94); border-radius: 18px; padding: 8px 12px; flex-wrap: wrap; }
.secrow .sname { flex: 1; min-width: 150px; font-weight: 800; }
.secrow .snum { font-weight: 800; min-width: 40px; text-align: center; }
.secrow.weak { border-left: 6px solid #fa5252; }
.secrow.good { border-left: 6px solid #40c057; }
.secrow .sok { color: #2b8a3e; font-weight: 800; }

/* Màn "dành cho Plus" của bé */
.plusonly .plusonlytext { max-width: 520px; margin: 0; font-weight: 600; }

/* Ôn bài (/review) trên điện thoại: 4 tiếng dài (chanh, chảnh…) tràn ngang; xếp 2 cột (lộ ra khi bấm "Luyện lại phần này"). */
@media (max-width: 520px) { .review .choices.syll.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Phiếu bài tập in A4 ---------- */
.wsctl { max-width: 794px; width: 100%; margin: 0 auto 14px; }
.wsweek { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.wssel { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 2px solid var(--line); font: inherit; font-weight: 700; padding: 0 10px; background: #fff; }
.wsinfo { margin: 6px 0; font-size: .92em; }
.wsans { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 6px 0; }
.wslock { background: #fff4e6; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ws-sheets { --z: 1; width: 100%; max-width: 794px; margin: 0 auto; }
.ws-locked { max-height: 70vh; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(#000 45%, transparent 95%); mask-image: linear-gradient(#000 45%, transparent 95%); pointer-events: none; }
.ws-page { zoom: var(--z); width: 210mm; height: 297mm; box-sizing: border-box; padding: 11mm 13mm 9mm; margin: 0 auto 18px; background: #fff; color: #111;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 3.2mm; overflow: hidden; font-size: 13.5pt; line-height: 1.35; text-align: left; }
.ws-page header { display: grid; grid-template-columns: auto 1fr; column-gap: 4mm; border-bottom: .6mm solid #111; padding-bottom: 2mm; }
.ws-brand { grid-row: 1 / span 2; font-weight: 800; font-size: 11pt; align-self: center; }
.ws-ttl { font-weight: 800; font-size: 16pt; text-align: right; }
.ws-sub { font-size: 10.5pt; text-align: right; color: #333; }
.ws-name { font-size: 11pt; }
.ws-page u { text-decoration: none; display: inline-block; border-bottom: .35mm dotted #111; white-space: pre; min-width: 8mm; }
.ws-page footer { margin-top: auto; font-size: 8.5pt; color: #555; text-align: center; border-top: .3mm solid #bbb; padding-top: 1.5mm; }
.ws-sec h3 { margin: 0 0 1.6mm; font-size: 13pt; }
.ws-sec h3 b { color: #111; }
.ws-page img { width: 15mm; height: 15mm; object-fit: contain; }
/* Tô chữ: dòng kẻ 3 đường (trên, giữa nét đứt, chân chữ) */
.ws-trace { display: flex; flex-direction: column; gap: 1.5mm; }
.ws-line { display: flex; align-items: flex-end; gap: 4.5mm; height: 15mm; padding: 0 2mm; font-size: 30pt; line-height: 1; overflow: hidden;
  background: linear-gradient(#999, #999) 0 2.2mm / 100% .3mm no-repeat, repeating-linear-gradient(90deg, #aaa 0 1.4mm, transparent 1.4mm 2.8mm) 0 7.6mm / 100% .25mm no-repeat, linear-gradient(#333, #333) 0 13mm / 100% .4mm no-repeat; }
.ws-line span { padding-bottom: 2mm; font-weight: 600; }
.ws-model { color: #111; }
.ws-ghost { color: #c9c9c9; }
/* Nối */
.ws-match { display: flex; justify-content: space-around; }
.ws-col { display: flex; flex-direction: column; gap: 2.5mm; }
.ws-mi, .ws-mw { display: flex; align-items: center; gap: 3mm; height: 15mm; }
.ws-mw b { font-size: 18pt; }
.ws-page .dot { display: inline-block; width: 2.6mm; height: 2.6mm; border-radius: 50%; background: #111; }
/* Điền */
.ws-bank { font-size: 11pt; margin-bottom: 1.5mm; }
.ws-bank span { display: inline-block; border: .3mm solid #111; border-radius: 2mm; padding: 0 2.5mm; margin: 0 1mm; font-weight: 700; font-size: 13pt; }
.ws-fill { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.ws-fi { display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.ws-fi img { width: 18mm; height: 18mm; }
.ws-blank { font-size: 17pt; font-weight: 700; }
.ws-circle { display: flex; flex-wrap: wrap; gap: 3mm 7mm; font-size: 17pt; font-weight: 700; padding: 1mm 2mm; }
.ws-circle.nums { margin-bottom: 1.5mm; }
.ws-cloze { margin: 0; padding-left: 6mm; display: flex; flex-direction: column; gap: 2mm; }
.ws-opt { color: #333; font-size: 11.5pt; }
/* Toán */
.ws-ops { display: grid; gap: 3mm 6mm; font-size: 15pt; font-weight: 600; }
.ws-ops.c2 { grid-template-columns: repeat(2, 1fr); }
.ws-ops.c3 { grid-template-columns: repeat(3, 1fr); }
.ws-ansbox { display: inline-block; width: 10mm; height: 9mm; border: .35mm solid #111; border-radius: 1.5mm; vertical-align: middle; }
.ws-ansbox.sm { width: 7mm; height: 7mm; }
.ws-count { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm; }
.ws-cbox { display: flex; align-items: center; justify-content: space-between; gap: 2mm; border: .3mm solid #999; border-radius: 3mm; padding: 2mm; }
.ws-pics { display: flex; flex-wrap: wrap; gap: 1mm; max-width: 62mm; }
.ws-pics img { width: 9mm; height: 9mm; }
.ws-seq { display: flex; gap: 2.5mm; align-items: center; margin-bottom: 2mm; font-size: 15pt; font-weight: 700; }
.ws-seq > span { min-width: 10mm; height: 9mm; display: inline-grid; place-items: center; border: .3mm solid #999; border-radius: 1.5mm; }
.ws-seq.ten > span { min-width: 13mm; }
.ws-cmpg { display: flex; flex-direction: column; gap: 2mm; }
.ws-cmpg > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3mm; border: .3mm solid #ccc; border-radius: 3mm; padding: 1.5mm; }
.ws-shapes { width: 150mm; height: 51mm; display: block; margin: 0 auto 2mm; }
.ws-pos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4mm; }
.ws-pos p { margin: 1mm 0 0; font-size: 12pt; }
.ws-posgrid { display: grid; grid-template-areas: ". t ." "l c r" ". b ."; grid-template-columns: repeat(3, 14mm); justify-content: center; gap: 1mm; }
.ws-posgrid img { width: 13mm; height: 13mm; }
.ws-posgrid .p-top { grid-area: t; } .ws-posgrid .p-left { grid-area: l; } .ws-posgrid .p-center { grid-area: c; } .ws-posgrid .p-right { grid-area: r; } .ws-posgrid .p-bottom { grid-area: b; }
.ws-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.ws-col1 span { font-weight: 700; font-size: 13pt; }
.ws-grid { display: grid; grid-template-columns: repeat(3, 7mm); margin-top: 1.5mm; border-top: .25mm solid #aaa; border-left: .25mm solid #aaa; width: max-content; }
.ws-grid i { height: 7mm; border-right: .25mm solid #aaa; border-bottom: .25mm solid #aaa; }
.ws-rulers { display: flex; flex-direction: column; gap: 2mm; }
.ws-rulers > div { display: flex; align-items: center; gap: 5mm; }
.ws-clocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm; }
.ws-clocks > div { display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.ws-clock { width: 30mm; height: 30mm; }
.ws-word p { margin: 0 0 2mm; }
.ws-answers ol { margin: 0; padding-left: 6mm; }
.ws-answers li { margin-bottom: 1.5mm; }
.ws-ansblk h3 { margin: 0 0 1.5mm; }
.ws-tip { font-size: 11pt; color: #333; }
/* Thẻ "Dành cho Plus" trong Góc bố mẹ */
.pxrows { display: flex; flex-direction: column; gap: 8px; }
.pxrow { display: flex; align-items: center; gap: 12px; text-align: left; background: #f3f6fb; border-radius: 16px; padding: 8px 12px; min-height: 56px; }
.pxrow img { width: 40px; height: 40px; flex: none; }
.pxrow span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pxrow small { color: var(--ink-soft); font-weight: 600; }
.pxrow i { font-style: normal; font-weight: 800; font-size: 1.3em; }

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; height: auto; }
  .sky, .buddy, .overlay, .toast, .install-banner { display: none !important; }
  .wsscreen > :not(.ws-sheets) { display: none !important; }
  #app, .screen, .wsscreen { padding: 0 !important; margin: 0 !important; max-width: none !important; animation: none !important; display: block !important; }
  .ws-sheets { max-width: none; }
  .ws-page { zoom: 1 !important; margin: 0 !important; box-shadow: none !important; break-after: page; page-break-after: always; }
  .ws-page:last-child { break-after: auto; page-break-after: auto; }
}

/* Học cùng lớp: bài Plus (Lớp 1 tập 2, Lớp 2) */
.clsplus { font-style: normal; font-size: .8em; font-weight: 800; color: #e8590c; background: #fff4e6; border-radius: 999px; padding: 1px 10px; margin-left: auto; white-space: nowrap; }
.clscard.pluslock .clsacts { opacity: .6; }
.clsplusnote { max-width: 700px; margin: 2px auto 4px; text-align: center; font-weight: 700; color: #e8590c; }

/* Bài hôm nay của con (bản đồ) */
.todaycard { background: linear-gradient(135deg, #fff9db, #fff4e6); border: 3px solid #ffd43b; border-radius: 24px; padding: 10px 12px 12px; margin: 8px 0 4px; box-shadow: 0 5px 0 rgba(0,0,0,.07); }
.todaycard.all { border-color: #8ce99a; background: linear-gradient(135deg, #ebfbee, #f4fce3); }
.tdhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tdhead b { font-size: 1.12em; }
.tdnum { font-weight: 800; color: #e8590c; background: #fff; border-radius: 999px; padding: 2px 12px; }
.todaycard.all .tdnum { color: #2b8a3e; }
.tdacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tdact { position: relative; display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; border-radius: 16px; padding: 6px 10px 6px 6px; min-height: 52px; font-weight: 700; font-size: .9em; box-shadow: 0 3px 0 rgba(0,0,0,.06); }
.tdact img { width: 38px; height: 38px; flex: none; }
.tdact span { min-width: 0; overflow-wrap: anywhere; }
.tdact.ok { background: #ebfbee; color: #2b8a3e; }
.tdact i { font-style: normal; margin-left: auto; font-weight: 800; color: #2b8a3e; }
/* Báo cáo tuần */
.wkctl { max-width: 720px; width: 100%; margin: 0 auto 12px; }
.wkwrap { max-width: 720px; width: 100%; margin: 0 auto; }
.wkimg { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.15); background: #fff; min-height: 200px; }
