/* Phiếu tập tô chữ, nối điểm: A4 đứng */
@page { size: A4 portrait; margin: 0; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Nunito", "Segoe UI", system-ui, sans-serif; color: #3d2c5e; background: #e9e4dc; }
.toolbar { display: flex; gap: 10px; justify-content: center; padding: 12px; }
.toolbar button { font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; border: 2px solid #3d2c5e; background: #fff; cursor: pointer; }
.sheet {
  width: 210mm; min-height: 297mm; max-width: calc(100vw - 24px);
  margin: 0 auto 24px; padding: 12mm 10mm; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; gap: 4mm;
}
.sheet header h1 { margin: 0; font-size: 9mm; }
.sheet header p { margin: 2mm 0 0; font-size: 4.5mm; }
.sheet footer { margin-top: auto; text-align: center; font-size: 3.5mm; opacity: .6; }
.ws-row { width: 100%; height: auto; display: block; border-bottom: .3mm solid #eee; }
.ws-row .guide { stroke: #f2a6b5; stroke-width: 1.5; }
.ws-row .guide.mid { stroke-dasharray: 6 6; stroke: #c9b8e8; }
.ws-row .guide.base { stroke: #8fb7e8; stroke-width: 2; }
.ws-row path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ws-row .solid { stroke: #3d2c5e; stroke-width: 6; }
.ws-row .dotted { stroke: #9a9a9a; stroke-width: 4; stroke-dasharray: .1 11; }
.dots-sheet { width: 100%; height: auto; flex: 1; }
.dots-sheet text { font-size: 3.4px; font-weight: 700; fill: #3d2c5e; }
.dots-sheet circle { fill: #3d2c5e; }
.dots-sheet .start { fill: #06a77d; }
@media print {
  body { background: #fff; }
  .no-print { display: none; }
  .sheet { margin: 0; box-shadow: none; max-width: none; }
}
