/* ============================================================================
 * PAC.CO Blind Box 3.0 — Full 1:1 PAC.CO Studio Stylesheet
 * Supports both floating Single-Link modal (#paccoStudioOverlay) and inline
 * main Studio mount (#page-blindbox) with zero global leakage.
 * ============================================================================ */
/* ==========================================================================
   PAC.CO BLIND BOX GAME STUDIO (v3 — Ref 1 Soft Tactile Pill Design System)
   ========================================================================== */
#paccoHeaderShipBtn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
#paccoHeaderShipBtn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
#paccoHeaderShipBtn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
#paccoHeaderShipBtn .ps-ship-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 1.5px #ffffff;
}
#paccoHeaderStudioBtn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffe135;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
}
#paccoHeaderStudioBtn:hover {
  background: #ffea66;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.13);
}
#psSingleLinkPill button.ps-pill-exit {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
#psSingleLinkPill button.ps-pill-exit:hover {
  background: rgba(255, 255, 255, 0.24);
}

#paccoStudioOverlay,
#psEditBackdrop {
  position: fixed;
  inset: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
#paccoStudioOverlay *,
#psEditBackdrop * {
  box-sizing: border-box;
}
.ps-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-ico svg { display: block; }
.ps-num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   DASHBOARD OVERLAY (Clean Floating Ref 1 Modal Aesthetic)
   ========================================================================== */
#paccoStudioOverlay {
  z-index: 99990;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#paccoStudioOverlay.open {
  display: flex;
}
.ps-shell {
  width: min(1180px, 100%);
  height: min(88vh, 800px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ps-shell-header {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ps-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ps-brand-dot {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ps-brand-dot::before,
.ps-brand-dot::after {
  content: "";
  width: 3.5px;
  height: 6.5px;
  border-radius: 999px;
  background: #ffffff;
}
.ps-brand-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.ps-brand-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 999px;
}
.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-close-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: #f3f4f6;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease;
}
.ps-close-circle:hover {
  background: #e5e7eb;
  color: #0f172a;
}

.ps-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 30px;
  background: #f8fafc;
}

/* Soft Borderless KPI Pills */
.ps-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ps-kpi-card {
  background: #ffffff;
  border: 0;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ps-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}
.ps-kpi-val {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 2px 0;
  letter-spacing: -0.02em;
}
.ps-kpi-sub {
  font-size: 11px;
  color: #64748b;
}

/* Section Header */
.ps-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.ps-sec-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.ps-sec-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Ref 1 Pill Buttons */
.ps-btn {
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}
.ps-btn:hover {
  background: #e2e8f0;
}
.ps-btn:active {
  transform: scale(0.98);
}
.ps-btn-white {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}
.ps-btn-white:hover {
  background: #f8fafc;
}
.ps-btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.ps-btn-primary:hover {
  background: #1e293b;
}
.ps-btn-danger {
  background: #fef2f2;
  color: #dc2626;
}
.ps-btn-danger:hover {
  background: #fee2e2;
}
.ps-btn-sm {
  font-size: 11.5px;
  padding: 7px 13px;
}
.ps-btn-icon {
  padding: 7px;
  width: 32px;
  height: 32px;
}

/* Wider Borderless Game Cards (ZERO Black Border Frame) */
.ps-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
  gap: 18px;
}
.ps-game-card {
  background: #ffffff;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.18s ease, transform 0.16s ease;
}
.ps-game-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}
.ps-game-card.is-active-game {
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.12);
}
.ps-card-preview {
  height: 146px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  overflow: hidden;
}
.ps-card-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ps-card-preview-bg svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.ps-card-badges {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ps-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ps-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.ps-status-pill.live {
  background: #ecfdf5;
  color: #047857;
}
.ps-status-pill.live .ps-status-dot {
  background: #10b981;
}
.ps-status-pill.scheduled {
  background: #fffbeb;
  color: #b45309;
}
.ps-status-pill.scheduled .ps-status-dot {
  background: #f59e0b;
}
.ps-theme-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.ps-card-thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.ps-card-thumb {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  object-fit: contain;
  padding: 4px;
}
.ps-card-body {
  padding: 16px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ps-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ps-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
}
.ps-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.ps-card-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}
.ps-card-placements {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ps-place-chip {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ps-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.ps-stat-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ps-stat-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}
.ps-card-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto auto;
  gap: 7px;
  padding: 12px 18px 16px;
  background: #ffffff;
}

/* ==========================================================================
   REF 1-STYLE FLOATING EDIT GAME MODAL (Pill Segmented Nav, Zero Harsh Borders)
   ========================================================================== */
#psEditBackdrop {
  z-index: 99995;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#psEditBackdrop.open {
  display: flex;
}
.ps-edit-modal {
  width: min(1040px, 100%);
  height: min(88vh, 800px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ps-edit-header {
  padding: 20px 26px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}
.ps-edit-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ps-edit-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}
.ps-edit-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ps-edit-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
}

/* Ref 1 Signature Pill Segmented Tab Bar */
.ps-pill-tabs-wrap {
  padding: 0 26px 16px;
  flex-shrink: 0;
}
.ps-pill-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
}
.ps-pill-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.ps-pill-tab:hover {
  color: #0f172a;
}
.ps-pill-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.ps-edit-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 26px 28px;
  background: #ffffff;
}
.ps-pane-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Soft Borderless Section Cards */
.ps-form-card {
  border: 0;
  border-radius: 20px;
  background: #f6f8fb;
  margin-bottom: 16px;
  overflow: hidden;
}
.ps-form-card-head {
  padding: 14px 20px 6px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ps-setting-ico-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-form-card-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ps-form-card-body {
  padding: 10px 20px 18px;
}
.ps-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ps-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.ps-field:last-child { margin-bottom: 0; }
.ps-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}
.ps-input,
.ps-select,
.ps-textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 9.5px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ps-input:focus,
.ps-select:focus,
.ps-textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.ps-textarea {
  resize: vertical;
  min-height: 76px;
}
.ps-hint {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   REF 1 RARITY CARDS + ODDS BAR + STEPPER SLIDER UX
   ========================================================================== */
.ps-odds-summary-card {
  border: 0;
  border-radius: 20px;
  padding: 16px 18px;
  background: #f6f8fb;
  margin-bottom: 16px;
}
.ps-odds-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ps-odds-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ps-odds-pill.ok {
  background: #ecfdf5;
  color: #047857;
}
.ps-odds-pill.err {
  background: #fef2f2;
  color: #dc2626;
}
.ps-odds-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
  gap: 2px;
  padding: 2px;
}
.ps-odds-bar-seg {
  height: 100%;
  border-radius: 999px;
  transition: width 0.16s ease;
}
.ps-odds-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}
.ps-odds-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.ps-odds-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Soft Rarity-Tinted Product Cards (2-Row Layout with Large Left Thumbnail) */
.ps-item-card {
  border: 0;
  border-radius: 22px;
  padding: 14px 16px;
  background: #f6f8fb;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ps-item-card.rarity-common,
.ps-item-card.rarity-uncommon,
.ps-item-card.rarity-rare,
.ps-item-card.rarity-secret {
  background: #f5f7fb;
  border: 1px solid #eef2f6;
}
.ps-item-thumb-box {
  width: 104px;
  height: 104px;
  align-self: center;
  border-radius: 18px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ps-item-thumb-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.ps-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-item-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(2px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.ps-item-thumb-box:hover .ps-item-thumb-overlay { opacity: 1; }
.ps-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.ps-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.ps-item-fields {
  display: grid;
  grid-template-columns: 1.3fr 1.05fr 0.72fr 0.93fr;
  gap: 9px;
  align-items: end;
}
.ps-item-fields .ps-input,
.ps-item-fields .ps-select {
  padding: 8px 11px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.94);
}
@media (max-width: 720px) {
  .ps-item-card { grid-template-columns: 1fr; }
  .ps-item-thumb-box { width: 88px; height: 88px; }
  .ps-item-fields { grid-template-columns: 1fr 1fr; }
}

/* Interactive Thumbnail Cropper Modal (Zoom & Pan 1:1 Ratio) */
#psCropOverlay {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#psCropOverlay.open { display: flex; }
#psCropModal {
  width: min(440px, 94vw);
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.ps-crop-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}
.ps-crop-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-crop-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ps-crop-stage {
  width: 268px;
  height: 268px;
  border-radius: 22px;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.08);
  user-select: none;
}
.ps-crop-stage:active { cursor: grabbing; }
.ps-crop-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  max-width: none;
  max-height: none;
}
.ps-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
  border-radius: 22px;
}
.ps-crop-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 9px 13px;
  border-radius: 14px;
}
.ps-crop-zoom-row span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  min-width: 40px;
}
.ps-crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: #0f172a;
  cursor: pointer;
}
.ps-crop-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  padding: 9px 13px;
  border-radius: 14px;
}
.ps-crop-color-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.ps-crop-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ps-crop-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ps-crop-swatch:hover { transform: scale(1.1); }
.ps-crop-swatch.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb;
}
.ps-crop-swatch.is-none {
  background: repeating-conic-gradient(#cbd5e1 0% 25%, #ffffff 0% 50%) 50% / 8px 8px;
}
.ps-crop-swatch.is-custom {
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ps-crop-swatch.is-custom input[type="color"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.ps-crop-hint {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}
.ps-crop-actions-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ps-crop-foot {
  padding: 14px 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Inline Odds Slider Control Pill */
.ps-item-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}
.ps-item-rarity-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ps-odds-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 340px;
  justify-content: flex-end;
}
.ps-odds-pct-val {
  min-width: 52px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.ps-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s ease, transform 0.1s ease;
}
.ps-step-btn:hover { background: #e2e8f0; }
.ps-step-btn:active { transform: scale(0.92); }
.ps-odds-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 110px;
  height: 7px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: #e2e8f0;
}
.ps-odds-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ps-thumb-color, #0ea5e9);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  cursor: pointer;
}
.ps-odds-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ps-thumb-color, #0ea5e9);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  cursor: pointer;
}

/* ==========================================================================
   VISUAL GRAPHIC SELECTOR CARDS (ZERO BLACK BORDER SELECTION!)
   ========================================================================== */
