:root { --navy: #0b2766; --gold: #c9971a; --ink: #14244a; --ink2: #55627f; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); background: #eef2f8; }
.dk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #dfe5f0; }
.dk h1 { margin: 0; font-size: 1.2rem; }
.dk p { margin: 0; color: var(--ink2); }
.dk select, .dk button { min-height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid #c9d3e6; background: #fff; font: inherit; }
.dk button { margin-left: auto; background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; cursor: pointer; }
.luoi-the { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; max-width: 900px; margin: 0 auto; }
.the { position: relative; display: grid; grid-template-columns: 1fr 38mm; gap: 4mm; align-items: center; height: 64mm; padding: 6mm 6mm 6mm 7mm;
  background: #fff; break-inside: avoid; }
.the::before { content: ""; position: absolute; inset: 2.2mm; border: 1px solid var(--gold); pointer-events: none; }
.the .bt { width: 30mm; height: auto; margin-bottom: 2mm; }
.the .moi { margin: 0; font-size: 8.5pt; color: var(--ink2); }
.the .ten { margin: 1mm 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 13.5pt; line-height: 1.2; color: var(--ink); }
.the .cv { margin: 1mm 0 0; font-size: 8.5pt; line-height: 1.35; color: var(--ink2); }
.the .hd { margin: 2.5mm 0 0; font-size: 7.5pt; color: var(--navy); font-weight: 600; }
.the canvas { width: 38mm; height: 38mm; image-rendering: pixelated; }
.the .qr { text-align: center; }
.the .qr small { display: block; font-size: 6.5pt; color: var(--ink2); margin-top: 1mm; }
@page { size: A4 portrait; margin: 10mm; }
@media print {
  body { background: #fff; }
  .dk { display: none; }
  .luoi-the { padding: 0; gap: 4mm; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
