/* Image QRicker maker: the editor on the left, the A4 sheet on the right. All sticker sizes are real millimetres. */
.maker { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 28px; align-items: start; padding: 8px 0 60px; }
.maker h1 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.maker .intro { color: var(--soft); margin: 8px 0 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field > .lab { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--soft); }
input[type=text], input[type=url], textarea { font: inherit; font-size: 15px; padding: 9px 11px; border: 1.5px solid #cfc8bb; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; min-height: 74px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.opens { font-size: 13.5px; background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--soft); }
.opens b { color: var(--ink); }
.msg { font-size: 13.5px; color: #b3261e; min-height: 1.2em; }
.msg.ok { color: #1f6f3f; }
.linkbtn { background: none; border: 0; font: inherit; font-size: 13px; color: var(--soft); text-decoration: underline; cursor: pointer; padding: 0; }
.printbar { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.printbar .hint { font-size: 12.5px; color: var(--soft); }
.sizes { display: flex; gap: 14px; font-size: 13.5px; }

.stage { background: #d9d3c7; border-radius: 16px; padding: 18px; overflow: hidden; }
.sheet { width: 210mm; height: 297mm; background: #fff; display: grid; grid-template-columns: repeat(2, 80mm); grid-auto-rows: 93mm; gap: 4mm 12mm;
         align-content: center; justify-content: center; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.2); zoom: var(--zoom, 0.5);
         -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tile { position: relative; outline: 0.2mm solid #c8c8c8; overflow: hidden; background: #fff; padding: 4mm 4mm 0 4mm; cursor: pointer; text-align: left; }
.tile .pic { width: 72mm; height: 72mm; background: #f1ede6; display: flex; align-items: center; justify-content: center; color: #9a917f; font-size: 11pt; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .strip { height: 17mm; display: flex; align-items: center; justify-content: space-between; }
.tile .qr { display: block; flex: none; margin-left: -0.6mm; }
.tile .date { font-family: "Bradley Hand", "Noteworthy", "Marker Felt", "Segoe Print", "Comic Sans MS", cursive; font-weight: 700; font-size: 12pt; color: #222;
              white-space: nowrap; margin-right: 1.5mm; transform: rotate(-2deg); }
.tile.sel { outline: 0.8mm solid var(--accent); }
.tile.empty { outline: 0.4mm dashed #b9b1a2; display: flex; align-items: center; justify-content: center; color: #9a917f; font-size: 13pt; padding: 0; }
.tile.empty.sel { outline: 0.8mm dashed var(--accent); }

@media (max-width: 860px) { .maker { grid-template-columns: 1fr; } }

@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .top, .maker > .side, .foot { display: none !important; }
  .wrap, .maker, .stage { display: block; margin: 0; padding: 0; max-width: none; background: none; border-radius: 0; }
  .sheet { zoom: 1; box-shadow: none; }
  .tile { cursor: default; }
  .tile.sel { outline: 0.2mm solid #c8c8c8; }
  .tile.empty { visibility: hidden; }
}
