/* ==========================================================================
   THE TENDER CAST - ATELIER 2.0 (HYBRID ARCHITECTURE)
   Desktop: Luxurious Containerized Studio with Sticky Porcelain Rig + Natural Vertical Flow
   Mobile: Zero-Scroll Immersive Experience with Horizontal Pill Ribbons
   ========================================================================== */

/* ==========================================================================
   ATELIER FOYER - PRODUCT SELECTOR SCREEN (STEP 0)
   ========================================================================== */
.atelier-foyer-screen {
  min-height: calc(100vh - 80px);
  background: #FDFBF7;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foyer-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.foyer-header {
  text-align: center;
  margin-bottom: 36px;
}

.foyer-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ttc-gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.foyer-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--ttc-ink);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.foyer-desc {
  font-size: 14px;
  color: #78716C;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Foyer Section Blocks */
.foyer-section-block {
  margin-bottom: 32px;
}

.foyer-step-label {
  display: block;
  font-family: var(--ttc-font-display, 'Cinzel', serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1C1917;
  margin-bottom: 14px;
}

/* Foyer Themes Selector Ribbon */
.foyer-themes-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.foyer-theme-btn {
  flex: 1;
  min-width: 170px;
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.foyer-theme-btn .theme-icon {
  font-size: 22px;
  line-height: 1;
}

.foyer-theme-btn .theme-meta {
  display: flex;
  flex-direction: column;
}

.foyer-theme-btn .theme-meta strong {
  font-size: 14px;
  color: #1C1917;
  font-weight: 600;
}

.foyer-theme-btn .theme-meta small {
  font-size: 11px;
  color: #78716C;
  margin-top: 2px;
}

.foyer-theme-btn:hover {
  border-color: #C5A059;
  background: #FAF8F5;
  transform: translateY(-2px);
}

.foyer-theme-btn.active {
  border-color: #C5A059;
  background: #FAF8F5;
  box-shadow: 0 0 0 2px #C5A059, 0 6px 16px rgba(197, 160, 89, 0.15);
}

.foyer-theme-btn.active .theme-meta strong {
  color: #C5A059;
}

.foyer-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.foyer-card {
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.foyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.15);
  border-color: var(--ttc-gold);
}

.foyer-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(28, 25, 23, 0.85);
  color: #FDFBF7;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.foyer-card-img {
  width: 100%;
  height: 220px;
  background: #F9F7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.foyer-card-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.foyer-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.foyer-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ttc-ink);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.foyer-card-sub {
  font-size: 12px;
  color: #78716C;
  line-height: 1.4;
  margin: 0 0 16px 0;
  min-height: 34px;
}

.foyer-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed rgba(214, 211, 209, 0.6);
  margin-bottom: 16px;
}

.foyer-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--ttc-ink);
}

.foyer-sizes {
  font-size: 11px;
  color: #A8A29E;
}

