:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1d2330;
  --muted: #667085;
  --line: #e3e6eb;
  --accent: #2f5bea;
  --accent-soft: #e8eefe;
  --ok: #1f9d55;
  --bad: #d63939;
  --warn-bg: #fff8e6;
  --warn-ink: #7a5300;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.brand-tag { color: var(--muted); font-size: 13px; margin-left: 6px; }

.layout {
  display: grid; grid-template-columns: minmax(360px, 560px) minmax(340px, 1fr);
  gap: 24px; padding: 24px; max-width: 1280px; margin: 0 auto; align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 14px; }
  .preview { position: static !important; order: -1; }
  .stage { min-height: 0; padding: 14px; }
  .stage img { max-height: 60vh; }
}
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .topbar { padding: 10px 14px; }
  .export .row.gap { flex-wrap: wrap; }
  .fields .field.quarter { flex-basis: calc(50% - 5px); }
}
.controls, .preview, .panel { min-width: 0; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden;
}
.panel > summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 650; font-size: 15px;
  display: flex; align-items: center; gap: 10px; user-select: none;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.panel[open] > summary::after { transform: rotate(-135deg); }
.step {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.panel-body { padding: 0 16px 16px; }

.sublabel { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 8px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.45; }

.row { display: flex; align-items: flex-end; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 0; font-size: 13px; }
.field > span { font-weight: 550; color: #344054; }
.field output { color: var(--muted); font-weight: 500; margin-left: 4px; }
.field.color { align-items: flex-start; }
input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select {
  font: inherit; border: 1px solid #cfd4dc; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus, select:focus, button:focus-visible, .dropzone:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
input[type=color] { width: 52px; height: 34px; border: 1px solid #cfd4dc; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.fields { display: flex; flex-wrap: wrap; column-gap: 10px; }
.fields .field { flex: 1 1 100%; }
.fields .field.half { flex: 1 1 calc(50% - 5px); }
.fields .field.quarter { flex: 1 1 calc(25% - 8px); }

.type-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.type-tabs button {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: #344054;
}
.type-tabs button img { width: 15px; height: 15px; }
.type-tabs button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-tabs button[aria-selected=true] img { filter: invert(1); }

.btn {
  font: inherit; font-weight: 600; border: 1px solid #cfd4dc; background: #fff; color: var(--ink);
  border-radius: 9px; padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #f8f9fb; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #244bd0; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }

.seg { display: inline-flex; border: 1px solid #cfd4dc; border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; border: 0; background: #fff; padding: 7px 12px; cursor: pointer; border-right: 1px solid #e3e6eb; color: #344054; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font: inherit; font-size: 12px; border: 1px dashed #c4cad4; background: #fafbfc; border-radius: 999px; padding: 4px 10px; cursor: pointer; color: #344054; }
.chip:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile-grid.small { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 6px; cursor: pointer;
  font: inherit; font-size: 12px; color: #344054; min-width: 0;
}
.tile img { width: 100%; height: 72px; object-fit: contain; }
.tile-grid.small .tile img { height: 40px; }
.tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile:hover { border-color: #b8c2d3; }
.tile.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tile.saved { border-style: dashed; }
.tile-del {
  position: absolute; top: 3px; right: 5px; font-size: 15px; line-height: 1; color: var(--muted); padding: 2px 4px; border-radius: 6px;
}
.tile-del:hover { background: #fde8e8; color: var(--bad); }

.dropzone {
  border: 1.5px dashed #c4cad4; border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; background: #fafbfc;
}
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dz-empty { display: flex; flex-direction: column; gap: 4px; }
.dz-empty span { color: var(--muted); font-size: 12px; }
.dz-filled { display: flex; align-items: center; gap: 12px; text-align: left; }
.dz-filled img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/12px 12px; }
.dz-filled span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.icon-btn img { width: 22px; height: 22px; }
.icon-btn.selected { border-color: var(--accent); background: var(--accent-soft); }

.preview { position: sticky; top: 76px; }
.preview-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stage {
  display: grid; place-items: center; min-height: 380px; border-radius: 10px; padding: 24px;
  background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0/20px 20px;
}
.stage img { max-width: 100%; max-height: 520px; filter: drop-shadow(0 4px 14px rgba(16, 24, 40, .12)); }
.stage-empty { color: var(--muted); }

.scan { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 13px; }
.scan .dot { width: 10px; height: 10px; border-radius: 50%; background: #adb5bd; flex: none; }
.scan[data-state=ok] { color: var(--ok); }
.scan[data-state=ok] .dot { background: var(--ok); box-shadow: 0 0 0 4px #dcf5e6; }
.scan[data-state=bad] { color: var(--bad); }
.scan[data-state=bad] .dot { background: var(--bad); box-shadow: 0 0 0 4px #fde8e8; }
.scan[data-state=pending] .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.warnings { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.warnings li { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; }
.meta { color: var(--muted); font-size: 12px; margin-top: 10px; }

.export { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
.export .row.gap + .row.gap { margin-top: 12px; }
.export .btn { flex: 1 1 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; transition: all .2s; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--bad); }

.btn.wide { width: 100%; margin-top: 12px; }

/* Floating thumbnail on phones while the main preview is scrolled away. */
.mini-preview {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 8;
  width: 96px; height: 96px; padding: 6px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .22); cursor: pointer;
}
.mini-preview img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 901px) { .mini-preview { display: none !important; } }

/* Touch-friendly controls on small screens. */
@media (max-width: 600px) {
  input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select { font-size: 16px; }
  .btn { padding: 12px 14px; }
  .seg button { padding: 9px 12px; }
  .chip { padding: 6px 12px; font-size: 13px; }
  input[type=color] { width: 56px; height: 40px; }
}

/* ---------- dynamic codes ---------- */
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.views { margin-left: auto; display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.views button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: #344054; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.views button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

.badge { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.dyn-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.dyn-box .hint { margin: 6px 0 0; }
.dyn-linked { margin-top: 10px; background: #f6f8fe; border: 1px solid #d9e2fc; border-radius: 10px; padding: 10px 12px; }
.dyn-linked .row { margin-top: 8px; }
.dyn-line { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 3px 0; flex-wrap: wrap; }
.dyn-line > span:first-child { color: var(--muted); min-width: 92px; }
.dyn-line a { color: var(--accent); font-weight: 600; word-break: break-all; }
.dyn-target { word-break: break-all; }
.dyn-dirty { margin: 6px 0 0; font-size: 12.5px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 6px 9px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: #fde8e8; border-color: #f3b4b4; }
.btn:disabled { opacity: .6; cursor: default; }

.dyn-view { max-width: 980px; margin: 0 auto; padding: 24px; }
.dyn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dyn-head h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.01em; }
.dyn-head .hint { margin: 0; max-width: 560px; }
.dyn-list { display: grid; gap: 12px; }
.dyn-empty { background: var(--card); border: 1px dashed #c4cad4; border-radius: var(--radius); padding: 28px; text-align: center; }
.dyn-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.dyn-card.paused { background: #fafbfc; }
.dyn-card-head { display: flex; align-items: center; gap: 10px; }
.dyn-name { font: inherit; font-size: 16px; font-weight: 650; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin-left: -7px; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.dyn-name:hover { border-color: var(--line); }
.pill { font-size: 12px; font-weight: 650; border-radius: 999px; padding: 3px 10px; }
.pill.on { background: #dcf5e6; color: #146c3c; }
.pill.off { background: #eceff3; color: #475467; }
.dyn-dest { display: flex; align-items: flex-end; gap: 8px; }
.dyn-dest .field { flex: 1; min-width: 0; }
.dyn-stats { color: #475467; font-size: 13px; margin: 10px 0 0; }
.dyn-actions { margin-top: 12px; }
.dyn-details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 84px; padding: 4px 0; }
.bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-width: 3px; }
.bar.zero { background: #dfe3ea; }
.bars-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; }
.devices { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }

dialog.auth { border: 0; border-radius: 14px; padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(16, 24, 40, .3); color: var(--ink); }
dialog.auth::backdrop { background: rgba(16, 24, 40, .45); }
dialog.auth h2 { margin: 0 0 4px; font-size: 18px; }
dialog.auth .row { margin-top: 16px; }
.auth-error { color: var(--bad); font-size: 13px; margin: 10px 0 0; }

@media (max-width: 600px) {
  .views { margin-left: 0; width: 100%; }
  .views button { flex: 1; }
  .dyn-view { padding: 12px; }
  .dyn-line > span:first-child { min-width: 0; width: 100%; }
}

/* Page shown for a paused or unknown short link (r.php). */
.notice-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 420px; text-align: center; }
.notice h1 { font-size: 20px; margin: 12px 0 6px; }
.notice p { color: var(--muted); margin: 0; line-height: 1.5; }
#designView[hidden] ~ .mini-preview { display: none !important; }

/* ---------- Exhibitfy apps footer (shared look across Exhibitfy apps) ---------- */
.xf-footer { margin-top: 24px; border-top: 1px solid var(--line); padding: 24px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.xf-stamp {
  display: inline-block;
  border: 2px solid #A23B2E;
  padding: 4px 12px;
  transform: rotate(-2deg);
  pointer-events: none;
}
.xf-stamp span {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: #A23B2E;
}
.xf-footer-label { margin: 12px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: #8a94a6; }
.xf-apps { list-style: none; padding: 0; margin: 8px auto 0; max-width: 48rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.xf-apps a { color: var(--accent); font-weight: 500; text-decoration: none; }
.xf-apps a:hover { text-decoration: underline; }
.xf-current { font-weight: 500; color: var(--ink); }
.xf-desc { color: var(--muted); }
.xf-build { margin: 12px 0 0; font-size: 11px; color: #8a94a6; }
.mono-btn { font: 700 14px Georgia, serif; color: #212529; }
@media print { .xf-footer { display: none; } }

/* ---------- print size helper ---------- */
.print-help { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.print-help > summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 13px; }
.print-help[open] { padding-bottom: 10px; }
.print-help .field { margin-top: 0; }
.unit-input { display: flex; gap: 6px; }
.unit-input input { width: 90px; }
.unit-input select { width: auto; }
.ph-result p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; padding: 6px 9px; border-radius: 8px; }
.ph-ok { background: #ecf8f1; color: #146c3c; }
.ph-info { background: #f2f4f7; color: #344054; }
.ph-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ph-bad { background: #fde8e8; color: #9b1c1c; }

/* ---------- batch codes ---------- */
.batch-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.batch-card h2 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.batch-card textarea { width: 100%; margin-top: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.batch-actions { margin-top: 12px; align-items: center; }
.batch-progress { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.bar-track { height: 8px; background: #e7eaf0; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.batch-table-wrap { overflow-x: auto; margin-top: 12px; }
.batch-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.batch-table th, .batch-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.batch-table td:nth-child(3) { word-break: break-all; max-width: 380px; }
.batch-table th { color: var(--muted); font-weight: 600; }
.scan-ok { color: var(--ok); font-weight: 600; }
.scan-bad, .scan-toolong, .scan-empty { color: var(--bad); font-weight: 600; }

/* Print sheet: hidden on screen; while printing a sheet, it is the only thing printed. */
.print-sheet { display: none; }
@media print {
  @page { size: letter; margin: 0; }
  body.printing-sheet { background: #fff; }
  body.printing-sheet > :not(#printSheet) { display: none !important; }
  body.printing-sheet #printSheet { display: block; }
  .sheet-page { width: 8.5in; height: 11in; box-sizing: border-box; page-break-after: always; break-after: page; overflow: hidden; }
  .sheet-page:last-child { page-break-after: auto; break-after: auto; }
  .sheet-grid .sheet-page { padding: 0.5in; display: grid; grid-template-columns: repeat(3, 2.5in); grid-auto-rows: 2.5in; justify-content: space-between; align-content: start; }
  .sheet-grid .sheet-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.06in; }
  .sheet-grid .sheet-cell img { max-width: 2.2in; max-height: 2.1in; }
  .sheet-grid .sheet-caption { font: 600 10pt system-ui, Arial, sans-serif; text-align: center; max-width: 2.4in; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  /* Avery 5160 / 8160: 3 x 10 labels, 2.625 x 1 in, 0.5 in top margin, 0.1875 in side margin, 0.125 in gap. */
  .sheet-5160 .sheet-page { padding: 0.5in 0.1875in 0; display: grid; grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; column-gap: 0.125in; }
  .sheet-5160 .sheet-cell { display: flex; align-items: center; gap: 0.08in; padding: 0.05in 0.12in; overflow: hidden; }
  .sheet-5160 .sheet-cell img { width: 0.9in; height: 0.9in; flex: none; }
  .sheet-5160 .sheet-caption { font: 600 9pt system-ui, Arial, sans-serif; line-height: 1.2; max-height: 0.8in; overflow: hidden; }
}

/* ---------- verified preview page (r.php) ---------- */
.verified-badge { display: inline-flex; align-items: center; gap: 6px; color: #146c3c; background: #dcf5e6; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13px; }
.verified-org { margin: 14px 0 0 !important; color: var(--ink) !important; }
.verified-lead { margin: 18px 0 2px !important; }
.verified-host { font-size: 22px; font-weight: 750; color: var(--ink) !important; margin: 0 !important; word-break: break-all; }
.verified-url { font-size: 12.5px; word-break: break-all; margin: 6px 0 18px !important; }
.verified-go { display: inline-block; text-decoration: none; }
.verified-note { font-size: 12px; margin-top: 16px !important; line-height: 1.5; }

/* ---------- smart options (dynamic codes) ---------- */
.dyn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dyn-tag { font-size: 11.5px; font-weight: 600; color: #3b4a6b; background: #eef2fb; border-radius: 999px; padding: 3px 9px; }
.dyn-smart { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.dyn-smart h3 { font-size: 13.5px; margin: 16px 0 2px; }
.dyn-smart .hint { margin: 2px 0 0; }
.smart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.smart-sub { margin: 4px 0 0 24px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.day-pick { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; cursor: pointer; }
.day-pick input { accent-color: var(--accent); }
input[type=time], input[type=date], input[type=number] { font: inherit; border: 1px solid #cfd4dc; border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--ink); }
.dyn-account { padding: 0 16px; }
.dyn-account > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.dyn-account[open] { padding-bottom: 14px; }
.field > span.hint { font-weight: 400; color: var(--muted); }

/* ---------- laser engraving ---------- */
.eng-preview { margin-top: 10px; }
.eng-preview img { display: block; max-width: 220px; width: 100%; border-radius: 6px; background: #111; image-rendering: auto; }
.unit-input .unit { align-self: center; color: var(--muted); font-size: 13px; }
#engMaterial button { white-space: normal; text-align: left; }
.png-custom { margin-top: 10px; align-items: flex-end; }
.png-custom .hint { flex: 1 1 100%; margin: 4px 0 0; }
.warn-text { color: var(--bad); }
