.pack-studio {
  --pk-accent: #00e5ff;
  --pk-gold: #ffd700;
  --pk-panel: rgba(12, 20, 36, 0.92);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pack-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 215, 0, 0.06));
  border: 1px solid rgba(0, 229, 255, 0.22);
}
.pack-hero h1 { margin: 0; font-size: 1.45rem; }
.pack-hero p { margin: 0.35rem 0 0; color: #94a3b8; max-width: 52ch; }
.pack-toolbar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.pack-layout {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 1200px) {
  .pack-layout { grid-template-columns: 1fr; }
}
.pack-panel {
  background: var(--pk-panel);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 1rem;
}
.pack-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.pack-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.pack-tab {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.pack-tab.active {
  border-color: var(--pk-accent);
  color: var(--pk-accent);
  background: rgba(0, 229, 255, 0.1);
}
.pack-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.pack-field-grid label,
.pack-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.pack-field-grid .full { grid-column: 1 / -1; }
.pack-elements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.pack-elements label {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 0.75rem;
  color: #e2e8f0;
}
.pack-color-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 0.4rem;
  align-items: end;
}
.pack-color-row input[type="color"] {
  width: 44px;
  height: 34px;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.pack-preview-wrap {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.pack-preview-stage {
  flex: 1;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.06), transparent 40%),
    rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  overflow: auto;
  padding: 1rem;
}
.pack-preview-stage svg {
  width: 100%;
  max-height: 70vh;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.pack-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: #64748b;
}
.pack-library {
  max-height: 72vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pack-design-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.15s;
}
.pack-design-card:hover,
.pack-design-card.active {
  border-color: rgba(0, 229, 255, 0.4);
}
.pack-design-card strong { font-size: 0.82rem; display: block; }
.pack-design-card small { color: #64748b; display: block; margin-top: 0.2rem; font-size: 0.68rem; }
.pack-nas-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.pack-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1300;
}
.pack-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 92vw);
  background: #0f172a;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 1.1rem;
  z-index: 1301;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.pack-modal h3 { margin: 0 0 0.75rem; }
.pack-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
