/* FIND IT: global styles + print stylesheet.
   Palette reused from docs/find_it.html for visual consistency. */

:root {
  --ink: #0d0d0d;
  --paper: #faf6ee;
  --yellow: #ffe033;
  --red: #e8291c;
  --blue: #1a4ed8;
  --teal: #00b4a0;
  --green: #1a8c4e;
  --shadow: 4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --border: 2.5px solid var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  background-image: radial-gradient(circle, #d4ccbc 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ── Toolbar ── */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--yellow);
}

.toolbar-logo {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: var(--yellow);
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 var(--red);
}

.toolbar-logo span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-shadow: none;
  margin-left: 4px;
}

.toolbar-actions { display: flex; gap: 12px; align-items: center; }

.save-status {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}
.save-status.saved { color: var(--teal); }
.save-status.saving { color: var(--yellow); }

/* ── Buttons ── */
.btn {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  padding: 7px 16px;
  border: 2.5px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: none !important; }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  padding: 5px 12px;
}
.btn-ghost:hover { color: white; border-color: white; }

.btn-pdf {
  background: var(--red);
  color: white;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  padding: 6px 16px;
}
.btn-pdf:hover {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transform: translate(-1px, -1px);
}
.btn-pdf[disabled] { opacity: 0.6; cursor: progress; }

.btn-print {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  padding: 6px 16px;
}
.btn-print:hover {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transform: translate(-1px, -1px);
}
.btn-print[disabled] { opacity: 0.6; cursor: progress; }

.panel .btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.panel .btn-ghost:hover { background: var(--yellow); }