.ps-theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ps-theme-choice {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.ps-theme-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.ps-theme-choice.selected {
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.18), 0 0 0 2.5px rgba(59, 130, 246, 0.42);
}
.ps-theme-artwork {
  height: 102px;
  position: relative;
  overflow: hidden;
}
.ps-theme-artwork svg { width: 100%; height: 100%; display: block; }
.ps-selected-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}
.ps-theme-choice-info {
  padding: 12px 15px 14px;
}
.ps-theme-choice-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}
.ps-theme-choice-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.ps-mockup-studio {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.ps-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ps-mockup-head-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.ps-mockup-head-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.ps-mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ps-mockup-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-mockup-card.is-custom {
  border-color: #93c5fd;
  background: #f8fbff;
}
.ps-mockup-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ps-mockup-thumb {
  width: 52px;
  height: 58px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ps-mockup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ps-mockup-name {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}
.ps-mockup-spec {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}
.ps-mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.ps-mockup-card.is-custom .ps-mockup-badge {
  background: #dbeafe;
  color: #1d4ed8;
}
.ps-mockup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ps-mockup-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ps-mockup-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.ps-mockup-btn-upload {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.ps-mockup-btn-upload:hover {
  background: #1e293b;
  border-color: #1e293b;
}
.ps-mockup-btn-reset {
  flex: 0 0 auto;
  padding: 7px 8px;
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}
.ps-mockup-btn-reset:hover {
  background: #fee2e2;
}
@media (max-width: 760px) {
  .ps-mockup-grid { grid-template-columns: 1fr; }
}
.ps-reel-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ps-reel-choice {
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.16s ease, transform 0.14s ease;
}
.ps-reel-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.ps-reel-choice.selected {
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.18), 0 0 0 2.5px rgba(59, 130, 246, 0.42);
}
.ps-reel-graphic {
  height: 108px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ps-reel-choice.selected .ps-reel-graphic {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}
.ps-reel-meta {
  padding: 11px 13px 13px;
}
.ps-reel-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}
.ps-reel-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

/* Toggle Switch */
.ps-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.ps-toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ps-toggle-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.ps-toggle-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.ps-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.ps-switch input { opacity: 0; width: 0; height: 0; }
.ps-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease;
}
.ps-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.16s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
}
.ps-switch input:checked + .ps-slider { background: #0f172a; }
.ps-switch input:checked + .ps-slider::before { transform: translateX(20px); }

/* Link Bar */
.ps-link-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px 8px 14px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}
.ps-link-url {
  flex: 1;
  min-width: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sync Catalog Drawer */
.ps-sync-panel {
  border: 0;
  background: #eef4ff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ps-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.ps-sync-card {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ps-sync-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  background: #f8fafc;
  padding: 2px;
}

/* Sticky Modal Footer */
.ps-edit-footer {
  padding: 15px 26px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ps-footer-left,
.ps-footer-right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ps-updated-at {
  font-size: 11.5px;
  color: #94a3b8;
  margin-left: 4px;
}

/* Toast */
#psStudioToast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 99999;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#psStudioToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   REF 2: SINGLE GAME LINK PAGE MODE (DARKER ATMOSPHERIC THEME BACKGROUNDS)
   ========================================================================== */
body[data-viewport-mode="single"] .bb3-modal-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: radial-gradient(ellipse at 50% 8%, #1e4b8f 0%, #122d5c 52%, #0a1936 100%) !important;
  padding: 78px 28px 66px !important;
  transition: background 0.3s ease;
}
body[data-viewport-mode="single"] #psStudioToast,
body[data-viewport-mode="phone"] #psStudioToast {
  bottom: 66px !important;
}

body[data-viewport-mode="single"][data-theme="jungle"] .bb3-modal-backdrop {
  background: radial-gradient(ellipse at 50% 8%, #1c5443 0%, #11352b 54%, #081c17 100%) !important;
}
body[data-viewport-mode="single"][data-theme="common"] .bb3-modal-backdrop {
  background: radial-gradient(ellipse at 50% 8%, #343b48 0%, #1d222c 54%, #101319 100%) !important;
}
/* Ref 3: Hide storefront header STYLE switcher and OPEN BLIND BOX SPIN POPUP button (all managed in Studio now) */
header [data-testid="reel-style-switcher"],
header [data-testid="reel-style-switcher"] + button {
  display: none !important;
}
body[data-viewport-mode="single"][data-single-bg="light"] .bb3-modal-backdrop {
  background: radial-gradient(ellipse at 50% 0%, #eef2f7 0%, #dce3ec 100%) !important;
}
body[data-viewport-mode="single"][data-single-bg="dark"] .bb3-modal-backdrop {
  background: radial-gradient(ellipse at 50% 0%, #1e293b 0%, #090e1a 100%) !important;
}
body[data-viewport-mode="single"] [data-testid="blind-box-modal"] {
  width: min(94vw, 1380px) !important;
  max-width: 1380px !important;
  height: min(calc(100vh - 150px), 760px) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}
body[data-viewport-mode="single"] [data-testid="blind-box-modal"] > aside button[aria-label*="Close"] {
  display: none !important;
}

#psSingleLinkPill {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99980;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 8px 5px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
body[data-viewport-mode="single"] #psSingleLinkPill,
body[data-viewport-mode="phone"] #psSingleLinkPill {
  display: inline-flex;
}
/* Mobile & iPad Touch + Smooth Scroll + Tablet Studio Fit */
.ps-content,
.ps-edit-pane,
.ps-od-body,
.ps-crop-body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ps-crop-stage {
  touch-action: none !important;
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width: 1080px) and (min-width: 769px) {
  #paccoStudioOverlay:not(.ps-mobile-mode) .ps-shell {
    width: 96vw !important;
    height: 90vh !important;
  }
  #paccoStudioOverlay:not(.ps-mobile-mode) .ps-shell-body {
    grid-template-columns: 186px minmax(0, 1fr) !important;
  }
  #paccoStudioOverlay:not(.ps-mobile-mode) .ps-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #paccoStudioOverlay:not(.ps-mobile-mode) .ps-games-grid {
    grid-template-columns: 1fr !important;
  }
  #psEditBackdrop:not(.ps-mobile-mode) .ps-edit-modal {
    width: 94vw !important;
  }
}
@media (max-width: 768px) {
  body[data-viewport-mode="phone"] #psSingleLinkPill {
    display: none !important;
  }
}
#psSingleLinkPill .ps-vp-seg {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: 999px;
  gap: 2px;
}
#psSingleLinkPill .ps-vp-seg button {
  background: transparent;
  color: #cbd5e1;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
}
#psSingleLinkPill .ps-vp-seg button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
#psSingleLinkPill .ps-vp-seg button.active {
  background: #ffffff;
  color: #0f172a;
}
#psSingleLinkPill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
}
#psSingleLinkPill button {
  border: 0;
  background: #ffffff;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
#psSingleLinkPill button:hover {
  background: #f1f5f9;
}


/* ==========================================================================
   SINGLE GAME TOP-RIGHT COMPACT ICON PILL BAR + SIMPLE DROPDOWN POPOVERS + SHIPPING MODAL
   ========================================================================== */
