.logo-subnav {
  flex: 0 0 auto;
  z-index: 6;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
}
.logo-spot-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.logo-spot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 14rem;
  padding: 6px 8px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  font-size: 12px;
  font-weight: 500;
  color: #3f3f46;
  cursor: pointer;
  text-align: left;
}
.logo-spot-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-spot-num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #e4e4e7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.logo-spot.is-on {
  border-color: #3f6d2f;
  background: #f4f7ef;
  color: #27441d;
}
.logo-spot.is-on .logo-spot-num {
  background: #3f6d2f;
  color: #fff;
}
.logo-spot.is-done .logo-spot-num {
  background: #3f6d2f;
  color: #fff;
}
.logo-lib-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.logo-lib-strip .logo-upload,
.logo-lib-thumb {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
}
.logo-lib-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}
.logo-lib-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.logo-lib-thumb span {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
}
.logo-lib-thumb.is-on {
  border-color: #3f6d2f;
  box-shadow: 0 0 0 2px rgba(63, 109, 47, 0.2);
}
.logo-upload {
  position: relative;
  display: block;
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px dashed #3f6d2f;
  background: linear-gradient(180deg, #f4f7ef 0%, #e4edc8 100%);
  color: #27441d;
  box-shadow: inset 0 0 0 1px rgba(63, 109, 47, 0.08);
}
.logo-upload:hover,
.logo-upload:focus-within {
  background: #ccd8b9;
  color: #1d3316;
}
.logo-upload-inner {
  pointer-events: none;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  text-align: center;
}
.logo-upload svg {
  width: 34px;
  height: 34px;
  display: block;
}
.logo-upload-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.logo-upload-hint {
  font-size: 10px;
  font-weight: 500;
  color: #3f6d2f;
  line-height: 1.2;
}
.logo-upload-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #3f6d2f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}
.logo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.logo-tools-group {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}
.logo-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 4.5rem;
  min-height: 3.5rem;
  padding: 8px 6px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  color: #3f3f46;
  cursor: pointer;
}
.logo-tool svg {
  width: 22px;
  height: 22px;
  display: block;
}
.logo-tool:hover,
.logo-tool:focus-visible {
  border-color: #3f6d2f;
  color: #27441d;
  background: #f4f7ef;
  outline: none;
}
.logo-tool:active {
  transform: scale(0.97);
}
.logo-tool.is-danger {
  color: #b42318;
}
.logo-tool.is-danger:hover,
.logo-tool.is-danger:focus-visible {
  border-color: #f5c2c0;
  background: #fef2f2;
  color: #912018;
}
@media (max-width: 639px) {
  .logo-tool {
    min-width: 3.25rem;
    min-height: 3rem;
    padding: 6px 4px;
    font-size: 10px;
  }
  .logo-tool svg {
    width: 18px;
    height: 18px;
  }
}

/* Print overlay on the product photo — layout is set in JS. */
.print-box {
  position: absolute;
  border: 1.5px dashed #3f6d2f;
  border-radius: 2px;
  background: rgba(63, 109, 47, 0.08);
  cursor: pointer;
  overflow: hidden;
}
.print-box.active {
  background: rgba(63, 109, 47, 0.14);
  box-shadow: 0 0 0 4px rgba(63, 109, 47, 0.12);
}
.print-box.wrap { border-radius: 8px; }
.print-label {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #3f6d2f;
  white-space: nowrap;
  background: rgba(249, 250, 251, 0.92);
  padding: 1px 6px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-on-box {
  position: absolute;
  inset: 8%;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.logo-on-box img,
.logo-on-box .text-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.text-mark {
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 15px;
  color: #111;
  text-align: center;
  line-height: 1.1;
}
.progress-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.progress-meter-track {
  position: relative;
  flex: 1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4edc8;
  box-shadow: inset 0 1px 2px rgba(39, 68, 29, 0.12);
}
.progress-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f6d2f, #6f9263);
  transition: width 0.45s ease;
}
.progress-meter-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.progress-meter-ticks span {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: rgba(39, 68, 29, 0.22);
}
.progress-meter-label {
  min-width: 2.8rem;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #27441d;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.progress-hint {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #3f6d2f;
}
footer [data-next] {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
@media (min-width: 640px) {
  footer [data-next] {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}
.bottle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-content: center;
  padding: 0.5rem 0.75rem;
  overflow: auto;
}
@media (max-width: 639px) {
  .preview-mosaic { grid-template-columns: 1fr; }
}
.preview-mosaic .bottle-wrap {
  min-height: 0;
  max-width: none;
  aspect-ratio: 1;
  background: #fff;
  cursor: pointer;
  outline: 1px solid #e4e4e7;
}
.preview-mosaic .bottle-wrap.is-active {
  outline: 2px solid #3f6d2f;
  outline-offset: -2px;
}
.preview-mosaic .print-label { font-size: 10px; }
.bottle-wrap img.bottle {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  user-select: none;
  pointer-events: none;
  flex: 0 0 auto;
}
