.art-upload-row {
  display: flex;
  gap: 6px;
}

.art-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.art-tpl-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.art-tpl-btn:hover {
  border-color: #444b53;
}

.art-tpl-btn.active {
  background: var(--surface-2);
  border-color: var(--accent);
}

.art-tpl-title {
  font-size: 12.5px;
  font-weight: 600;
}

.art-tpl-sub {
  font-size: 11px;
  color: var(--muted);
}

#artZoomRange {
  width: 100%;
}

.queue-helper {
  margin-bottom: 8px;
}

.a4-art-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4mm;
  width: 100%;
  height: 100%;
}

.art-bridge-piece {
  position: relative;
  overflow: hidden;
  border: 0.3mm solid #111;
  background: #f4f5f7;
  user-select: none;
}

.art-bridge-piece.interactive-pan {
  cursor: grab;
}

.art-bridge-piece.interactive-pan:active {
  cursor: grabbing;
}

@media screen {
  .art-bridge-piece.is-selected {
    outline: 0.7mm solid var(--accent);
    outline-offset: 0.5mm;
  }
}

.art-piece-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  pointer-events: none;
  max-width: none;
}

.art-pocket-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 0.25mm dashed rgba(255, 255, 255, 0.75);
  border-right: 0.25mm dashed rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

.art-pocket-guide-row {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 0.25mm dashed rgba(255, 255, 255, 0.75);
  border-bottom: 0.25mm dashed rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

.art-notch-cutout {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 0.3mm dashed #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5pt;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 4;
}

.art-notch-cutout.left-notch {
  left: -0.3mm;
  border-left: none;
}

.art-notch-cutout.right-notch {
  right: -0.3mm;
  border-right: none;
}

.art-caption-badge {
  position: absolute;
  z-index: 3;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1mm 2.4mm;
  border-radius: 1mm;
  pointer-events: none;
}

.art-caption-badge.pos-bottom-right  { bottom: 3mm; right: 3.5mm; }
.art-caption-badge.pos-bottom-left   { bottom: 3mm; left: 3.5mm; }
.art-caption-badge.pos-bottom-center { bottom: 3mm; left: 50%; transform: translateX(-50%); }
.art-caption-badge.pos-top-left      { top: 3mm; left: 3.5mm; }

.art-split-tile {
  width: 63mm;
  height: 88mm;
  position: relative;
  overflow: hidden;
  border: 0.3mm solid #999;
  background: #f4f5f7;
}