/* Ref 2: Sleek Custom Studio Dropdown (replaces native OS blue select popup) */
.ps-cselect {
  position: relative;
  width: 100%;
  font-family: inherit;
}
.ps-cselect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.ps-cselect-btn:hover {
  border-color: #cbd5e1;
  background: #fafcff;
}
.ps-cselect.open .ps-cselect-btn {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.ps-cselect-chev {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-cselect.open .ps-cselect-chev {
  transform: rotate(180deg);
  color: #0f172a;
}
.ps-cselect-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  transform-origin: top center;
  animation: psCselectIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ps-cselect.open .ps-cselect-menu {
  display: flex;
}
@keyframes psCselectIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ps-cselect-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.ps-cselect-opt:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.ps-cselect-opt.selected {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
.ps-cselect-opt svg {
  flex-shrink: 0;
  color: #2563eb;
}

/* Ref 4: Top collector bar appear animation — Account icon pops in first, then pill extends leftward */
@keyframes psStbBarExtendLeft {
  0% { clip-path: inset(0 0 0 calc(100% - 48px) round 999px); opacity: 0; }
  22% { clip-path: inset(0 0 0 calc(100% - 48px) round 999px); opacity: 1; }
  100% { clip-path: inset(0 0 0 0% round 999px); opacity: 1; }
}
@keyframes psStbAccountPop {
  0% { opacity: 0; transform: scale(0.68); }
  65% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes psStbItemSlideIn {
  0% { opacity: 0; transform: translateX(12px) scale(0.88); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
#psSingleTopBar.ps-stb-animate {
  animation: psStbBarExtendLeft 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
#psSingleTopBar.ps-stb-animate .ps-stb-ico-btn.is-studio {
  background: #0f172a;
  color: #ffffff;
}
.ps-stb-ico-btn.is-studio:hover {
  background: #1e293b;
  color: #ffffff;
}
.ps-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ps-role-pill.owner { background: #0f172a; color: #ffffff; }
.ps-role-pill.collab { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }

/* Ref 2: Ensure open custom dropdown menus NEVER clip behind lower cards or tables */
.ps-form-card { overflow: visible !important; }
.ps-form-card:has(.ps-cselect.open),
.ps-admin-card:has(.ps-cselect.open) {
  position: relative;
  z-index: 60 !important;
  overflow: visible !important;
}
.ps-admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
  position: relative;
}
.ps-admin-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ps-admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.ps-admin-avatar.is-owner { background: #0f172a; color: #ffffff; }
.ps-admin-avatar.is-collab { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.ps-admin-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) auto;
  gap: 10px;
  align-items: end;
}
.ps-admin-member-list {
  display: flex;
  flex-direction: column;
}
.ps-admin-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}
.ps-admin-member-row:first-child { border-top: 0; }
.ps-admin-scope-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ps-scope-tag {
  padding: 3px 8px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}
@media (max-width: 780px) {
  .ps-admin-invite-row { grid-template-columns: 1fr; }
  .ps-admin-member-row { flex-direction: column; align-items: flex-start; }
}
.ps-role-pill.user { background: #f1f5f9; color: #475569; }
.ps-role-pill.guest { background: #fee2e2; color: #b91c1c; }
.ps-login-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-login-row {
  display: flex;
  gap: 6px;
}
.ps-login-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.ps-login-input:focus { border-color: #2563eb; }
.ps-login-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ps-login-btn:hover { background: #1e293b; }
.ps-quick-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ps-qs-pill {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.ps-qs-pill:hover { background: #f1f5f9; color: #0f172a; }
.ps-qs-pill.active { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.ps-np-stat-box.with-gfx {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ps-np-stat-gfx {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#psCardEditBackdrop {
  position: fixed;
  inset: 0;
  z-index: 100025;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
#psCardEditBackdrop.open { display: flex; }
.ps-ce-modal {
  width: min(720px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
}
.ps-ce-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ps-ce-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ps-ce-preview-stage {
  background: #f1f5f9;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ps-ce-card {
  width: 226px;
  background: #ffffff;
  border-radius: 20px;
  padding: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.ps-ce-card-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ced7ea;
}
.ps-ce-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px 0;
}
.ps-ce-card-img {
  width: 124px;
  height: 124px;
  margin: 4px auto;
  display: block;
  object-fit: contain;
}
.ps-ce-card-bar {
  background: #0e0f12;
  color: #ffffff;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ps-ce-card-meta {
  padding: 10px 6px 4px;
}
.ps-ce-card-spec {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
}
.ps-ce-foot {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 680px) {
  .ps-ce-body { grid-template-columns: 1fr; }
}
.ps-collab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.ps-collab-del {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
}
.ps-collab-del:hover { color: #dc2626; }
.ps-stb-ico-btn.is-account {
  animation: psStbAccountPop 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
#psSingleTopBar.ps-stb-animate .ps-stb-sep {
  animation: psStbItemSlideIn 260ms cubic-bezier(0.22, 1, 0.36, 1) 170ms both;
}
#psSingleTopBar.ps-stb-animate [data-pop-panel="orders"] {
  animation: psStbItemSlideIn 280ms cubic-bezier(0.22, 1, 0.36, 1) 210ms both;
}
#psSingleTopBar.ps-stb-animate [data-pop-panel="shipping"] {
  animation: psStbItemSlideIn 280ms cubic-bezier(0.22, 1, 0.36, 1) 275ms both;
}
#psSingleTopBar.ps-stb-animate #psStbNoticeBtn {
  animation: psStbItemSlideIn 280ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both;
}

#psSingleTopBar {
  position: fixed;
  top: 16px;
  right: max(3vw, calc((100vw - 1380px) / 2));
  z-index: 99985;
  display: none;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 6px;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
body[data-viewport-mode="single"] #psSingleTopBar,
body[data-viewport-mode="phone"] #psSingleTopBar {
  display: inline-flex;
}
body[data-viewport-mode="phone"] #psSingleTopBar {
  padding: 3px 5px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body[data-viewport-mode="phone"] .ps-stb-ico-btn {
  width: 30px;
  height: 30px;
}
body[data-viewport-mode="phone"] .ps-stb-ico-btn svg {
  width: 15px;
  height: 15px;
}
body[data-viewport-mode="phone"] .ps-stb-badge-dot {
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
}
body[data-viewport-mode="phone"] .ps-stb-sep {
  height: 14px;
  margin: 0 1px;
}
body[data-viewport-mode="phone"] [data-testid="blind-box-modal"] section[aria-label="Blind Box Spin Reel"] {
  padding-top: 98px !important;
}
body[data-viewport-mode="phone"] #psNoticePopover {
  width: min(346px, calc(100vw - 24px));
  border-radius: 20px;
}
.ps-stb-ico-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.ps-stb-ico-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.ps-stb-ico-btn:active {
  transform: scale(0.94);
}
.ps-stb-ico-btn.active {
  background: #0f172a;
  color: #ffffff;
}
.ps-stb-ico-btn.is-account {
  background: #f1f5f9;
  color: #0f172a;
}
.ps-stb-ico-btn.is-account:hover {
  background: #e2e8f0;
}
.ps-stb-ico-btn.is-account.active {
  background: #0f172a;
  color: #ffffff;
}
.ps-stb-sep {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 2px;
  flex-shrink: 0;
}
.ps-stb-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
  pointer-events: none;
}

/* Unified Simple Dropdown Popover (anchored under top-right pill bar for all 4 icons) */
#psNoticePopover {
  position: fixed;
  top: 70px;
  right: max(3vw, calc((100vw - 1380px) / 2));
  width: min(392px, calc(100vw - 24px));
  max-height: min(74vh, 560px);
  z-index: 99986;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}
#psNoticePopover.open {
  display: flex;
  animation: psPopIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes psPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ps-np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ps-np-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ps-np-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease;
}
.ps-np-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ps-np-item {
  border-radius: 16px;
  padding: 11px 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ps-np-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ps-np-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ps-np-copy {
  flex: 1;
  min-width: 0;
}
.ps-np-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ps-np-copy span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-np-ship-btn {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.14s ease, transform 0.12s ease;
}
.ps-np-ship-btn:hover {
  background: #1e293b;
}
.ps-np-ship-btn:active {
  transform: scale(0.96);
}
.ps-rarity-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding: 2px 8px;
  vertical-align: middle;
}
.ps-np-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
  white-space: nowrap;
}
.ps-np-status.preparing {
  background: #fef3c7;
  color: #b45309;
}
.ps-np-status.pending {
  background: #f1f5f9;
  color: #334155;
}
.ps-np-filter-bar {
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  align-self: flex-start;
}
.ps-np-filter-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.ps-np-filter-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.ps-np-order-right {
  text-align: right;
  flex-shrink: 0;
}
.ps-np-order-amt {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}
.ps-np-order-date {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}
.ps-np-acct-hero {
  border-radius: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ps-np-acct-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-np-acct-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ps-np-stat-box {
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}
.ps-np-stat-box span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}
.ps-np-stat-box strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 3px;
}
.ps-np-addr-box {
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}
.ps-np-addr-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.ps-np-addr-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.ps-np-addr-input:focus {
  border-color: #94a3b8;
}
.ps-np-sub-banner {
  border-radius: 14px;
  padding: 10px 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ps-np-sub-banner span {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

/* Dedicated Shipping Checkout Modal (opens on Ship Now) */
#psShipModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 99992;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
#psShipModalOverlay.open {
  display: flex;
}
#psShipModal {
  width: min(520px, 96vw);
  max-height: min(88vh, 720px);
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
  animation: psPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-ship-head {
  padding: 20px 22px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.ps-ship-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}
.ps-ship-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2px;
}
.ps-ship-body {
  padding: 16px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-ship-sec-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ps-ship-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-ship-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ps-ship-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}
.ps-ship-field input,
.ps-ship-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.ps-ship-field input:focus,
.ps-ship-field textarea:focus {
  border-color: #94a3b8;
  background: #ffffff;
}
.ps-ship-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ps-ship-method-card {
  border: 0;
  border-radius: 16px;
  padding: 11px 12px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.ps-ship-method-card:hover {
  background: #f1f5f9;
}
.ps-ship-method-card.active {
  background: #e2e8f0;
  box-shadow: none;
}
.ps-ship-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}
.ps-ship-method-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 3px;
}
.ps-ship-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}
.ps-ship-total span {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
}
.ps-ship-total strong {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}
.ps-ship-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-ship-cancel {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.ps-ship-cancel:hover {
  background: #e2e8f0;
}
.ps-ship-confirm {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ps-ship-confirm:hover {
  background: #1e293b;
}

@media (max-width: 768px) {
  body[data-viewport-mode="single"] .bb3-modal-backdrop {
    padding: 68px 10px 64px !important;
  }
  body[data-viewport-mode="single"] [data-testid="blind-box-modal"] {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 132px) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }
  body[data-viewport-mode="single"] [data-testid="blind-box-modal"] > main {
    overflow-x: hidden !important;
  }
  body[data-viewport-mode="single"] [data-testid="blind-box-modal"] > main > div.relative.z-30 {
    padding: 10px 10px 4px 10px !important;
    gap: 4px !important;
  }
  body[data-viewport-mode="single"] [data-testid="blind-box-modal"] > main > div.relative.z-30 button,
  body[data-viewport-mode="single"] [data-testid="blind-box-modal"] > main > div.relative.z-30 .top-ticket-badge {
    height: 30px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }
  body[data-viewport-mode="single"] .gx-steps-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body[data-viewport-mode="single"] .gx-step-arrow,
  body[data-viewport-mode="single"] .gx-good-to-know {
    display: none !important;
  }
  #psSingleLinkPill {
    max-width: calc(100vw - 20px);
    padding: 5px 6px 5px 10px;
    gap: 6px;
  }
  #psSingleLinkPill code {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #psSingleLinkPill button {
    white-space: nowrap;
    flex-shrink: 0;
  }
  #psSingleTopBar {
    padding: 4px 6px;
    gap: 4px;
  }
  .ps-stb-notice-pill { display: none; }
  .ps-hub-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ps-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-games-grid { grid-template-columns: 1fr; }
  .ps-pill-tabs { display: flex; overflow-x: auto; border-radius: 16px; }
  .ps-pill-tab { flex-shrink: 0; }
  .ps-item-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-grid-2, .ps-grid-3, .ps-theme-choice-grid, .ps-reel-style-grid { grid-template-columns: 1fr; }
  .ps-item-odds-row { flex-direction: column; align-items: stretch; }
  .ps-odds-stepper-wrap { max-width: none; }
}

/* === REF 2: CLEAN NO-BADGE TICKET COUNT UNDER ACCOUNT ICON ON PHONE === */
#psPhoneTicketReadout {
  position: fixed;
  z-index: 99984;
  display: none;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.72);
  transition: opacity 0.14s ease, transform 0.12s ease;
}
#psPhoneTicketReadout:hover { opacity: 0.8; }
#psPhoneTicketReadout:active { transform: scale(0.95); }
#psPhoneTicketReadout svg { color: #e11d48; filter: drop-shadow(0 1px 4px rgba(255,255,255,0.6)); }
body[data-viewport-mode="phone"] #psPhoneTicketReadout {
  display: inline-flex;
}

/* === REF 4: STUDIO SIDEBAR & GAME ANALYTICS DASHBOARD === */
.ps-shell-body {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.ps-sidebar {
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow-y: auto;
}
.ps-side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ps-side-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 4px 10px 6px;
}
.ps-side-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.ps-side-btn:hover {
  background: #eef2f7;
  color: #0f172a;
}
.ps-side-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}
.ps-side-foot {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ps-side-foot-k {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ps-side-foot-v {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ps-side-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  flex-shrink: 0;
}
@media (max-width: 820px) {
  .ps-shell-body { grid-template-columns: 1fr; }
  .ps-sidebar { border-right: 0; border-bottom: 1px solid #f1f5f9; padding: 10px 14px; flex-direction: row; align-items: center; }
  .ps-side-nav { flex-direction: row; }
  .ps-side-label, .ps-side-foot { display: none; }
}

/* Game Analytics Dashboard */
.ps-an-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ps-an-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.ps-an-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.ps-an-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-an-pill-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}
.ps-an-pill {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.ps-an-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.ps-an-trend {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  margin-left: 6px;
}
.ps-an-grid-2 {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 16px;
  margin-bottom: 16px;
}
.ps-an-grid-eq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .ps-an-grid-2, .ps-an-grid-eq { grid-template-columns: 1fr; }
}
.ps-an-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}
.ps-an-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ps-an-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.ps-an-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.ps-an-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.ps-an-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 4px;
}
.ps-an-donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ps-an-donut-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ps-an-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}
.ps-an-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  gap: 2px;
}
.ps-an-funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ps-an-funnel-step {
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 11px;
}
.ps-an-funnel-step span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}
.ps-an-funnel-step strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}


/* === REF 2: REMOVE PINK GLOW SHADOW ON STOREFRONT BUY TICKET BUTTON === */
[data-testid="storefront-blindbox-card"] button {
  box-shadow: none !important;
}

/* === REF 3: 2-TAB LIVE / DRAFT STATUS SEGMENTED CONTROL === */
.ps-status-seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  width: 100%;
}
.ps-status-seg-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.ps-status-seg-btn:hover { color: #0f172a; }
.ps-status-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ps-status-seg-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}
.ps-status-seg-btn.active[data-set-status="LIVE"] .ps-status-seg-dot {
  background: #10b981;
}
.ps-status-seg-btn.active[data-set-status="DRAFT"] .ps-status-seg-dot {
  background: #64748b;
}

