/* Sweet3D — picture -> vector. Uses the photo-for-laser page's layout (/foto-laser/foto-laser.css); only extras here. */

.vz-hero img { width: min(340px, 40vh); aspect-ratio: 1; object-fit: cover; }
.vz-result { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vz-result[hidden] { display: none; }
.vz-result figcaption { text-align: center; max-width: 460px; }
/* the picture on a checkerboard, so transparent areas show as transparent */
.vz-pic { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); line-height: 0;
  background: repeating-conic-gradient(#e6e6e6 0 25%, #ffffff 0 50%) 0 0 / 18px 18px; }
:root[data-theme=dark] .vz-pic { background: repeating-conic-gradient(#2a2a30 0 25%, #34343b 0 50%) 0 0 / 18px 18px; }
.vz-pic img { display: block; max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; }
.vz-pic img[hidden] { display: none; }
.vz-pic.clickable { cursor: crosshair; }
.vz-3d { position: absolute; inset: 0; }
.vz-3d[hidden] { display: none; }

/* palette */
.vz-count { margin-bottom: 10px; }
.vz-pal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vz-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--panel2); color: var(--text); font-size: 12.5px; font-weight: 600; text-align: left; min-width: 0; cursor: pointer; }
.vz-chip i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.vz-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-chip small { flex: none; color: var(--muted); font-weight: 500; font-size: 11px; }
.vz-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.vz-chip.target { border-style: dashed; border-color: var(--accent); }
.vz-chip.gone i { background: repeating-conic-gradient(#cfcfcf 0 25%, #fff 0 50%) 0 0 / 8px 8px; position: relative; }
.vz-chip.gone i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; background: #d33; transform: rotate(-35deg); }
.vz-chip.gone span { opacity: .6; text-decoration: line-through; }
.vz-edit { margin-top: 10px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel2); }
.vz-edit[hidden] { display: none; }
.vz-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vz-edit-head i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.vz-edit-head b { flex: 1; }
.vz-edit-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.vz-edit-row .btn { padding: 8px 10px; font-size: 12.5px; }
.vz-edit-row .btn.on { border-color: var(--accent); color: var(--accent); }
.vz-colorbtn { position: relative; cursor: pointer; }
.vz-colorbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.vz-bg { margin-top: 12px; }
.vz-tools button { font-size: 12.5px; }
.vz-undo { margin-top: 8px; }
.vz-lbl { display: block; margin-top: 10px; }

@media (max-width: 900px) {
  .vz-pic img { max-height: 42vh; }
  #editor.sheet-closed .vz-pic img { max-height: calc(100vh - 260px); }
  .vz-hero img { width: min(260px, 26vh); }
  .vz-editor .dock .dock-new { display: none; }
  .vz-editor .dock button { padding: 9px 10px; font-size: 12.5px; }
}

/* order window: the vector files first, the 3D extra below */
.ord-sec { margin: 14px 0 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ord-sec:first-child { margin-top: 0; }
