/* Inkloom Sticker Studio */
.sk-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  flex-direction: column;
  background: #0b1017;
  color: #eef2f7;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
.sk-root.is-open {
  display: flex;
}

/* Top bar */
.sk-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 22, 0.9);
}
.sk-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sk-brand strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}
.sk-brand span {
  font-size: 12px;
  color: #9fb0c3;
}
.sk-spacer {
  flex: 1;
}

/* Buttons */
.sk-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #eef2f7;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.sk-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sk-btn:active {
  transform: translateY(1px);
}
.sk-btn.is-primary {
  background: linear-gradient(135deg, #c9a655, #e9c98b);
  border-color: transparent;
  color: #20242b;
}
.sk-btn.is-danger {
  border-color: rgba(226, 88, 88, 0.5);
  color: #ff9a9a;
}
.sk-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: #eef2f7;
}
.sk-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Body layout */
.sk-body {
  flex: 1;
  display: grid;
  grid-template-columns: 288px 1fr 320px;
  min-height: 0;
}
.sk-panel {
  overflow-y: auto;
  padding: 16px;
  background: rgba(12, 18, 27, 0.7);
}
.sk-left {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sk-right {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.sk-section {
  margin-bottom: 18px;
}
.sk-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa2b6;
  margin: 0 0 8px;
}
.sk-hint {
  font-size: 12px;
  color: #8497ac;
  margin: 6px 0 0;
  line-height: 1.4;
}
.sk-empty {
  font-size: 12px;
  color: #7d8ea3;
  margin: 0;
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

/* Chips */
.sk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sk-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4ee;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sk-chip:hover {
  border-color: rgba(233, 201, 139, 0.6);
}
.sk-chip.is-active {
  background: linear-gradient(135deg, #c9a655, #e9c98b);
  color: #20242b;
  border-color: transparent;
}

/* Fields */
.sk-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sk-field label {
  font-size: 11px;
  color: #8fa2b6;
}
.sk-field input,
.sk-field select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #eef2f7;
  padding: 8px 10px;
  font-size: 13px;
}
.sk-field input:focus,
.sk-field select:focus {
  outline: none;
  border-color: #e9c98b;
}
.sk-range {
  width: 100%;
  accent-color: #e9c98b;
}
.sk-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #b9c6d4;
  margin-top: 10px;
  cursor: pointer;
}

/* Materials */
.sk-materials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sk-mat {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  padding: 8px 10px;
  color: #dbe4ee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sk-mat.is-active {
  border-color: #e9c98b;
  background: rgba(233, 201, 139, 0.12);
}
.sk-mat-sw {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Swatches */
.sk-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sk-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
}
.sk-swatch.is-active {
  border-color: #e9c98b;
  box-shadow: 0 0 0 2px rgba(233, 201, 139, 0.4);
}

/* Price */
.sk-price {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}
.sk-price-amount {
  font-size: 24px;
  font-weight: 800;
  color: #f5e6bf;
}
.sk-price-unit {
  font-size: 13px;
  color: #cdd8e4;
  margin: 2px 0 6px;
}
.sk-price small {
  font-size: 11px;
  color: #8497ac;
  line-height: 1.4;
  display: block;
}

/* Stage */
.sk-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, #16202e 0%, #0b1017 70%);
  min-height: 0;
}
.sk-canvas-wrap {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sk-canvas-wrap canvas {
  display: block;
  max-width: min(560px, 60vw);
  max-height: 66vh;
  width: auto;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}
.sk-reshape {
  margin-top: 10px;
  width: 100%;
}
.sk-custom-tools {
  display: flex;
  gap: 8px;
}
.sk-custom-tools[hidden] {
  display: none;
}
.sk-stage-hint {
  font-size: 12.5px;
  color: #9fb0c3;
  text-align: center;
  max-width: 520px;
}

/* Layers */
.sk-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sk-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 10px;
  color: #dbe4ee;
  font-size: 13px;
  cursor: pointer;
}
.sk-layer.is-active {
  border-color: #e9c98b;
  background: rgba(233, 201, 139, 0.12);
}
.sk-layer-ic {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}
.sk-layer-tx {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Sheet preview */
.sk-sheet-preview {
  display: none;
}
.sk-sheet-canvas {
  display: flex;
  justify-content: center;
  background: #1b2532;
  border-radius: 10px;
  padding: 10px;
}
.sk-sheet-canvas canvas {
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Onboarding */
.sk-onboard {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 18, 0.66);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.sk-onboard[hidden] {
  display: none;
}
.sk-onboard-card {
  max-width: 460px;
  background: #131c28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.sk-onboard-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e9c98b;
}
.sk-onboard-card h3 {
  margin: 8px 0 14px;
  font-size: 22px;
}
.sk-onboard-card ol {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #cdd8e4;
  line-height: 1.6;
  font-size: 14px;
}
.sk-onboard-card ol b {
  color: #f5e6bf;
}

/* Toast */
.sk-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #20242b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}
.sk-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  .sk-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
  }
  .sk-panel {
    max-height: none;
  }
  .sk-stage {
    order: -1;
    min-height: 46vh;
  }
}