/* === USER TRACKING & RECENT EVENTS + ORDERS TAB === */
.ps-track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 820px) {
  .ps-track-grid { grid-template-columns: repeat(2, 1fr); }
}
.ps-track-pill {
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ps-track-pill-k {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ps-track-pill-v {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ps-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-event-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 14px;
  background: #f8fafc;
}
.ps-event-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.ps-event-body {
  flex: 1;
  min-width: 0;
}
.ps-event-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}
.ps-event-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.ps-event-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  white-space: nowrap;
}
.ps-event-time {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  min-width: 54px;
  text-align: right;
}
.ps-side-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}
.ps-side-btn.active .ps-side-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.ps-ord-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-ord-row {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ps-ord-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-ord-main {
  flex: 1;
  min-width: 0;
}
.ps-ord-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-ord-id {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ps-ord-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ps-ord-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}
.ps-ord-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ps-ord-amt {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  text-align: right;
}
.ps-ord-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ps-ord-status.pending,
.ps-ord-status.preparing {
  background: #fef3c7;
  color: #b45309;
}
.ps-ord-status.shipped {
  background: #eff6ff;
  color: #2563eb;
}
.ps-ord-status.paid {
  background: #ecfdf5;
  color: #059669;
}


/* === REF 3: RARITY PULL MIX CARD BALANCE FOOTER === */
.ps-an-card-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ps-an-mix-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ps-an-mix-stat {
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ps-an-mix-stat span {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
}
.ps-an-mix-stat strong {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* === REF 1: CLEAN STUDIO ORDERS TABLE === */
.ps-ord-table-wrap {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  overflow-x: auto;
  overflow-y: hidden;
}
.ps-ord-table th,
.ps-ord-table td {
  padding-left: 11px !important;
  padding-right: 11px !important;
}
.ps-ord-table th:first-child,
.ps-ord-table td:first-child {
  padding-left: 16px !important;
}
.ps-ord-table th:last-child,
.ps-ord-table td:last-child {
  padding-right: 16px !important;
  white-space: nowrap !important;
}

/* === STOREFRONT THUMBNAIL BRANDING PREVIEW & SWATCHES === */
.ps-sf-brand-preview {
  position: relative;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #56aeff 0%, #86c9ff 58%, #bde2ff 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #dbeafe;
}
.ps-sf-brand-preview-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-sf-brand-preview-logo img {
  max-height: 24px;
  max-width: 112px;
  object-fit: contain;
  display: block;
}
.ps-sf-brand-preview-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.ps-sf-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ps-swatch-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}
.ps-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.ps-swatch-btn:hover { transform: scale(1.08); }
.ps-swatch-btn.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #0f172a;
}

/* === STUDIO DESKTOP / PHONE SWITCHER PILL === */
.ps-vp-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.ps-vp-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ps-vp-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
}

/* === NATIVE MOBILE BOTTOM TAB BAR (HIDDEN ON DESKTOP) === */
.ps-mobile-nav {
  display: none;
}

/* === TRUE RESPONSIVE MOBILE PHONE STUDIO DESIGN (NO FAKE BEZEL) === */
#paccoStudioOverlay.ps-mobile-mode {
  padding: 0;
}
#paccoStudioOverlay.ps-mobile-mode .ps-shell {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
#paccoStudioOverlay.ps-mobile-mode .ps-shell-header {
  padding: 12px 14px;
  gap: 8px;
}
#paccoStudioOverlay.ps-mobile-mode .ps-brand-kicker,
#paccoStudioOverlay.ps-mobile-mode #psResetAllBtn {
  display: none !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-brand-title {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
#paccoStudioOverlay.ps-mobile-mode #psNewGameTopBtn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}
#paccoStudioOverlay.ps-mobile-mode #psNewGameTopBtn > span:last-child {
  display: none;
}
#paccoStudioOverlay.ps-mobile-mode .ps-close-circle {
  width: 32px;
  height: 32px;
}
#paccoStudioOverlay.ps-mobile-mode .ps-shell-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
#paccoStudioOverlay.ps-mobile-mode .ps-sidebar {
  display: none !important;
}
/* Studio Brand Tiles (Desktop & Mobile) */
.ps-brand-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ps-brand-tile {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-brand-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ps-brand-tile-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}
.ps-brand-tile-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.ps-brand-tile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-brand-tile-hint {
  font-size: 11px;
  color: #94a3b8;
}

#paccoStudioOverlay.ps-mobile-mode .ps-content {
  padding: 14px 12px 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}