.btn-foyer-select {
  width: 100%;
  background: var(--ttc-ink);
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-foyer-select:hover {
  background: var(--ttc-gold);
  color: #FFFFFF;
}

/* Responsive adjustment for Mobile */
@media (max-width: 900px) {
  .atelier-foyer-screen {
    padding: 20px 14px;
    align-items: flex-start;
  }
  .foyer-title {
    font-size: 24px;
  }
  .foyer-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .foyer-card-img {
    height: 160px;
  }
}

:root {
  --ttc-cream: #FAF8F5;
  --ttc-pure-white: #FFFFFF;
  --ttc-porcelain-glaze: #F4EFEB;
  --ttc-ink: #1C1917;
  --ttc-muted-charcoal: #57534E;
  --ttc-gold: #C5A059;
  --ttc-gold-hover: #D4AF37;
  --ttc-gold-glow: rgba(197, 160, 89, 0.25);
  --ttc-border-subtle: rgba(197, 160, 89, 0.22);
  --ttc-card-bg: rgba(255, 255, 255, 0.95);
  --ttc-font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --ttc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   1. VIEWPORT-LOCKED STUDIO (no page-level scroll at any width)
   --cc-fixed-top is written by header-fix.js (announcement bar + header).
   ========================================================================== */
.atelier-outer-wrapper {
  background-color: var(--ttc-cream);
  height: calc(100dvh - var(--cc-fixed-top));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.atelier-main-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1024px) {
  .atelier-outer-wrapper {
    padding: 20px;
  }

  .atelier-main-container {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }
}

/* ==========================================================================
   2. LEFT COLUMN: PORCELAIN DISPLAY (58% ON DESKTOP)
   ========================================================================== */
.atelier-stage-col {
  width: 100%;
}

@media (min-width: 1024px) {
  .atelier-stage-col {
    width: 58%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.atelier-stage-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 48%, #FFFFFF 0%, #FAF8F5 65%, #F0EAE1 100%);
  border-radius: 24px;
  border: 1px solid var(--ttc-border-subtle);
  box-shadow: 0 15px 45px rgba(28, 25, 23, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important; /* Allow the stand legs to stretch outside the card smoothly without clipping */
  user-select: none;
  -webkit-user-select: none;
}

/* Floating Stage Badge */
.atelier-stage-badge {
  position: absolute;
  top: 16px;
  left: 20px;
  max-width: calc(100% - 220px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ttc-border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  z-index: 40;
}

.atelier-stage-badge .crest-dot {
  width: 7px;
  height: 7px;
  background: var(--ttc-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ttc-gold);
  flex-shrink: 0;
}

.atelier-stage-badge span {
  font-family: var(--ttc-font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ttc-muted-charcoal);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stage Perspective Switcher Capsule (Anchored Top Right to Avoid Badge Overlap) */
.stage-view-capsule {
  position: absolute;
  top: 16px;
  right: 20px;
  left: auto;
  transform: none;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--ttc-border-subtle);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.05);
  z-index: 42;
  gap: 3px;
}

.view-capsule-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--ttc-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ttc-muted-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-capsule-btn .v-icon {
  font-size: 12px;
}

.view-capsule-btn:hover {
  color: var(--ttc-ink);
}

.view-capsule-btn.active {
  background: var(--ttc-gold);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
}

/* Stage Back Inscription Layer */
.stage-back-layer {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  animation: fadeInTier 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.back-porcelain-plate {
  position: relative;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #FCFAF7 0%, #F5EFEB 75%, #EBE3DC 100%);
  box-shadow: inset 0 0 35px rgba(197, 160, 89, 0.15), 0 20px 40px rgba(28, 25, 23, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.back-footring {
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  border: 3px solid rgba(197, 160, 89, 0.35);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06), 0 2px 6px rgba(255,255,255,0.8);
  pointer-events: none;
}

.back-crest-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  opacity: 0.7;
}

.back-crest-stamp .crest-title {
  font-family: var(--ttc-font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--ttc-gold);
}

.back-crest-stamp .crest-sub {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--ttc-muted-charcoal);
  margin-top: 2px;
}

.back-inscription-content {
  max-width: 80%;
  text-align: center;
}

.back-text-render {
  font-family: var(--ttc-font-display);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: #3E3834;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
  word-break: break-word;
}

/* Stage Gift Box Packaging Layer */
.stage-packaging-layer {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInTier 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.packaging-box-stage {
  width: 94%;
  height: 94%;
  background: linear-gradient(145deg, #2B2623 0%, #1A1715 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  position: relative;
}

.packaging-lid-texture {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.packaging-seal-badge {
  background: linear-gradient(135deg, #DFBA73 0%, #C5A059 100%);
  color: #1C1917;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.packaging-silk-nest {
  flex: 1;
  width: 86%;
  margin: 12px 0;
  background: radial-gradient(ellipse at 50% 50%, #FAF6EE 0%, #EFE8DC 70%, #D8CDBC 100%);
  border-radius: 14px;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.packaging-dish-mockup {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 2px solid var(--ttc-gold);
}

.packaging-dish-mockup .mockup-hint {
  font-family: var(--ttc-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ttc-ink);
  line-height: 1.4;
}

.packaging-caption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.packaging-caption strong {
  font-family: var(--ttc-font-display);
  font-size: 13px;
  color: #FAF8F5;
  letter-spacing: 0.05em;
}

.packaging-caption small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

/* Main Porcelain Rig Container */
.porcelain-rig {
  position: relative;
  width: min(85vw, 540px);
  height: min(85vw, 540px);
  max-height: calc(100% - 90px);
  max-width: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 25px; /* Added margin to push content up and provide space for stand legs */
  overflow: visible !important; /* Allow the rounded legs of the stand layer to render fully without rectangular boundary clipping */
}

.porcelain-rig.mode-ornament {
  transform: scale(0.82) translateY(20px);
}

.porcelain-rig.mode-frame {
  width: min(80vw, 480px);
  height: min(80vw, 540px);
}

.mode-frame .depression-zone {
  width: 78%;
  height: 82%;
  border-radius: 4px;
}

.frame-overlay-layer {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.frame-overlay-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(28, 25, 23, 0.25));
}

/* Stand Layer (Walnut Easel) */
.stand-layer {
  position: absolute;
  bottom: -32px; /* Slightly pull up the stand to safely fit inside the container limits */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 48%;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: transparent !important; /* Ensure no white rectangle background blocks are rendered under the stand */
}

.stand-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(44, 27, 10, 0.22));
}

/* Realistic Gold Ribbon Layer (Ornament Mode) */
.ribbon-layer {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 180px;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mode-ornament .ribbon-layer {
  opacity: 1;
}

.mode-ornament .stand-layer {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.ribbon-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

/* Porcelain Base Dish Layer */
.porcelain-base-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 20px 35px rgba(28, 25, 23, 0.12));
}

/* Outer Rim Decoration Layer */
.rim-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rim-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inner Depression / Canvas Zone */
.depression-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 72%;
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 22;
  cursor: default;
  /* Without this the browser claims a touch on the plate as a deck scroll and the
     object never receives a move. */
  touch-action: none;
}

.canvas-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

/* Fabric.js Canvas Selection Styling (Clean & Invisible when not actively moving) */
.canvas-container .canvas-box,
.canvas-container canvas,
.canvas-container .upper-canvas,
.canvas-container .lower-canvas {
  outline: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* 彻底隐藏 Fabric 默认的角控制手柄和旋转线，防止出现超大蓝色/虚线边框 */
.canvas-container .upper-canvas:focus {
  outline: none !important;
}

/* High-Gloss Light Reflection Layer */
.porcelain-gloss-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 28;
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

/* ==========================================================================
   3. RIGHT COLUMN: TIER SWITCHER + SCROLLING DECK + FIXED SUMMARY CARD
   ========================================================================== */
.atelier-flow-col {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .atelier-flow-col {
    width: 42%;
    height: 100%;
  }
}

/* Desktop Level Tier Switcher Tabs (3 Distinct Tiers) */
.atelier-tier-switcher {
  flex: 0 0 auto;
  display: flex;
  background: rgba(197, 160, 89, 0.12);
  padding: 6px;
  border-radius: 16px;
  gap: 6px;
  margin-bottom: 8px;
}

.tier-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ttc-muted-charcoal);
}

.tier-tab-btn .tier-icon {
  font-size: 15px;
}

.tier-tab-btn .tier-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tier-tab-btn .tier-text strong {
  font-family: var(--ttc-font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ttc-ink);
  line-height: 1.2;
}

.tier-tab-btn .tier-text small {
  font-size: 9px;
  opacity: 0.75;
}

.tier-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.tier-tab-btn.active {
  background: #FFFFFF;
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 4px 15px rgba(28, 25, 23, 0.08);
  color: var(--ttc-ink);
}

.tier-tab-btn.active .tier-text strong {
  color: var(--ttc-gold);
}

.tier-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

/* Tier Views Visibility Control: Only 1 View Visible at a Time.
   The visible tier is the deck that scrolls — never the page. */
.tier-view {
  display: none !important;
  animation: fadeInTier 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tier-view.active {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes fadeInTier {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Level 2 Sub-Nav: Tabs inside Level 2 */
.level2-sub-nav {
  display: flex;
  gap: 8px;
  background: rgba(28, 25, 23, 0.04);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.sub-nav-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--ttc-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ttc-muted-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-nav-btn.active {
  background: #FFFFFF;
  color: var(--ttc-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sub-panel {
  display: none;
}

.sub-panel.active {
  display: block;
}

/* Flow Card Container */
.flow-card {
  background: var(--ttc-pure-white);
  border: 1px solid var(--ttc-border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.06);
}

.flow-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding-bottom: 12px;
}

.flow-card-header h3 {
  font-family: var(--ttc-font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ttc-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-card-header .tier-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ttc-cream);
  color: var(--ttc-gold);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   DYNAMIC STEPPED PRINTS INGESTION & SLOTS STYLES
   ========================================================================== */

.stepped-focus-container {
  margin: 6px 0;
  animation: fadeInStep 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* STEP 1: Pending Online Capture Box */
.ingestion-hero-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #FDFBF7;
  border: 1px dashed rgba(197, 160, 89, 0.5);
  border-radius: 10px;
}

.hero-left-desc strong {
  display: block;
  font-size: 12px;
  color: var(--ttc-charcoal);
  font-weight: 600;
}

.hero-left-desc small {
  display: block;
  font-size: 10px;
  color: var(--ttc-muted-charcoal);
  margin-top: 2px;
}

.btn-online-capture-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ttc-ink);
  color: #FFFFFF !important;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-online-capture-main svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

.btn-online-capture-main span {
  color: #FFFFFF !important;
}

.btn-online-capture-main:hover {
  background: var(--ttc-gold);
}

.ingestion-sub-link {
  text-align: center;
  margin-top: 6px;
}

.btn-link-vault {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--ttc-gold);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}

/* STEP 2: Compact Slots Ribbon */
.slots-compact-ribbon {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.slot-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 10px;
  position: relative;
}

.slot-pill.active {
  background: #FAF8F5;
  border-color: var(--ttc-gold);
  box-shadow: 0 1px 3px rgba(197, 160, 89, 0.15);
}

.slot-pill.empty {
  border-style: dashed;
  background: #FCFAF7;
  cursor: pointer;
  opacity: 0.8;
}

.slot-icon {
  font-size: 14px;
}

.slot-meta {
  flex: 1;
  min-width: 0;
}

.slot-meta strong {
  display: block;
  font-size: 11px;
  color: var(--ttc-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-meta small {
  display: block;
  font-size: 9px;
  color: var(--ttc-muted-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-actions {
  display: flex;
  gap: 4px;
}

.btn-slot-act {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #E7E5E4;
  background: #FFFFFF;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ttc-charcoal);
}

.btn-slot-act:hover {
  background: var(--ttc-cream);
  color: var(--ttc-gold);
}

.btn-slot-del:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #F87171;
}

/* Compact Typography Inputs */
.inputs-pair-compact {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.input-capsule-sm {
  flex: 1;
  background: #FAF8F5;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  padding: 4px 8px;
}

.input-capsule-sm label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ttc-muted-charcoal);
  margin-bottom: 2px;
}

.input-capsule-sm input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: var(--ttc-charcoal);
  outline: none;
}

/* Stage Pulsing Halo & Ingestion Hint */
.stage-prints-uncalibrated-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.halo-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1.5px solid var(--ttc-gold);
  background: rgba(197, 160, 89, 0.04);
  animation: haloPulse 2.5s infinite ease-in-out;
}

@keyframes haloPulse {
  0% { transform: scale(0.92); opacity: 0.5; box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2); }
  50% { transform: scale(1.08); opacity: 0.9; box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
  100% { transform: scale(0.92); opacity: 0.5; box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.halo-hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ttc-gold);
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  white-space: nowrap;
}

.btn-checkout-primary.locked-need-prints {
  background: linear-gradient(135deg, #2D2724 0%, #1C1917 100%);
  opacity: 0.92;
}

.occasion-card-btn.active {
  background: var(--ttc-ink);
  border-color: var(--ttc-ink);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(28, 25, 23, 0.15);
}

.occasion-card-btn .occ-name {
  font-family: var(--ttc-font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

.occasion-card-btn .occ-meta {
  font-size: 11px;
  opacity: 0.7;
}

.occasion-card-btn.active .occ-meta {
  color: var(--ttc-gold);
  opacity: 1;
}

/* Inputs Group */
.inputs-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-capsule {
  position: relative;
  background: var(--ttc-cream);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.input-capsule:focus-within {
  border-color: var(--ttc-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--ttc-gold-glow);
}

.input-capsule label {
  display: block;
  font-size: 10px;
  font-family: var(--ttc-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ttc-muted-charcoal);
  margin-bottom: 3px;
}

.input-capsule input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ttc-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ttc-ink);
  letter-spacing: 0.04em;
  padding: 0;
}

/* Rim Designs Grid (Level 2) */
.rim-designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .rim-designs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rim-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--ttc-cream);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rim-item-btn:hover {
  border-color: var(--ttc-gold);
  background: #FFFFFF;
}

.rim-item-btn.active {
  background: #FFFFFF;
  border: 2px solid var(--ttc-gold);
  box-shadow: 0 0 0 3px var(--ttc-gold-glow);
}

.rim-item-btn .rim-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rim-item-btn .rim-thumb img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.rim-item-btn span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ttc-ink);
  text-align: center;
}

/* Modular Selectors (Composition / Glaze / Accessories) */
.modular-options-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modular-pill-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  background: var(--ttc-cream);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ttc-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.modular-pill-btn:hover {
  border-color: var(--ttc-gold);
  background: #FFFFFF;
}

.modular-pill-btn.active {
  background: var(--ttc-ink);
  color: #FFFFFF;
  border-color: var(--ttc-ink);
}

/* Checkout Summary Card: last row of the deck, so price and CTA never scroll away */
.checkout-summary-card {
  flex: 0 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--ttc-gold);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 35px rgba(197, 160, 89, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}

.summary-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.summary-price-row .summary-title {
  font-family: var(--ttc-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ttc-ink);
}

.summary-price-row .summary-val {
  font-family: var(--ttc-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ttc-gold);
}

.btn-capture-prints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--ttc-cream);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 12px;
  color: var(--ttc-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-capture-prints:hover {
  background: #FFFFFF;
  border-color: var(--ttc-gold);
}

.btn-checkout-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--ttc-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(28, 25, 23, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-checkout-primary:hover {
  background: linear-gradient(135deg, #292524 0%, #1C1917 100%);
  border-color: var(--ttc-gold);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.35);
  transform: translateY(-1px);
}

.summary-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--ttc-muted-charcoal);
}

/* ==========================================================================
   4. MOBILE ONLY: APP-LIKE ZERO-SCROLL ARCHITECTURE (< 1024px)
   ========================================================================== */
@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Foyer Selector Mode: unlock natural page scrolling on mobile */
  html.ttc-foyer-active,
  html.ttc-foyer-active body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  html.ttc-foyer-active .atelier-foyer-screen {
    align-items: flex-start !important;
    min-height: auto !important;
    padding-bottom: 60px !important;
  }

  /* 1. Header: Clean 48px Top Navigation Bar with Proper Space-Between */
  body.page-template-page-customize #main-header {
    position: relative !important;
    height: 48px !important;
    width: 100% !important;
    padding: 0 16px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--ttc-border-subtle) !important;
    box-shadow: none !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
  }

  body.page-template-page-customize #main-header .max-w-7xl {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.page-template-page-customize #main-header .flex.items-center.justify-between {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.page-template-page-customize #main-header .w-10 {
    width: 28px !important;
    height: 28px !important;
    margin-right: 6px !important;
  }

  body.page-template-page-customize #main-header .w-10 span {
    font-size: 13px !important;
  }

  body.page-template-page-customize #main-header .text-xl {
    font-size: 15px !important;
  }

  body.page-template-page-customize #mobile-controls-container {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 2. Main Layout: viewport-locked, only the tier deck scrolls */
  .atelier-outer-wrapper {
    height: calc(100dvh - var(--cc-fixed-top)) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
  }

  .atelier-main-container {
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Foyer active: force-hide Studio below the selector screen (beats display:flex !important above) */
  html.ttc-foyer-active .atelier-outer-wrapper,
  body.ttc-foyer-active .atelier-outer-wrapper {
    display: none !important;
  }

  /* 3. Stage Column: locked band at the top, always in view */
  .atelier-stage-col {
    flex: 0 0 auto !important;
    height: 38dvh !important;
    min-height: 280px !important;
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 50% 45%, #FBF8F3 0%, #EFE9DF 100%) !important;
    border-bottom: 1px solid var(--ttc-border-subtle) !important;
    padding: 8px !important;
    overflow: visible !important; /* Allow the stand legs to render fully on mobile responsive layouts */
  }

  .atelier-stage-card {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible !important; /* Allow the stand legs to render fully on mobile responsive layouts */
  }

  .atelier-stage-badge {
    top: 6px !important;
    left: 8px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  /* Stage perspective switcher pill on mobile */
  .stage-view-switcher {
    top: 6px !important;
    right: 8px !important;
    padding: 2px 4px !important;
    gap: 3px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-radius: 999px !important;
  }

  .stage-view-btn {
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
  }

  /* 4. Porcelain Rig: Pure aspect-ratio 1/1 scaling bounded by available stage */
  .porcelain-rig {
    height: 84% !important;
    max-height: 84% !important;
    width: auto !important;
    max-width: 88vw !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .porcelain-base-img,
  .rim-layer,
  .porcelain-gloss-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
  }

  .depression-zone {
    width: 70% !important;
    height: 70% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }

  .canvas-wrapper,
  .canvas-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
  }

  /* Fabric stacks its two canvas layers with position:absolute; forcing relative here
     pushes the interactive upper layer below the plate, so touches land on nothing. */
  .canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .stand-layer {
    position: absolute !important;
    top: auto !important;
    bottom: -15% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 42% !important;
    width: 96% !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background: transparent !important; /* Force transparent background across responsive viewports */
  }

  /* 5. Control Deck: fills what the stage leaves, scrolls inside itself */
  .atelier-flow-col {
    flex: 1 1 auto !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #FFFFFF !important;
    padding: 10px 14px 12px !important;
    gap: 8px !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05) !important;
    z-index: 45 !important;
  }

  /* 6. Level Switcher on Mobile: Clean Pill Tabs (12px readable typography) */
  .atelier-tier-switcher {
    padding: 4px !important;
    border-radius: 12px !important;
    gap: 5px !important;
    margin-bottom: 0 !important;
    flex: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    background: rgba(197, 160, 89, 0.09) !important;
    border: 1px solid rgba(197, 160, 89, 0.22) !important;
  }

  .tier-tab-btn {
    padding: 6px 4px !important;
    gap: 3px !important;
    border-radius: 8px !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .tier-tab-btn .tier-icon {
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  .tier-tab-btn .tier-text {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .tier-tab-btn .tier-text strong {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
  }

  .tier-tab-btn .tier-text small {
    display: none !important;
  }

  /* STRICT TIER ISOLATION (hidden/visible + deck scrolling come from the base rules) */
  .tier-view.active {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .flow-card {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    gap: 8px !important;
  }

  .flow-card-header {
    display: none !important;
  }
  .occasions-grid::-webkit-scrollbar {
    display: none;
  }

  .occasion-card-btn.active {
    border-color: var(--ttc-gold) !important;
    background: var(--ttc-soft-gold-bg) !important;
  }

  .occasion-card-btn .occ-name {
    margin-bottom: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .occasion-card-btn .occ-meta {
    font-size: 11px !important;
    color: var(--ttc-gold) !important;
  }

  /* Inputs Row Side-by-Side */
  .inputs-pair {
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .input-capsule {
    flex: 1 !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
    background: #F9F8F6 !important;
    border: 1px solid var(--ttc-border-subtle) !important;
  }

  .input-capsule label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
    color: var(--ttc-muted-charcoal) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
  }

  .input-capsule input {
    font-size: 13px !important;
    padding: 3px 0 !important;
    color: var(--ttc-charcoal) !important;
    font-weight: 600 !important;
  }

  /* Level 2 Sub-Nav & Panels */
  .level2-sub-nav {
    padding: 4px !important;
    margin-bottom: 4px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    display: flex !important;
    flex: none !important;
    gap: 6px !important;
    background: #F5F3EF !important;
    border-radius: 8px !important;
    -webkit-overflow-scrolling: touch;
  }
  .level2-sub-nav::-webkit-scrollbar {
    display: none;
  }

  .sub-nav-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
    flex: none !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--ttc-charcoal) !important;
  }

  .sub-nav-btn.active {
    background: #FFFFFF !important;
    border-color: var(--ttc-border-subtle) !important;
    color: var(--ttc-gold) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  }

  .sub-panel {
    display: none !important;
    flex: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .sub-panel.active {
    display: block !important;
  }

  .sub-panel-title {
    font-size: 11px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: var(--ttc-muted-charcoal) !important;
  }

  .modular-options-row {
    gap: 8px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .modular-options-row::-webkit-scrollbar {
    display: none !important;
  }

  .modular-pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--ttc-border-subtle) !important;
    background: #FAFAFA !important;
    font-weight: 500 !important;
  }

  .modular-pill-btn.active {
    border-color: var(--ttc-gold) !important;
    background: var(--ttc-soft-gold-bg) !important;
    color: var(--ttc-gold) !important;
    font-weight: 600 !important;
  }

  /* Rim designs: generous touch targets with clear thumbnails */
  .rim-designs-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .rim-designs-grid::-webkit-scrollbar {
    display: none;
  }

  .rim-item-btn {
    flex: none !important;
    width: 74px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    border: 1px solid var(--ttc-border-subtle) !important;
    background: #FAFAFA !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .rim-item-btn.active {
    border-color: var(--ttc-gold) !important;
    background: var(--ttc-soft-gold-bg) !important;
  }

  .rim-thumb {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 3px !important;
    border-radius: 4px !important;
  }

  .rim-item-btn span {
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* 7. Bottom Checkout Card: Integrated & Crisp */
  .checkout-summary-card {
    margin: 0 !important;
    border: none !important;
    padding: 8px 0 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 6px !important;
    border-top: 1px solid var(--ttc-border-subtle) !important;
  }

  .summary-price-row {
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .summary-price-row .summary-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--ttc-charcoal) !important;
  }

  .summary-price-row .summary-val {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ttc-gold) !important;
  }

  .checkout-cta-group {
    display: flex !important;
    gap: 8px !important;
  }

  .btn-capture-prints {
    flex: 1 !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
  }

  .btn-checkout-primary {
    flex: 1.4 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
  }

  .summary-footnote {
    display: none !important;
  }

  /* Fix: Hide Stand in Gift Box View or Non-Dish Shapes to avoid legs bleeding out */
  #stage-stand-overlay.hidden,
  .stage-stand-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* 8. Tawk.to / Floating Chat Widget: Avoid obscuring critical CTA buttons on mobile */
  iframe[title*="chat" i],
  #tawk-bubble-container,
  .tawk-min-container,
  div[class*="tawk"] {
    bottom: 74px !important;
    right: 12px !important;
    transform: scale(0.85) !important;
    transform-origin: bottom right !important;
    z-index: 40 !important;
  }
}

/* 9. Atelier checkout notice modal */
.cc-atelier-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.cc-atelier-modal-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  max-width: 380px;
  width: 100%;
  padding: 20px;
  text-align: center;
}
.cc-atelier-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #1C1917;
  margin: 0 0 8px;
}
.cc-atelier-modal-text {
  font-size: 12px;
  line-height: 1.55;
  color: #57534E;
  margin: 0 0 16px;
}
.cc-atelier-modal-ok {
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: #C5A059;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Panel statics previously written as inline style attributes on partials/atelier/* */
.tier1-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tier1-slot-title {
  font-size: 12px;
  color: #1C1917;
}
#slot-count-badge {
  font-size: 10px;
  font-weight: 700;
  color: #C5A059;
  background: rgba(197, 160, 89, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}
.atelier-ingest-notice {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}
.tier1-layout-tools {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.tier1-layout-tools .btn-link-vault {
  flex: 1;
}
.tier1-assurance-line {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(197, 160, 89, 0.08);
  border-radius: 6px;
  font-size: 11px;
  color: #78716C;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tier1-assurance-mark {
  color: #C5A059;
}
.sub-panel-title--spaced {
  margin-top: 14px;
}
.sub-panel-title--roomy {
  margin-top: 10px;
}
.input-capsule--spaced {
  margin-top: 6px;
}
.prints-linked-line {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 6px;
  font-size: 11px;
  color: #57534E;
}
.tier-standard-note {
  font-size: 11px;
  color: #78716C;
  margin: 6px 0 0;
}
.rim-item-btn .rim-plain-label {
  font-size: 10px;
  color: #A8A29E;
}
.surcharge-note {
  color: var(--ttc-gold);
  font-size: 9px;
}
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid #D6D3D1;
}
.color-dot--sm {
  width: 10px;
  height: 10px;
  margin-right: 4px;
}
.color-dot--imprint {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.gift-card-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--ttc-line, #e5e0d8);
  border-radius: 8px;
  background: transparent;
  color: inherit;
}
.atelier-panel-card--spaced {
  margin-top: 16px;
}
.addon-tag {
  background: rgba(197, 160, 89, 0.15);
  color: #C5A059;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.archive-free-title {
  display: block;
  font-size: 12px;
  color: #1C1917;
  margin-bottom: 4px;
}
.archive-free-copy {
  font-size: 11px;
  color: #57534E;
  margin: 0;
  line-height: 1.4;
}