/* ── Mode toggle + mode-conditional visibility ── */
.btn-mode {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  padding: 5px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-mode:hover { color: white; border-color: white; }

/* Simple mode: hide the deep panels and the advanced Preview; show hero. */
body.mode-simple .hero { display: block; }
body.mode-simple #screen-editor,
body.mode-simple #screen-configure,
body.mode-simple #screen-preview,
body.mode-simple #screen-export { display: none; }

/* Advanced (full) mode: hide hero; show the full panel stack. */
body.mode-full .hero { display: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #fff8d6, #fff2b3);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px 36px 24px;
  margin-bottom: 28px;
  position: relative;
}
.hero-tag {
  position: absolute;
  top: -14px;
  left: 18px;
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 0.82rem;
  background: var(--red);
  color: white;
  padding: 3px 14px;
  border: 2px solid var(--ink);
}
.hero-title {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 2.2rem;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 0.95rem;
  color: rgba(13, 13, 13, 0.75);
  margin-bottom: 22px;
}

.hero-pack {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hero-pack-label {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1rem;
}
.hero-pack select {
  flex: 1;
  min-width: 220px;
  font: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: var(--border);
  background: white;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero-pdf, .hero-print {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1.1rem;
  padding: 14px 24px;
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.hero-pdf {
  background: var(--red);
  color: white;
}
.hero-print {
  background: var(--yellow);
  color: var(--ink);
}
.hero-pdf:hover, .hero-print:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.hero-pdf[disabled], .hero-print[disabled] { opacity: 0.6; cursor: progress; }

.hero-size {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.hero-size-label {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-size-hint {
  color: rgba(13, 13, 13, 0.65);
  font-style: italic;
}

.hero-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.hero-preview-footer .hero-preview-caption {
  margin-top: 0;
  text-align: left;
  flex: 1;
}
.hero-advanced-btn {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 0.88rem;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--red);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.hero-advanced-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--red);
}
.hero-advanced-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.hero-preview {
  margin: 18px 0 14px;
  padding: 14px 12px 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--ink);
}
.hero-preview[hidden] { display: none; }
.hero-preview-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-preview-card {
  width: 150px !important;
  height: 150px !important;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: white;
}
.hero-preview-arrow {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  text-align: center;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0 4px;
}
.hero-preview-arrow-top,
.hero-preview-arrow-bot {
  display: block;
}
.hero-preview-arrow-line {
  display: block;
  font-size: 1.4rem;
  color: var(--red);
  margin: 2px 0;
}
.hero-preview-caption {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(13, 13, 13, 0.7);
  margin-top: 8px;
  font-style: italic;
}
.hero-preview-caption[hidden] { display: none; }

@media (max-width: 520px) {
  .hero-preview-cards { flex-direction: column; gap: 6px; }
  .hero-preview-arrow-line { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .hero { padding: 24px 20px 18px; }
  .hero-title { font-size: 1.7rem; }
}

/* ── Intro strip ── */
.intro {
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px 48px 18px 22px;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.intro[hidden] { display: none; }
.intro-content { flex: 1; }
.intro-lead {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 6px;
}
.intro-nudge {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.intro-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  width: 28px;
  height: 28px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.intro-close:hover { background: var(--red); color: white; }

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.panel {
  background: white;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px 30px;
  margin-bottom: 28px;
  position: relative;
}

.panel h2 {
  font-family: 'Bangers', cursive;
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: white;
  background: var(--ink);
  padding: 6px 20px;
  border: var(--border);
  box-shadow: var(--shadow);
  display: inline-block;
  margin-bottom: 22px;
}

/* ── Pack loader ── */
.pack-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  margin-bottom: 18px;
}
.pack-label {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
}
.pack-row select {
  font: inherit;
  font-size: 0.95rem;
  padding: 6px 10px;
  border: var(--border);
  background: white;
  color: var(--ink);
  min-width: 220px;
}

/* ── Form fields ── */
.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.field input[type="text"],
.field textarea,
.abbr-form input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: var(--border);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.field input[type="text"]:focus,
.field textarea:focus,
.abbr-form input:focus {
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}
.field textarea {
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
}

.hint {
  font-size: 0.82rem;
  color: #555;
  margin-top: 6px;
  font-style: italic;
}

.row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.export-actions .btn { font-size: 1rem; padding: 10px 20px; }

/* ── Input tabs ── */
.input-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.tab {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-bottom: none;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  margin-bottom: -2px;
}
.tab.active {
  background: var(--yellow);
  transform: translateY(2px);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.tab-panel { padding-top: 4px; }

/* Q/A Pairs input: two textareas side by side so row N of Questions
   pairs with row N of Answers. Collapses to a single column on narrow
   viewports. */
.pair-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.pair-input-grid textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .pair-input-grid { grid-template-columns: 1fr; }
}

/* ── Dropzone ── */
.dropzone {
  border: 3px dashed var(--ink);
  background: var(--paper);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.1s;
}
.dropzone.over { background: var(--yellow); }
.dropzone p { margin: 4px 0; font-size: 0.95rem; }
.link { text-decoration: underline; cursor: pointer; font-weight: 700; }
button.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}
button.link:hover { color: var(--red); }

/* ── Chip grid ── */
.chipgrid-wrap { margin-top: 24px; }
.chipgrid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chipgrid-count {
  font-family: 'Bangers', cursive;
  font-size: 1.05rem;
  letter-spacing: 2px;
}
.chipgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.chipgrid:empty::before {
  content: 'No symbols yet. Add some above.';
  color: #888;
  font-style: italic;
  align-self: center;
  margin: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 2px solid var(--ink);
  padding: 4px 6px 4px 10px;
  font-size: 0.92rem;
  box-shadow: 2px 2px 0 var(--ink);
  max-width: 100%;
}
.chip.image { padding-left: 4px; }
.chip img {
  width: 24px; height: 24px; object-fit: cover;
  border: 1px solid var(--ink);
}
.chip .chip-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  font-variant-numeric: tabular-nums;
}
.chip .chip-value sub,
.chip .chip-value sup,
.chip .chip-display sub,
.chip .chip-display sup {
  font-size: 0.72em;
  line-height: 1;
}
.chip .chip-value sub, .chip .chip-display sub { vertical-align: -0.25em; }
.chip .chip-value sup, .chip .chip-display sup { vertical-align: 0.45em; }
.chip .chip-display {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 2px;
}
.chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  padding: 0 4px;
}
.chip button:hover { color: var(--red); }

/* ── Counter ── */
.counter { margin-top: 18px; }
.counter-bar {
  position: relative;
  height: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.counter-fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width 0.2s;
}
.counter-fill.full { background: var(--green); }
.counter-fill.short { background: var(--red); }
.counter-text {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.counter-text.warn { color: var(--red); }
.counter-text.ok { color: var(--green); }

/* ── Abbreviation panel ── */
.abbr-panel {
  margin-top: 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 12px 16px;
}
.abbr-panel summary {
  cursor: pointer;
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 1rem;
  padding: 4px 0;
}
.abbr-form {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.abbr-list { list-style: none; padding: 0; margin-top: 10px; }
.abbr-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--ink);
  font-size: 0.9rem;
}
.abbr-list li:last-child { border-bottom: none; }
.abbr-list .abbr-short {
  background: var(--yellow);
  padding: 0 6px;
  font-weight: 800;
  margin-right: 8px;
}

/* ── Segmented controls ── */
.segmented {
  display: inline-flex;
  gap: 0;
  border: var(--border);
  box-shadow: var(--shadow);
}
.seg {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1rem;
  padding: 8px 22px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-right: 2px solid var(--ink);
  cursor: pointer;
}
.seg:last-child { border-right: none; }
.seg.active { background: var(--yellow); }
.seg[disabled] { color: #999; cursor: not-allowed; }

input[type="range"] {
  width: 100%;
  max-width: 360px;
  accent-color: var(--red);
}

/* ── Stats ── */
.stats {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1rem;
  border: var(--border);
  box-shadow: var(--shadow);
  display: inline-block;
}

/* ── Placeholder warning (Configure panel) ── */
.blank-warning {
  margin-top: 14px;
  padding: 10px 14px 10px 10px;
  background: #fff0d6;
  border: 2px solid var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.blank-warning[hidden] { display: none; }
.blank-warning .warn-icon {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
  background: var(--red);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
}
.blank-warning b { background: var(--yellow); padding: 0 4px; }

/* ── Preview grid ── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.preview-card {
  position: relative;
  border: var(--border);
  box-shadow: var(--shadow);
  background: white;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  transition: transform 0.08s;
}
.preview-card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.preview-card.selected {
  outline: 4px solid var(--red);
  outline-offset: -4px;
}
.preview-card canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.preview-card .card-index {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: 'Bangers', cursive;
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 1px 6px;
  letter-spacing: 1px;
}

.match-bar {
  margin-top: 18px;
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.match-badge {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  padding: 4px 12px;
  border: var(--border);
}
.match-badge.ok { background: var(--green); color: white; }
.match-badge.bad { background: var(--red); color: white; }

/* ── Branded confirm modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
  animation: fade-in 0.12s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  padding: 22px 24px 18px;
  position: relative;
  animation: modal-in 0.15s ease-out;
}
@keyframes modal-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal::before {
  content: attr(data-tag);
  position: absolute;
  top: -14px;
  left: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 0.78rem;
  padding: 3px 12px;
  border: 2px solid var(--ink);
}
.modal.danger::before { background: var(--red); color: white; }

.modal h3 {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.modal p {
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--ink);
}
.modal p b { background: var(--yellow); padding: 0 4px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-actions .btn { font-size: 1rem; padding: 8px 18px; }
.modal .btn-danger {
  background: var(--red);
  color: white;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
}
.modal .btn-danger:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

/* ── Toast ── */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 48px));
}
.toast {
  background: white;
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  animation: toast-in 0.15s ease-out;
}
.toast.warn { background: var(--yellow); }
.toast.err { background: var(--red); color: white; }
.toast .toast-close {
  float: right;
  margin-left: 10px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}
@keyframes toast-in {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Dropped-symbol badge on preview. */
.drops-bar {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.88rem;
}

/* ── Print container (hidden by default, revealed only on print) ── */
#findit-print-container { display: none; }

/* ── Print ── */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body { background: white !important; background-image: none !important; }
  .toolbar, .container { display: none !important; }

  #findit-print-container { display: block; }

  .print-page {
    page-break-after: always;
    break-after: page;
  }
  .print-page:last-child { page-break-after: auto; }

  .print-grid {
    display: grid;
    grid-template-columns: repeat(3, 55mm);
    grid-auto-rows: 55mm;
    gap: 5mm;
    padding: 15mm 12mm;
    justify-content: center;
  }

  .print-card-wrap {
    width: 55mm;
    height: 55mm;
    page-break-inside: avoid;
    break-inside: avoid;
    position: relative;
  }
  .print-card-wrap img {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Subtle cut guides: corner marks on each card. */
  .print-card-wrap::before,
  .print-card-wrap::after {
    content: '';
    position: absolute;
    width: 3mm;
    height: 3mm;
    border-color: #bbb;
    border-style: solid;
    border-width: 0;
  }
  .print-card-wrap::before {
    top: -1mm; left: -1mm;
    border-top-width: 0.3mm;
    border-left-width: 0.3mm;
  }
  .print-card-wrap::after {
    bottom: -1mm; right: -1mm;
    border-bottom-width: 0.3mm;
    border-right-width: 0.3mm;
  }

  @page { size: A4 portrait; margin: 0; }
}