/* Ref 1: Mobile Game Settings cards (zero horizontal overflow) */
#paccoStudioOverlay.ps-mobile-mode .ps-games-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-game-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-preview {
  padding: 12px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-badges {
  gap: 6px !important;
  flex-wrap: wrap !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-thumbs {
  gap: 6px !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-thumb {
  width: 46px !important;
  height: 46px !important;
  border-radius: 11px !important;
  flex-shrink: 1 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-body {
  padding: 14px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-title-row {
  gap: 8px !important;
  align-items: flex-start !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-title {
  font-size: 15px !important;
  min-width: 0 !important;
  word-break: break-word !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-price {
  font-size: 14px !important;
  flex-shrink: 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-stats {
  gap: 8px !important;
  padding: 10px 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-stat-val {
  font-size: 12px !important;
}
/* Item 2: Phone Game Card Actions — Edit & Store Modal become crisp icons, all 5 buttons in ONE row */
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 10px 14px 14px !important;
  overflow: visible !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-edit],
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-preview],
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-copy],
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-dup],
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-edit],
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-preview],
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-copy],
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-dup] {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-edit] > span:last-child,
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-preview] > span:last-child {
  display: none !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-card-actions [data-ps-single] {
  flex: 1 1 auto !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 11.5px !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}

/* Ref 2: Mobile Analytics (1-col stacked charts, zero horizontal scroll) */
#paccoStudioOverlay.ps-mobile-mode .ps-an-header {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-filters {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-pill-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-pill {
  font-size: 11px !important;
  padding: 6px 10px !important;
  white-space: nowrap !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-grid-2,
#paccoStudioOverlay.ps-mobile-mode .ps-an-grid-eq,
#paccoStudioOverlay.ps-mobile-mode .ps-track-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 14px !important;
  overflow: hidden !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-card-head {
  flex-wrap: wrap !important;
  gap: 6px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-donut-wrap {
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-an-donut-rows {
  width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-event-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* Ref 3: Mobile Admins (stacked full-width Invite form & Collaborator cards) */
#paccoStudioOverlay.ps-mobile-mode .ps-admin-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 14px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-owner-row {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row > .ps-field,
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row > button {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row > button {
  justify-content: center !important;
  padding: 10px 14px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row .ps-cselect,
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row .ps-cselect-btn,
#paccoStudioOverlay.ps-mobile-mode .ps-admin-invite-row .ps-cselect-menu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-member-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px !important;
  width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-member-row > * {
  width: 100% !important;
  min-width: 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-scope-pills {
  flex-wrap: wrap !important;
  gap: 5px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-member-row .ps-btn-danger {
  align-self: flex-start !important;
  width: auto !important;
}

/* Item 3: Polished Mobile Edit Game Modal (no ugly scrollbar, sleek 1-row footer, crisp spacing) */
#psEditBackdrop.ps-mobile-mode .ps-edit-header {
  padding: 12px 14px 8px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-title {
  font-size: 16.5px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-pill-tabs-wrap {
  padding: 4px 12px 8px !important;
  overflow: hidden !important;
}
#psEditBackdrop.ps-mobile-mode .ps-pill-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 4px !important;
  padding: 4px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-pill-tab {
  justify-content: center !important;
  align-items: center !important;
  padding: 9px 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-pill-tab > span:last-child {
  display: none !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-pane {
  padding: 12px 12px 20px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#psEditBackdrop.ps-mobile-mode .ps-form-card {
  border-radius: 18px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-form-card-head {
  padding: 12px 14px 8px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-form-card-body {
  padding: 0 14px 14px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-brand-tiles {
  grid-template-columns: 1fr !important;
}

/* Ref 1: Mobile Edit Theme — hide verbose subtext, compact tiles, 1-col Mockup SVG cards */
#psEditBackdrop.ps-mobile-mode .ps-reel-desc,
#psEditBackdrop.ps-mobile-mode .ps-theme-choice-desc {
  display: none !important;
}
#psEditBackdrop.ps-mobile-mode .ps-reel-style-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-reel-choice {
  padding: 10px 6px !important;
  border-radius: 16px !important;
  text-align: center !important;
}
#psEditBackdrop.ps-mobile-mode .ps-reel-graphic {
  height: 54px !important;
  margin-bottom: 6px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-reel-title {
  font-size: 11px !important;
  line-height: 1.2 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-theme-choice-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-mockup-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-mockup-card {
  padding: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-mockup-top {
  gap: 10px !important;
  align-items: center !important;
}
#psEditBackdrop.ps-mobile-mode .ps-mockup-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-mockup-btn {
  width: 100% !important;
  justify-content: center !important;
}

/* Ref 2: Mobile Edit Items & Odds — clean native mobile product cards (zero overlap/clipping) */
#psEditBackdrop.ps-mobile-mode .ps-odds-top-row {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
/* Phone Product Card: 6-col Grid — Row 1: Thumbnail + Product Name + Card & Delete; Row 2: 50/50 Color & Value */
#psEditBackdrop.ps-mobile-mode .ps-item-card {
  display: grid !important;
  grid-template-columns: 58px repeat(4, minmax(0, 1fr)) auto !important;
  gap: 10px 8px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  align-items: end !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-thumb-box {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px !important;
  margin: 0 !important;
  align-self: center !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-content,
#psEditBackdrop.ps-mobile-mode .ps-item-top,
#psEditBackdrop.ps-mobile-mode .ps-item-fields {
  display: contents !important;
}
/* Product Name cleanly beside Thumbnail on Row 1 */
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(1) {
  grid-column: 2 / 6 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}
/* Card & Delete buttons cleanly on Row 1 right */
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(5) {
  grid-column: 6 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding-bottom: 1px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(5) [data-item-card-edit] {
  padding: 7px 9px !important;
  font-size: 11px !important;
}
/* Row 2: Color/Variant (50%) + Value(฿) (50%) */
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(2) {
  grid-column: 1 / 4 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(3) {
  grid-column: 4 / 7 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-fields > div:nth-child(4) {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  min-width: 0 !important;
}
/* Row 4: Odds slider cleanly spanning full card width */
#psEditBackdrop.ps-mobile-mode .ps-item-odds-row {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

/* Mobile Responsive Edit Collector Card Info Modal */
#psCardEditBackdrop.ps-mobile-mode {
  padding: 12px !important;
}
#psCardEditBackdrop.ps-mobile-mode .ps-ce-modal {
  width: min(390px, 100%) !important;
  max-height: 92vh !important;
  border-radius: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#psCardEditBackdrop.ps-mobile-mode .ps-ce-body {
  grid-template-columns: 1fr !important;
  overflow-y: auto !important;
  padding: 12px !important;
  gap: 12px !important;
}
#psCardEditBackdrop.ps-mobile-mode .ps-ce-foot {
  flex-wrap: wrap !important;
  padding: 10px 12px !important;
  gap: 6px !important;
}
#psCardEditBackdrop.ps-mobile-mode .ps-ce-foot .ps-btn {
  flex: 1 1 auto !important;
  justify-content: center !important;
}
.ps-ce-preview-col {
  background: linear-gradient(180deg, #6cb8ff 0%, #a5d8ff 100%) !important;
  border-radius: 18px !important;
  padding: 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-fields .ps-input,
#psEditBackdrop.ps-mobile-mode .ps-item-fields .ps-select,
#psEditBackdrop.ps-mobile-mode .ps-item-fields .ps-cselect {
  width: 100% !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-item-odds-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 10px !important;
  width: 100% !important;
}
#psEditBackdrop.ps-mobile-mode .ps-odds-stepper-wrap {
  width: 100% !important;
  flex: 1 1 100% !important;
}
#psEditBackdrop.ps-mobile-mode .ps-odds-slider {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-sync-grid {
  grid-template-columns: 1fr !important;
}

/* Ref 5: Multi-Target Cropper (Thumbnail | Winning Card | Peel Card with live card overlays) */
.ps-crop-target-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.ps-crop-target-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.ps-crop-target-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.ps-crop-target-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  display: none;
}
.ps-crop-target-tab.has-crop .ps-crop-target-dot {
  display: inline-block;
}
.ps-crop-overlay-preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ps-crop-ov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 0;
}
.ps-crop-ov-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.ps-crop-ov-serial {
  font-size: 9px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255, 255, 255, 0.72);
  padding: 2px 6px;
  border-radius: 999px;
}
.ps-crop-ov-winbar {
  background: #0e0f12;
  color: #ffffff;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
/* Realistic Collector Card shell inside Cropper & Details Live Preview */
.ps-crop-win-shell {
  background: #ffffff;
  border-radius: 22px;
  padding: 9px 9px 11px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 10px;
}
.ps-crop-win-shell .ps-crop-stage {
  margin: 0 !important;
  border-radius: 15px !important;
}
.ps-crop-win-footer {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 5px 2px;
}
.ps-crop-win-coll {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.1;
}
.ps-crop-win-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0e0f12;
  line-height: 1.05;
  margin-top: 2px;
}
.ps-crop-win-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0e0f12;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ps-crop-win-var {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  text-align: right;
  margin-top: 2px;
}
.ps-crop-peel-shell {
  background: #ffffff;
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  margin: 0 auto 10px;
}
.ps-crop-peel-shell .ps-crop-stage {
  margin: 0 !important;
  border-radius: 17px !important;
}
.ps-crop-ov-peel-bottom {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.ps-crop-ov-peel-titles {
  text-align: center;
  padding: 14px 8px 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(226,232,240,0.82) 100%);
}
.ps-crop-ov-peel-coll {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(14,15,18,0.68);
}
.ps-crop-ov-peel-name {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0e0f12;
  line-height: 1.1;
}
/* Collector Card Defaults & Live Preview in Details tab */
.ps-card-design-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ps-card-preview-box {
  background: linear-gradient(180deg, #6cb8ff 0%, #a5d8ff 100%);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ps-card-pv-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}
.ps-card-pv-toggle button {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.ps-card-pv-toggle button.active {
  background: #0f172a;
  color: #ffffff;
}
#psEditBackdrop.ps-mobile-mode .ps-card-design-grid {
  grid-template-columns: 1fr !important;
}
.ps-crop-ov-peelflap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  height: 38%;
  background: linear-gradient(45deg, rgba(226, 232, 240, 0.92) 0%, rgba(248, 250, 252, 0.84) 48%, rgba(255, 255, 255, 0) 50%);
  border-top-right-radius: 10px;
}
.ps-crop-bg-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.ps-crop-swatches {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.ps-crop-swatch.is-picker {
  position: relative !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  display: inline-block !important;
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899, #ef4444) !important;
  cursor: pointer !important;
}
.ps-crop-swatch.is-picker input[type="color"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}
#psCropModal {
  display: flex !important;
  flex-direction: column !important;
  max-height: 92vh !important;
  overflow: hidden !important;
}
#psCropModal .ps-crop-head,
#psCropModal .ps-crop-foot {
  flex-shrink: 0 !important;
}
#psCropModal .ps-crop-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
#psCropOverlay.ps-mobile-mode #psCropModal {
  width: min(374px, 95vw) !important;
  max-height: 92vh !important;
  border-radius: 26px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-footer {
  padding: 10px 12px 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex: 0 0 auto !important;
}
#psEditBackdrop.ps-mobile-mode .ps-updated-at,
#psEditBackdrop.ps-mobile-mode #psCancelEditBtn {
  display: none !important;
}
#psEditBackdrop.ps-mobile-mode #psDeleteGameBtn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 999px !important;
}
#psEditBackdrop.ps-mobile-mode #psDeleteGameBtn > span:last-child {
  display: none !important;
}
#psEditBackdrop.ps-mobile-mode .ps-footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
}
#psEditBackdrop.ps-mobile-mode .ps-footer-right .ps-btn {
  padding: 9px 12px !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
}

/* True Responsive Mobile Order View Details Modal (#psOrderDetailModal) */
#psOrderDetailOverlay.ps-mobile-mode {
  padding: 0 !important;
}
#psOrderDetailOverlay.ps-mobile-mode #psOrderDetailModal {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-head {
  padding: 14px 14px 12px !important;
  gap: 8px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-title {
  font-size: 15.5px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-sub {
  font-size: 11px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-body {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 12px 12px 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-card {
  padding: 13px !important;
  border-radius: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-stepper {
  gap: 4px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-step-lbl {
  font-size: 10.5px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-step-sub {
  font-size: 9px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-cust-grid,
#psOrderDetailOverlay.ps-mobile-mode .ps-od-mgmt-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-cust-grid > div:first-child {
  border-right: 0 !important;
  padding-right: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 10px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-foot {
  padding: 10px 14px 12px !important;
  gap: 8px !important;
  justify-content: space-between !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-foot .ps-btn {
  flex: 1 !important;
  justify-content: center !important;
  padding: 9px 10px !important;
  font-size: 12px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  padding: 7px 6px 10px;
  flex-shrink: 0;
  gap: 2px;
}
.ps-mob-tab {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 4px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.ps-mob-tab.active {
  color: #0f172a;
  background: #f1f5f9;
}
.ps-mob-badge {
  position: absolute;
  top: 2px;
  right: 14%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}
/* Mobile Dashboard, Analytics, Orders & Admins Stacking */
#paccoStudioOverlay.ps-mobile-mode .ps-page-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
#paccoStudioOverlay.ps-mobile-mode .ps-page-title {
  font-size: 18px;
}
#paccoStudioOverlay.ps-mobile-mode .ps-cards-grid,
#paccoStudioOverlay.ps-mobile-mode .ps-ana-charts,
#paccoStudioOverlay.ps-mobile-mode .ps-grid-2,
#paccoStudioOverlay.ps-mobile-mode .ps-grid-3 {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-kpi-card {
  padding: 12px !important;
  border-radius: 16px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-kpi-val {
  font-size: 18px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-filters {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-filters button,
#paccoStudioOverlay.ps-mobile-mode .ps-ord-filter-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 11px !important;
  padding: 6px 11px !important;
}
/* Mobile Orders: transform wide table into clean native mobile order cards */
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table-wrap {
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table,
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody {
  display: block !important;
  width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table thead {
  display: none !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody tr {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px 10px !important;
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; align-self: center; font-size: 13px; }
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 4px !important; border-top: 1px solid #f1f5f9 !important; }
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 11px !important; color: #94a3b8 !important; }
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(5) { grid-column: 1; grid-row: 4; align-self: center; }
#paccoStudioOverlay.ps-mobile-mode .ps-ord-table tbody td:nth-child(6) { grid-column: 2; grid-row: 4; text-align: right; align-self: center; }

/* Mobile Admins Table -> Stacked Cards */
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table,
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table tbody {
  display: block !important;
  width: 100% !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table thead {
  display: none !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table tbody tr {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-table tbody td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-owner-strip {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-form-grid {
  grid-template-columns: 1fr !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-form-actions {
  justify-content: stretch !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-admin-form-actions button {
  width: 100% !important;
  justify-content: center !important;
}

/* Mobile Edit Game Modal (Full-Bleed Native Responsive — No Fake Bezel) */
#psEditBackdrop.ps-mobile-mode {
  padding: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-modal {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-header {
  padding: 14px 14px 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-tabs-bar {
  padding: 0 12px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}
#psEditBackdrop.ps-mobile-mode .ps-tab-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 11.5px !important;
  padding: 9px 11px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-body {
  padding: 14px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-grid-2,
#psEditBackdrop.ps-mobile-mode .ps-grid-3 {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-footer {
  padding: 10px 14px !important;
  gap: 8px !important;
}
#psEditBackdrop.ps-mobile-mode .ps-edit-footer .ps-btn {
  flex: 1;
  justify-content: center;
  padding: 9px 10px !important;
  font-size: 11.5px !important;
}
#psOrderDetailOverlay.ps-mobile-mode .ps-od-modal {
  width: min(374px, 94vw) !important;
  max-height: 86vh !important;
  border-radius: 26px !important;
}

@media (max-width: 768px) {
  #paccoStudioOverlay,
  #psEditBackdrop {
    padding: 0 !important;
  }
  #paccoStudioOverlay .ps-shell,
  #psEditBackdrop .ps-edit-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
  }
}

.ps-ord-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ps-ord-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.ps-ord-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #0f172a;
}
.ps-ord-table tr:last-child td { border-bottom: 0; }
.ps-ord-table tbody tr:hover td { background: #fafcff; }
.ps-ord-cell-order {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ps-ord-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.ps-ord-thumb-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-ord-src-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  margin-bottom: 3px;
}
.ps-ord-src-badge.ticket {
  background: #fdf2f8;
  color: #db2777;
}
.ps-ord-status-sel {
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
  appearance: auto;
}
.ps-ord-status-sel.pending,
.ps-ord-status-sel.preparing { background: #fef3c7; color: #b45309; }
.ps-ord-status-sel.shipped { background: #eff6ff; color: #2563eb; }
.ps-ord-status-sel.done { background: #f3e8ff; color: #7c3aed; }
.ps-ord-status-sel.paid { background: #ecfdf5; color: #059669; }

/* === REF 2: GAME ORDER DETAIL MODAL === */
#psOrderDetailOverlay {
  position: fixed;
  inset: 0;
  z-index: 100025;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#psOrderDetailOverlay.open { display: flex; }
#psOrderDetailModal {
  width: min(1020px, 95vw);
  max-height: 90vh;
  background: #f8fafc;
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.ps-od-head {
  background: #ffffff;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ps-od-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.ps-od-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.ps-od-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.45fr;
  gap: 16px;
}
@media (max-width: 860px) {
  .ps-od-body { grid-template-columns: 1fr; }
}
.ps-od-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-od-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ps-od-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ps-od-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ps-od-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 8px;
}
.ps-od-item:last-child { margin-bottom: 0; }
.ps-od-item img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}
.ps-od-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  padding: 5px 0;
}
.ps-od-sum-row.total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.ps-od-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.ps-od-step {
  text-align: center;
  position: relative;
}
.ps-od-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}
.ps-od-step.done .ps-od-step-dot {
  background: #0f172a;
  border-color: #0f172a;
}
.ps-od-step.current .ps-od-step-dot {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}
.ps-od-step-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}
.ps-od-step-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}
.ps-od-cust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ps-od-kv {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 4px 0;
}
.ps-od-kv span:first-child { color: #64748b; }
.ps-od-kv strong { color: #0f172a; font-weight: 700; }
.ps-od-mgmt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ps-od-foot {
  background: #ffffff;
  padding: 13px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


/* Ref 1: Full-bleed edge-to-edge thumbnails across Studio cards, Orders, and Popovers */
.ps-card-thumb,
.ps-np-thumb,
.ps-ord-thumb,
.ps-od-item img {
  padding: 0 !important;
  object-fit: cover !important;
}





/* === EMBEDDED MAIN STUDIO (studio.html #page-blindbox — FULL-WIDTH DROPS LAYOUT) === */
#paccoStudioOverlay {
  z-index: 1600 !important;
}
#psEditBackdrop {
  z-index: 1700 !important;
}
#psCardEditBackdrop,
#psCropOverlay,
#psOrderDetailOverlay {
  z-index: 1800 !important;
}
.ps-card-actions.is-collab {
  grid-template-columns: auto 1fr 1fr auto;
}

/* Remove shared 1400px .ds-page cap so Blind Box Studio fills full width beside Studio sidebar (matching #page-drops) */
body:has(#page-blindbox.active) .ds-content,
body:has(#page-blindbox.show) .ds-content {
  padding: 0 !important;
}
#page-blindbox.ds-blindbox-page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
#page-blindbox.ds-blindbox-page * {
  box-sizing: border-box;
}
#page-blindbox .ps-embedded-workspace {
  width: 100%;
  max-width: none;
  padding: 18px clamp(18px, 2vw, 32px) 44px;
  min-height: 100%;
}
#page-blindbox .ps-emb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#page-blindbox .ps-emb-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
#page-blindbox .ps-emb-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}
#page-blindbox .ps-emb-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}
#page-blindbox .ps-emb-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}
#page-blindbox .ps-emb-tab .ps-side-badge {
  margin-left: 2px;
}
#page-blindbox .ps-emb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#page-blindbox .ps-embedded-content {
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
#page-blindbox .ps-kpi-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
#page-blindbox .ps-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 18px;
}
#page-blindbox .ps-card-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: 12px 14px 16px;
}
#page-blindbox .ps-card-actions.is-collab {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
}
#page-blindbox .ps-card-actions .ps-btn-sm:not(.ps-btn-icon) {
  padding: 7px 10px;
  font-size: 11.5px;
  min-width: 0;
}
#page-blindbox .ps-game-card,
#page-blindbox .ps-an-card,
#page-blindbox .ps-ord-table-wrap,
#page-blindbox .ps-admin-card {
  border: 1px solid #e2e8f0;
}

/* Native Mobile Layout for Embedded Main Studio (#page-blindbox) on Phones (<= 768px) */
#page-blindbox.ps-mobile-mode .ps-embedded-workspace {
  padding: 12px 12px 86px !important;
  overflow-x: hidden !important;
}
#page-blindbox.ps-mobile-mode .ps-emb-nav {
  display: none !important;
}
#page-blindbox.ps-mobile-mode .ps-emb-topbar {
  justify-content: flex-end !important;
  margin-bottom: 12px !important;
}
#page-blindbox.ps-mobile-mode #psRefreshDataBtn > span:last-child {
  display: none !important;
}
#page-blindbox.ps-mobile-mode #psRefreshDataBtn {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  justify-content: center !important;
}
#page-blindbox.ps-mobile-mode .ps-embedded-mobile-nav {
  display: flex !important;
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 7px 6px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}
#page-blindbox.ps-mobile-mode .ps-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin-bottom: 16px !important;
}
#page-blindbox.ps-mobile-mode .ps-kpi-card {
  padding: 12px !important;
  border-radius: 16px !important;
  gap: 10px !important;
}
#page-blindbox.ps-mobile-mode .ps-kpi-icon,
#page-blindbox.ps-mobile-mode .ps-kpi-ico {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}
#page-blindbox.ps-mobile-mode .ps-kpi-val {
  font-size: 17px !important;
}
#page-blindbox.ps-mobile-mode .ps-games-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#page-blindbox.ps-mobile-mode .ps-game-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}
#page-blindbox.ps-mobile-mode .ps-card-preview {
  padding: 12px !important;
}
#page-blindbox.ps-mobile-mode .ps-card-thumbs {
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
#page-blindbox.ps-mobile-mode .ps-card-thumb {
  width: 46px !important;
  height: 46px !important;
  border-radius: 11px !important;
  flex-shrink: 1 !important;
}
#page-blindbox.ps-mobile-mode .ps-card-body {
  padding: 14px !important;
}
#page-blindbox.ps-mobile-mode .ps-card-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 10px 14px 14px !important;
}
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-edit] > span:last-child,
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-preview] > span:last-child {
  display: none !important;
}
#page-blindbox.ps-mobile-mode .ps-card-actions [data-ps-single] {
  flex: 1 1 auto !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 11.5px !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}
#page-blindbox.ps-mobile-mode .ps-an-header {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
#page-blindbox.ps-mobile-mode .ps-an-pill-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 100% !important;
  border-radius: 16px !important;
}
#page-blindbox.ps-mobile-mode .ps-an-grid-2,
#page-blindbox.ps-mobile-mode .ps-an-grid-eq,
#page-blindbox.ps-mobile-mode .ps-track-grid,
#page-blindbox.ps-mobile-mode .ps-grid-2,
#page-blindbox.ps-mobile-mode .ps-grid-3 {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
#page-blindbox.ps-mobile-mode .ps-an-donut-wrap {
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table,
#page-blindbox.ps-mobile-mode .ps-ord-table tbody {
  display: block !important;
  width: 100% !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table thead {
  display: none !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table tbody tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; align-self: center; }
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 4px !important; border-top: 1px solid #f1f5f9 !important; }
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 11px !important; color: #94a3b8 !important; }
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(5) { grid-column: 1; grid-row: 4; align-self: center; }
#page-blindbox.ps-mobile-mode .ps-ord-table tbody td:nth-child(6) { grid-column: 2; grid-row: 4; text-align: right; align-self: center; }
#page-blindbox.ps-mobile-mode .ps-admin-owner-row,
#page-blindbox.ps-mobile-mode .ps-admin-member-row,
#page-blindbox.ps-mobile-mode .ps-admin-invite-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
}
#page-blindbox.ps-mobile-mode .ps-admin-table-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
#page-blindbox.ps-mobile-mode .ps-admin-table,
#page-blindbox.ps-mobile-mode .ps-admin-table tbody {
  display: block !important;
  width: 100% !important;
}
#page-blindbox.ps-mobile-mode .ps-admin-table thead {
  display: none !important;
}
#page-blindbox.ps-mobile-mode .ps-admin-table tbody tr {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
}
#page-blindbox.ps-mobile-mode .ps-admin-table tbody td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}
#paccoStudioOverlay.ps-mobile-mode .ps-header-actions #psRefreshDataBtn {
  display: none !important;
}
#psCardEditBackdrop.ps-mobile-mode {
  padding: 8px !important;
}
#psCardEditBackdrop.ps-mobile-mode .ps-ce-modal {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 94dvh !important;
  border-radius: 22px !important;
}
#psCropOverlay.ps-mobile-mode {
  padding: 8px !important;
}
#psCropOverlay.ps-mobile-mode #psCropModal {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 94dvh !important;
  border-radius: 22px !important;
}

/* ==========================================================================
   REF 5 & REF 6: FULL-SIZE DESKTOP ANALYTICS BENTO + BLIND BOX ORDER NOTICE
   ========================================================================== */
.ps-an-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
.ps-an-grid-eq {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1020px) {
  .ps-an-grid-2,
  .ps-an-grid-eq {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ps-an-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}
.ps-an-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ps-an-mini-kpi {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 9px 12px;
}
.ps-an-mini-kpi span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ps-an-mini-kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.ps-an-mini-kpi small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* Fixed-height crisp HTML/SVG chart (zero SVG text distortion on 27" monitors!) */
.ps-an-plot {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: auto;
}
.ps-an-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 0 26px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.ps-an-plot-area {
  position: relative;
  height: 210px;
  display: flex;
  flex-direction: column;
}
.ps-an-gridlines {
  position: absolute;
  inset: 16px 0 26px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.ps-an-gridlines i {
  display: block;
  height: 1px;
  background: #f1f5f9;
}
.ps-an-line-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  bottom: 26px;
  width: 100%;
  height: calc(100% - 42px);
  pointer-events: none;
  overflow: visible;
}
.ps-an-bars-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  height: 100%;
}
.ps-an-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.ps-an-bar-val {
  height: 16px;
  line-height: 16px;
  font-size: 10.5px;
  font-weight: 800;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}
.ps-an-bar-stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ps-an-bar-fill {
  width: min(30px, 56%);
  border-radius: 8px 8px 3px 3px;
  background: rgba(59, 130, 246, 0.16);
  transition: height 0.35s ease;
}
.ps-an-bar-col.is-today .ps-an-bar-fill {
  background: rgba(37, 99, 235, 0.28);
}
.ps-an-bar-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}
.ps-an-bar-lbl {
  height: 26px;
  line-height: 26px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.ps-an-bar-col.is-today .ps-an-bar-lbl {
  color: #0f172a;
  font-weight: 800;
}

/* Rarity Pull Mix horizontal progress bars */
.ps-an-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0 14px;
}
.ps-an-tier-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ps-an-tier-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.ps-an-tier-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.35s ease;
}
.ps-an-mix-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Box Fulfillment Pipeline tiles */
.ps-an-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
@media (max-width: 680px) {
  .ps-an-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-an-donut-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .ps-an-donut-wrap svg {
    margin: 0 auto;
  }
}
.ps-an-funnel-step {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-left: 3px solid var(--step-accent, #0f172a);
  border-radius: 14px;
  padding: 12px 14px;
}
.ps-an-funnel-step strong {
  font-size: 20px;
  margin-top: 4px;
}
.ps-an-funnel-step small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

/* Games & Box Inventory list card */
.ps-an-games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-an-game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.ps-an-game-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}
.ps-an-game-info {
  flex: 1;
  min-width: 0;
}
.ps-an-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ps-an-game-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-an-game-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
}
.ps-an-game-pill.is-live {
  background: #ecfdf5;
  color: #047857;
}
.ps-an-game-bar {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 6px 0 4px;
}
.ps-an-game-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f172a;
}
.ps-an-game-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* Blind Box Orders New Notice Banner + Demo Badge */
.ps-ord-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fefce8;
  border: 1px solid #fde047;
  color: #713f12;
}
.ps-ord-notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ps-ord-notice-left strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ps-ord-notice-left span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #854d0e;
}
.ps-ord-notice-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #eab308;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.25);
  flex-shrink: 0;
}
.ps-ord-demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ps-ord-new-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffd400;
  border: 1px solid #0f172a;
  color: #0f172a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}
.ps-ord-table tbody tr.is-new-order td {
  background: #fffdf5;
}
.ds-sidebar > .ds-sidebar-nav > .ds-nav-item > #blindboxOrdersBadge[hidden] {
  display: none !important;
}

/* ============================================================================
 * 2026-12-02 — Game Orders: same calm table system as Main Studio > Orders
 * (light card, neutral borders, status pill w/ dot + menu, outline buttons).
 * ========================================================================== */
.ps-go-page-wrap { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ps-go-page-wrap .ps-an-header { margin-bottom: 0; }

.ps-go-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ps-go-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 96px;
  padding: 16px 16px 14px 68px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
}
.ps-go-stat-ico {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #16a34a;
  background: #e7f8ed;
}
.ps-go-stat-ico svg { width: 20px; height: 20px; display: block; }
.ps-go-stat.is-pack .ps-go-stat-ico { color: #ea8a12; background: #fff0df; }
.ps-go-stat.is-ship .ps-go-stat-ico { color: #2563eb; background: #e8f1ff; }
.ps-go-stat.is-rev .ps-go-stat-ico { color: #c78a08; background: #fff7d6; }
.ps-go-stat-label { color: #4b5563; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.ps-go-stat strong { display: block; margin: 7px 0 4px; color: #111827; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.ps-go-stat small { color: #6b7280; font-size: 11px; font-weight: 500; }

.ps-go-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
}
.ps-go-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f2;
}
.ps-go-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(380px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  color: #888;
  background: #fff;
}
.ps-go-search input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: #111827; font-size: 12px; font-family: inherit; }
.ps-go-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.ps-go-filter,
.ps-go-btn {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.ps-go-filter { min-width: 128px; }
.ps-go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ps-go-filter:hover,
.ps-go-btn:hover { border-color: #cbd2da; background: #f8fafc; }
.ps-go-btn:disabled { opacity: .5; cursor: default; background: #fff; border-color: #e5e7eb; }
.ps-go-btn.is-icon { width: 40px; padding: 0; }
.ps-go-btn.is-busy svg { animation: psGoSpin .8s linear infinite; }
@keyframes psGoSpin { to { transform: rotate(360deg); } }

.ps-go-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 2px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
}
.ps-go-notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.ps-go-notice-copy { flex: 1; min-width: 0; font-size: 12px; color: #374151; }
.ps-go-notice-copy strong { font-weight: 700; }
.ps-go-notice .ps-go-btn { height: 30px; font-size: 10.5px; }

.ps-go-table { min-width: 0; overflow-x: auto; }
.ps-go-head,
.ps-go-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 1.1fr) minmax(80px, .6fr) minmax(110px, .8fr) minmax(128px, .9fr) minmax(112px, .8fr);
  align-items: center;
  column-gap: 14px;
  min-width: 880px;
}
.ps-go-head {
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fbfcfd;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ps-go-head span:last-child { text-align: right; }
.ps-go-row {
  min-height: 64px;
  padding: 8px 16px;
  border-bottom: 1px solid #eceff2;
  background: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ps-go-row:last-child { border-bottom: 0; }
.ps-go-row:hover { background: #fafbfc; }
.ps-go-row:focus-visible { outline: 2px solid #0f172a; outline-offset: -2px; }
.ps-go-cell { min-width: 0; }
.ps-go-order { display: flex; align-items: center; gap: 10px; }
.ps-go-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #d9dde2;
  border-radius: 8px;
  background: #fff;
  color: #374151;
}
.ps-go-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; }
.ps-go-thumb.is-ico { background: #f8fafc; }
.ps-go-thumb-count {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(45%, -50%);
  padding: 3px 4px;
  border: 1px solid #d9dde2;
  border-radius: 5px;
  background: #fff;
  color: #374151;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}
.ps-go-order-text { min-width: 0; }
.ps-go-order-text b { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #111827; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ps-go-order-text small { display: block; margin-top: 3px; overflow: hidden; color: #7b8490; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ps-go-new-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.ps-go-tag {
  display: inline-block;
  max-width: 100%;
  margin-right: 4px;
  padding: 5px 8px;
  border: 1px solid #fca5a5;
  border-radius: 5px;
  background: #fff7f7;
  color: #b42318;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.ps-go-tag.is-ticket { border-color: #c4b5fd; background: #faf7ff; color: #6d28d9; }
.ps-go-tag.is-demo { border-color: #d9dde2; background: #fff; color: #6b7280; }
.ps-go-product-sub { display: block; margin-top: 4px; overflow: hidden; color: #7b8490; font-size: 10.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ps-go-total { color: #111827; font-size: 12px; font-weight: 800; }
.ps-go-date { color: #374151; font-size: 11px; font-weight: 600; }
.ps-go-action { text-align: right; }
.ps-go-action .ps-go-btn { min-width: 104px; height: 34px; border-radius: 6px; font-size: 10.5px; }

/* Status pill + menu (mirrors #page-orders .ds-order-status-control) */
.ps-go-st {
  position: relative;
  display: inline-flex;
  width: 118px;
  height: 36px;
  border: 1px solid #bde8d1;
  border-radius: 9px;
  background: #ecfdf3;
  color: #14743d;
  box-sizing: border-box;
}
.ps-go-st.is-open { z-index: 40; }
.ps-go-st.is-busy { opacity: .55; pointer-events: none; }
.ps-go-st.st-preparing { background: #fff8e7; border-color: #f0d99d; color: #9a5c00; }
.ps-go-st.st-shipped { background: #eef5ff; border-color: #bdd3f7; color: #1d4ed8; }
.ps-go-st.st-done { background: #f5f0ff; border-color: #d7c4fa; color: #6d28d9; }
.ps-go-st.st-pending_payment { background: #f1f3f5; border-color: #d2d8de; color: #64748b; }
.ps-go-st.st-cancelled,
.ps-go-st.st-expired { background: #fff1f2; border-color: #f4c2c8; color: #b42318; }
.ps-go-st-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  padding: 0 30px 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ps-go-st.is-readonly .ps-go-st-trigger { cursor: default; padding-right: 12px; }
.ps-go-st-dot { display: block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ps-go-st.st-paid .ps-go-st-trigger .ps-go-st-dot { background: #16a34a; }
.ps-go-st.st-preparing .ps-go-st-trigger .ps-go-st-dot { background: #f59e0b; }
.ps-go-st.st-shipped .ps-go-st-trigger .ps-go-st-dot { background: #2563eb; }
.ps-go-st.st-done .ps-go-st-trigger .ps-go-st-dot { background: #7c3aed; }
.ps-go-st-chev { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); pointer-events: none; }
.ps-go-st-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  width: 190px;
  padding: 8px;
  border: 1px solid #d2d8de;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  box-sizing: border-box;
}
.ps-go-st.is-open .ps-go-st-menu { display: grid; gap: 3px; }
.ps-go-st-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #263241;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.ps-go-st-opt:hover { background: #f5f7fa; }
.ps-go-st-opt.st-paid .ps-go-st-dot { background: #16a34a; }
.ps-go-st-opt.st-preparing .ps-go-st-dot { background: #f59e0b; }
.ps-go-st-opt.st-shipped .ps-go-st-dot { background: #2563eb; }
.ps-go-st-opt.st-done .ps-go-st-dot { background: #7c3aed; }
.ps-go-st-opt.is-selected.st-paid { background: #ecfdf3; color: #14743d; }
.ps-go-st-opt.is-selected.st-preparing { background: #fff8e7; color: #1f2937; }
.ps-go-st-opt.is-selected.st-shipped { background: #eef5ff; color: #1d4ed8; }
.ps-go-st-opt.is-selected.st-done { background: #f5f0ff; color: #6d28d9; }
.ps-go-st-check { margin-left: auto; flex: 0 0 auto; }

.ps-go-empty { padding: 40px 16px; text-align: center; color: #6b7280; }
.ps-go-empty strong { display: block; color: #111827; font-size: 13px; margin-bottom: 4px; }
.ps-go-empty p { margin: 0; font-size: 12px; }
.ps-go-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border-top: 1px solid #edf0f2;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}
.ps-go-pager { display: inline-flex; align-items: center; gap: 4px; }
.ps-go-page {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ps-go-page.active { background: #111827; border-color: #111827; color: #fff; }
.ps-go-page:disabled { opacity: .35; cursor: not-allowed; }
.ps-go-page-gap { color: #9ca3af; padding: 0 2px; }

/* Tablet */
@media (max-width: 1100px) {
  .ps-go-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phone (both the standalone overlay and embedded #page-blindbox use .ps-mobile-mode) */
.ps-mobile-mode .ps-go-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-mobile-mode .ps-go-stat { min-height: 78px; padding: 10px 10px 10px 54px; }
.ps-mobile-mode .ps-go-stat:last-child { grid-column: span 2; }
.ps-mobile-mode .ps-go-stat-ico { top: 12px; left: 10px; width: 34px; height: 34px; }
.ps-mobile-mode .ps-go-stat strong { font-size: 19px; }
.ps-mobile-mode .ps-go-toolbar { flex-wrap: wrap; padding: 10px; }
.ps-mobile-mode .ps-go-search { width: 100%; }
.ps-mobile-mode .ps-go-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-left: 0; }
.ps-mobile-mode .ps-go-filter { min-width: 0; width: 100%; }
.ps-mobile-mode #psGoClearBtn { grid-column: 1; }
.ps-mobile-mode .ps-go-btn.is-icon { width: 100%; }
.ps-mobile-mode .ps-go-notice { margin: 10px 10px 0; flex-wrap: wrap; }
.ps-mobile-mode .ps-go-table { overflow: visible; padding: 10px; }
.ps-mobile-mode .ps-go-head { display: none; }
.ps-mobile-mode .ps-go-row {
  min-width: 0;
  grid-template-columns: 1fr auto;
  grid-template-areas: "order total" "product product" "date date" "status action";
  gap: 8px 10px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
}
.ps-mobile-mode .ps-go-row:last-child { border-bottom: 1px solid #e2e6ea; margin-bottom: 0; }
.ps-mobile-mode .ps-go-order { grid-area: order; }
.ps-mobile-mode .ps-go-total { grid-area: total; text-align: right; }
.ps-mobile-mode .ps-go-product { grid-area: product; }
.ps-mobile-mode .ps-go-date { grid-area: date; padding-top: 6px; border-top: 1px solid #f0f2f4; color: #888; }
.ps-mobile-mode .ps-go-status { grid-area: status; }
.ps-mobile-mode .ps-go-action { grid-area: action; }
.ps-mobile-mode .ps-go-foot { flex-wrap: wrap; justify-content: center; text-align: center; }
.ps-mobile-mode .ps-go-foot > span { width: 100%; }

/* 2026-12-02b — demo clean-up, bulk select, drop-up status menu, confirm dialog */
.ps-go-btn.is-danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.ps-go-btn.is-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.ps-go-btn.is-danger:disabled { background: #fca5a5; border-color: #fca5a5; color: #fff; }
.ps-go-btn.is-danger-soft { border-color: #fda4af; background: #fff1f2; color: #b42318; }
.ps-go-btn.is-danger-soft:hover { border-color: #fb7185; background: #ffe4e6; color: #9f1239; }
.ps-go-action { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ps-go-action .ps-go-btn.is-icon { min-width: 34px; width: 34px; height: 34px; padding: 0; }
.ps-go-bulk {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 16px 0; padding: 8px 10px 8px 12px;
  border: 1px dashed #d9dde2; border-radius: 8px; background: #fff;
  font-size: 12px; color: #374151;
}
.ps-go-bulk.is-active { border-style: solid; border-color: #fda4af; background: #fff7f7; }
.ps-go-bulk .ps-go-btn { height: 32px; font-size: 10.5px; }
.ps-go-bulk-info { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ps-go-bulk-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.ps-go-bulk-acts { display: inline-flex; align-items: center; gap: 8px; }
.ps-go-bulk-acts strong { font-size: 12px; margin-right: 4px; }
.ps-go-bulk input[type="checkbox"], .ps-go-row-sel input { width: 16px; height: 16px; accent-color: #dc2626; cursor: pointer; }
.ps-go-row-sel { display: inline-flex; margin-right: 2px; }
.ps-go-row.is-selected { background: #fff6f5; }
.ps-go-row.is-selected:hover { background: #ffefed; }
.ps-go-st.is-up .ps-go-st-menu { top: auto; bottom: calc(100% + 8px); }
.ps-go-confirm-ov {
  position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 23, 42, 0); transition: background .18s ease;
}
.ps-go-confirm-ov.open { background: rgba(15, 23, 42, .45); }
.ps-go-confirm {
  width: min(400px, 100%); padding: 22px; border-radius: 14px; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; color: #111827;
  transform: translateY(8px) scale(.97); opacity: 0; transition: transform .2s cubic-bezier(.22,1,.36,1), opacity .18s ease;
}
.ps-go-confirm-ov.open .ps-go-confirm { transform: none; opacity: 1; }
.ps-go-confirm-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff1f2; color: #dc2626; margin-bottom: 12px; }
.ps-go-confirm-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.ps-go-confirm-body { font-size: 13px; line-height: 1.5; color: #4b5563; }
.ps-go-confirm-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#psOrderDetailOverlay .ps-od-foot { align-items: center; }
#psOrderDetailOverlay .ps-od-foot .ps-go-btn { height: 36px; }
.ps-mobile-mode .ps-go-bulk { margin: 10px 10px 0; flex-wrap: wrap; }
@media (min-width: 1100px) {
  /* Wide enough for the 880px grid: let the status menu overflow the table instead of being clipped. */
  #page-blindbox .ps-go-table, #paccoStudioOverlay:not(.ps-mobile-mode) .ps-go-table { overflow: visible; }
}
.ps-sync-stock { margin-top: 2px; font-size: 9.5px; font-weight: 700; color: #059669; }
.ps-sync-stock.is-out { color: #b42318; }

/* 2026-12-02c — Studio overlay (single game page) a bit larger + orders table that fits its container */
#paccoStudioOverlay:not(.ps-mobile-mode) .ps-shell {
  width: min(1440px, 95vw);
  height: min(92vh, 940px);
}
.ps-go-head,
.ps-go-row {
  grid-template-columns: minmax(200px, 1.45fr) minmax(170px, 1.1fr) minmax(72px, .55fr) minmax(100px, .75fr) minmax(124px, .85fr) minmax(156px, .95fr);
  min-width: 0;
}
.ps-go-page-wrap { container-type: inline-size; container-name: psgo; }
#paccoStudioOverlay:not(.ps-mobile-mode) .ps-go-table { overflow: visible; }
@container psgo (max-width: 960px) {
  .ps-go-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-go-table { overflow: visible; padding: 10px; }
  .ps-go-head { display: none; }
  .ps-go-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "order total" "product date" "status action";
    gap: 8px 12px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
  }
  .ps-go-row:last-child { border-bottom: 1px solid #e2e6ea; margin-bottom: 0; }
  .ps-go-order { grid-area: order; }
  .ps-go-total { grid-area: total; text-align: right; }
  .ps-go-product { grid-area: product; }
  .ps-go-date { grid-area: date; text-align: right; }
  .ps-go-status { grid-area: status; }
  .ps-go-action { grid-area: action; }
}
@container psgo (max-width: 560px) {
  .ps-go-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 2026-12-02d — Blind Box sections nested under "Blind Box Studio" in the main Studio sidebar */
.ps-bb-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 6px 18px;
  padding-left: 10px;
  border-left: 1.5px solid #e5e7eb;
}
.ps-bb-subnav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ps-bb-subnav-item[hidden] { display: none; }
.ps-bb-subnav-item svg { flex-shrink: 0; }
.ps-bb-subnav-item:hover { background: #eef0f2; color: #111; }
.ps-bb-subnav-item.active { background: #111; color: #fff; }
.ps-bb-subnav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffd600;
  color: #111;
  font-size: 10px;
  font-weight: 800;
}
.ps-bb-subnav-badge[hidden] { display: none; }
.ps-bb-subnav-item.active .ps-bb-subnav-badge { background: #fff; color: #111; }
/* Sections now live in the sidebar: hide the duplicate pill tabs on desktop (phone keeps its bottom nav). */
body.ps-bb-subnav-on #page-blindbox:not(.ps-mobile-mode) .ps-emb-nav { display: none !important; }
body.ps-bb-subnav-on #page-blindbox:not(.ps-mobile-mode) .ps-emb-topbar { justify-content: flex-end; }
/* Collapsed Studio sidebar (icon rail): hide labels/indent */
body.studio-sidebar-collapsed .ps-bb-subnav { margin-left: 0; padding-left: 0; border-left: 0; }
body.studio-sidebar-collapsed .ps-bb-subnav-item span { display: none; }

/* 2026-12-02e — sidebar sub-nav expands only while Blind Box Studio is open */
.ps-bb-subnav {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-bb-subnav.is-page-active {
  max-height: 220px;
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 6px;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) { .ps-bb-subnav { transition: none; } }

/* 2026-12-02e — Game order detail (matches Main Studio order detail) */
#psOrderDetailModal.ps-od2 { width: min(1180px, 96vw); }
.ps-od2-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) !important; }
.ps-od2-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
}
.ps-od2-item + .ps-od2-item { margin-top: 8px; }
.ps-od2-item > img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.ps-od2-ticket-ico {
  position: relative; width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: linear-gradient(145deg, #fdf2f8, #fce7f3); color: #db2777;
}
.ps-od2-ticket-ico i {
  position: absolute; right: -6px; bottom: -6px; padding: 2px 6px; border-radius: 999px;
  background: #0f172a; color: #fff; font-style: normal; font-size: 10px; font-weight: 800;
}
.ps-od2-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-od2-item-copy strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: #0f172a; }
.ps-od2-item-copy span { font-size: 11.5px; color: #64748b; }
.ps-od2-item-copy em { font-style: normal; font-size: 11px; color: #94a3b8; }
.ps-od2-item > b { font-size: 13px; color: #0f172a; white-space: nowrap; }
.ps-od2-item .ps-rarity-pill { font-size: 8.5px; padding: 1.5px 6px; }
.ps-od2-sku-btn {
  align-self: flex-start; margin-top: 3px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border: 1px solid #cbd5e1; border-radius: 5px; background: #f8fafc;
  color: #334155; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer;
}
.ps-od2-sku-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.ps-od2-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12.5px; color: #475569; }
.ps-od2-sum-row small { display: block; font-size: 10.5px; color: #94a3b8; }
.ps-od2-sum-row > span:last-child { color: #0f172a; font-weight: 600; text-align: right; white-space: nowrap; }
.ps-od2-sum-row.is-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 16px; font-weight: 800; color: #0f172a; }
.ps-od2-sum-row.is-total > span:last-child { font-weight: 800; }
.ps-od2-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 6px; }
.ps-od2-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.ps-od2-step::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px);
  height: 2px; background: #e2e8f0;
}
.ps-od2-step:first-child::before { display: none; }
.ps-od2-step.is-done::before, .ps-od2-step.is-current::before { background: #0f172a; }
.ps-od2-step-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff;
  display: grid; place-items: center; color: #fff; margin-bottom: 4px;
}
.ps-od2-step.is-done .ps-od2-step-dot { background: #0f172a; border-color: #0f172a; }
.ps-od2-step.is-current .ps-od2-step-dot { border: 3px solid #1d4ed8; }
.ps-od2-step b { font-size: 12px; color: #0f172a; }
.ps-od2-step.is-current b, .ps-od2-step.is-current small { color: #1d4ed8; }
.ps-od2-step small { font-size: 10.5px; color: #64748b; font-weight: 600; }
.ps-od2-step em { font-style: normal; font-size: 10px; color: #64748b; }
.ps-od2-cust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ps-od2-person { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #475569; }
.ps-od2-person strong { font-size: 14px; color: #0f172a; }
.ps-od2-person address { margin-top: 8px; font-style: normal; line-height: 1.5; color: #334155; }
.ps-od2-person address.is-muted { color: #94a3b8; }
.ps-od2-meta { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 1px solid #eef2f6; }
.ps-od2-meta > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; font-size: 11.5px; }
.ps-od2-meta span { color: #64748b; font-weight: 600; }
.ps-od2-meta b { color: #0f172a; font-weight: 700; }
.ps-od2-meta .ps-go-tag { padding: 2px 5px; font-size: 8.5px; font-style: normal; }
.ps-od2-eu {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #dbe3ee; border-radius: 12px;
  background: #f8fafc; font-size: 12px; font-weight: 700; color: #0f172a;
}
.ps-od2-eu-tag { padding: 3px 8px; border-radius: 5px; background: #1e3a8a; color: #fff; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.ps-od2-eu-right { margin-left: auto; color: #64748b; font-weight: 600; }
.ps-od-mgmt-grid.is-single { grid-template-columns: 1fr !important; }
.ps-od2-ops { display: flex; flex-direction: column; }
.ps-od2-label { margin: 8px 0 5px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.ps-od2-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9dde2; border-radius: 8px;
  background: #fff; color: #0f172a; font: inherit; font-size: 13px; font-weight: 600; outline: none;
}
.ps-od2-input:focus { border-color: #0f172a; }
textarea.ps-od2-input { resize: vertical; min-height: 90px; font-weight: 500; }
.ps-od2-update {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 8px;
  background: #f1f5f9; color: #64748b; font-size: 11.5px; font-weight: 700;
}
.ps-od2-update.is-sent { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #fde68a; }
.ps-od2-update-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ps-od2-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ps-od2-primary {
  height: 40px; padding: 0 18px; border: 0; border-radius: 7px; background: #0f172a; color: #fff;
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.ps-od2-primary:hover { background: #1e293b; }
.ps-od2-primary.is-wide { width: 100%; margin-top: 12px; }
.ps-od2-acts .ps-go-btn { height: 40px; }
#psOrderDetailOverlay.ps-mobile-mode .ps-od2-body { grid-template-columns: 1fr !important; }
#psOrderDetailOverlay.ps-mobile-mode .ps-od2-cust { grid-template-columns: 1fr; }
#psOrderDetailOverlay.ps-mobile-mode .ps-od2-meta { padding-left: 0; border-left: 0; }
@media (max-width: 900px) {
  .ps-od2-body { grid-template-columns: 1fr !important; }
}

/* 2026-12-02f — theme picker now has 4 themes (Common / City / Jungle / Chess) */
@media (min-width: 1101px) {
  #psEditBackdrop:not(.ps-mobile-mode) .ps-theme-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 769px) and (max-width: 1100px) {
  #psEditBackdrop:not(.ps-mobile-mode) .ps-theme-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 2026-12-02 — long prize lists: first 4 + "+N · View all" expander */
.ps-od2-more { margin-top: 8px; }
.ps-od2-more-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-od2-more.is-open .ps-od2-more-body { grid-template-rows: 1fr; }
.ps-od2-more-inner { min-height: 0; overflow: hidden; }
.ps-od2-more-inner > .ps-od2-item:first-child { margin-top: 0; }
.ps-od2-more.is-open .ps-od2-more-inner { padding-bottom: 8px; }
.ps-od2-viewall {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ps-od2-viewall:hover { background: #f1f5f9; border-color: #cbd5e1; }
.ps-od2-viewall-stack { display: inline-flex; align-items: center; }
.ps-od2-viewall-stack img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: #ffffff; border: 2px solid #f8fafc; margin-left: -10px; position: relative;
}
.ps-od2-viewall-stack img:first-child { margin-left: 0; }
.ps-od2-viewall-stack i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px; margin-left: -10px; border-radius: 999px;
  background: #0f172a; color: #ffffff; font-size: 11.5px; font-weight: 800;
  border: 2px solid #f8fafc; position: relative;
}
.ps-od2-viewall-lbl { flex: 1; text-align: left; }
.ps-od2-viewall-chev { display: inline-flex; transition: transform 0.25s ease; color: #64748b; }
.ps-od2-more.is-open .ps-od2-viewall-chev { transform: rotate(180deg); }
.ps-od2-more.is-open .ps-od2-viewall-stack { display: none; }
