/* ==============================================================================
   TAVELLE POSTER STUDIO - VENRAFT SOFT-LIGHT MODERN AESTHETICS DESIGN SYSTEM
   Reference: doc/UI/ui_design_specification.md, Workspace.png & Venraft
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Background & Base Canvas */
  --color-canvas-bg: #F4F5F7;
  --color-canvas-pattern: radial-gradient(#CBD5E1 1.2px, transparent 1.2px);

  /* Surface & Cards */
  --color-surface-card: #FFFFFF;
  --color-surface-card-subtle: #F8FAFC;
  --color-surface-dock: rgba(255, 255, 255, 0.94);
  --color-border-card: rgba(226, 232, 240, 0.85);
  --color-border-subtle: rgba(241, 245, 249, 0.95);

  /* Typography Colors */
  --color-text-primary: #0F172A;     /* Slate-900 */
  --color-text-secondary: #475569;   /* Slate-600 */
  --color-text-muted: #94A3B8;       /* Slate-400 */

  /* Fallback Brand Dynamic Accents (Overridden by inline <style id="brand-dynamic-tokens">) */
  --color-brand-primary: #E11D48;
  --color-brand-primary-hover: #BE123C;
  --color-brand-secondary: #0F172A;
  --color-brand-accent: #F43F5E;
  --color-brand-accent-blue: #2563EB;
  --color-brand-accent-emerald: #10B981;

  /* Shadows (Venraft Soft Elevation) */
  --shadow-card-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 2px 8px -1px rgba(0, 0, 0, 0.02);
  --shadow-card-elevated: 0 20px 40px -10px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.03);
  --shadow-dock-floating: 0 25px 50px -12px rgba(15, 23, 42, 0.14), 0 4px 18px rgba(0, 0, 0, 0.05);
  --shadow-pill-button: 0 6px 16px -2px rgba(225, 29, 72, 0.35);

  /* Geometry & Border Radii */
  --radius-pill: 9999px;
  --radius-card-sm: 14px;
  --radius-card-md: 20px;
  --radius-card-lg: 28px;
  --radius-dock: 32px;

  /* Responsive Heights */
  --header-height: 68px;
  --mobile-nav-height: 60px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  height: 100dvh;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-canvas-bg);
  color: var(--color-text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Master Cockpit Grid */
.cockpit-container {
  display: grid;
  grid-template-rows: var(--header-height) 1fr;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.cockpit-body {
  display: flex;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  width: 100vw;
  overflow: hidden;
  background: var(--color-canvas-bg);
}

/* Top Header Bar */
.top-header {
  height: var(--header-height);
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 40;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Properly Shown Modern Sidebar Navigation (250px) */
.sidebar-nav {
  width: 250px;
  min-width: 250px;
  background: var(--color-surface-card);
  border-right: 1px solid var(--color-border-card);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 5px;
  z-index: 30;
  box-shadow: 2px 0 14px rgba(15, 23, 42, 0.03);
}

.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-secondary);
}

.nav-menu-link:hover {
  background: var(--color-surface-card-subtle);
  color: var(--color-text-primary);
  transform: translateX(2px);
}

.nav-menu-link.active {
  background: #FFF1F2;
  border-color: rgba(225, 29, 72, 0.2);
  color: var(--color-brand-primary);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
}

.nav-item-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #64748B;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-menu-link:hover .nav-item-icon-box {
  background: #E2E8F0;
  color: #0F172A;
}

.nav-menu-link.active .nav-item-icon-box {
  background: var(--color-brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Workspace Views Containers */
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(340px, 375px) minmax(330px, 375px);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--color-canvas-bg);
}

.product-workspace,
.gallery-workspace,
.settings-workspace,
.finance-workspace {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px;
  background: #F8FAFC;
}

/* ==============================================================================
   STUDIO 3-COLUMN ARCHITECTURE (Refactored Layout)
   Column 1: .studio-col-result (Image result stage viewport)
   Column 2: .studio-col-controls (.studio-col-products on top, .studio-card-prompt on bottom)
   Column 3: .studio-pane-tools / .studio-col-tools (Tools Panel Full-Height)
   ============================================================================== */

/* Column 1: Image Result & Stage Viewport */
.studio-col-result {
  position: relative;
  background-color: var(--color-surface-card);
  background-image: var(--color-canvas-pattern);
  background-size: 24px 24px;
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 48px 16px 10px 16px;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

/* Floating Canvas Controls (Top Right of Stage) */
.floating-canvas-controls {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card-soft);
  display: flex;
  align-items: center;
  padding: 3px 4px;
  gap: 2px;
  z-index: 25;
}

.canvas-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.canvas-tool-btn:hover {
  background: #F1F5F9;
  color: var(--color-text-primary);
}

/* Aspect Ratio Stage Container */
.live-poster-stage-container {
  box-shadow: var(--shadow-dock-floating);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  margin: auto 0;
}

/* Format Dimensions */
.stage-story-9-16 {
  aspect-ratio: 9 / 16;
  height: min(640px, 100%);
  width: auto;
  max-width: 100%;
}
.stage-feed-1-1 {
  aspect-ratio: 1 / 1;
  height: min(500px, 100%);
  width: auto;
  max-width: 100%;
}
.stage-portrait-4-5 {
  aspect-ratio: 4 / 5;
  height: min(560px, 100%);
  width: auto;
  max-width: 100%;
}
.stage-landscape-16-9 {
  aspect-ratio: 16 / 9;
  width: min(640px, 100%);
  height: auto;
  max-height: 100%;
}

/* Stage Viewport Floating Footer (Metadata Indicators outside Artboard) */
.stage-viewport-footer {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 25;
}

.stage-meta-pill {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card-soft);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.stage-meta-pill:hover {
  background: #ffffff;
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Selected Product Reference Shelf (Horizontal Tray di Bawah Kanvas) */
.selected-products-shelf {
  position: relative;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card-soft);
  padding: 8px 12px;
  z-index: 20;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.selected-products-shelf:hover {
  box-shadow: var(--shadow-card-elevated);
}

.shelf-counter-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  background: #FFF1F2;
  color: var(--color-brand-primary);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 9999px;
}

.shelf-cards-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 1px 3px 1px;
  scroll-behavior: smooth;
}

.shelf-cards-container::-webkit-scrollbar {
  height: 4px;
}
.shelf-cards-container::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}

.shelf-product-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 4px 8px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.shelf-product-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.shelf-thumb-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}

.shelf-ref-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  background: #EEF2FF;
  color: #4F46E5;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.shelf-remove-btn {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
  flex-shrink: 0;
}

.shelf-remove-btn:hover {
  background: #FFF1F2;
  border-color: rgba(225, 29, 72, 0.3);
  color: var(--color-brand-primary);
}

/* Revision Active Banner */
.revision-active-banner {
  animation: pulse-subtle 2s infinite ease-in-out;
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(0.98);
  }
}

/* Column 2: Controls (Product List (top) + Prompt (bottom) Stacked) */
.studio-col-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

/* Product List when mounted in Column 2 (or standalone) */
.studio-col-products,
.studio-card-products {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card-soft);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

.studio-col-controls .studio-col-products {
  height: auto;
}

.studio-card-prompt {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card-soft);
  padding: 14px 16px;
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Column 3: Tools Panel (Full-Height Dedicated Column) */
.studio-col-tools,
.studio-card-tools {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card-soft);
  padding: 14px 16px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: var(--shadow-card-soft);
}

.product-card.selected {
  border: 2px solid var(--color-brand-primary);
  background: #FFF1F2;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
}

/* Pill Badges & Chips */
.chip-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: #F1F5F9;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-pill:hover {
  background: #E2E8F0;
  color: var(--color-text-primary);
}

.chip-pill.active {
  background: var(--color-brand-primary);
  color: #FFFFFF;
}

/* Primary Action CTA Button */
.btn-primary-generate {
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-primary-hover));
  color: #FFFFFF;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-pill-button);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.btn-primary-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(225, 29, 72, 0.45);
}

.btn-primary-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Pulse Animation for Generating */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.animate-pulse-subtle {
  animation: pulse-subtle 1.8s infinite ease-in-out;
}

/* Prompt Revision Notice Card */
.prompt-revision-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeIn 0.2s ease-out;
}

/* Multimodal Formula Assembly Strip */
.prompt-formula-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.prompt-formula-strip[hidden],
.prompt-formula-strip.hidden {
  display: none !important;
}

.formula-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  user-select: none;
}

.formula-chip.chip-active {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.formula-chip.chip-muted {
  background: #F1F5F9;
  color: #94A3B8;
  border: 1px solid #E2E8F0;
}

.formula-chip.chip-warning {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.formula-chip.chip-revision {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

/* Sleek Dark Scrollbar for Debug Pre Code Blocks */
pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
pre::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
}
pre::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}
pre::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* ==============================================================================
   TAVELLE RESPONSIVE ENGINE & BREAKPOINT SPECIFICATIONS
   Breakpoints:
   - Mobile:  max-width: 767px
   - Tablet:  min-width: 768px and max-width: 1023px
   - Desktop: min-width: 1024px
   ============================================================================== */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height, 60px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border-card);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 40;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
  user-select: none;
}

.mobile-nav-btn:hover {
  color: var(--color-text-primary);
}

.mobile-nav-btn.active {
  color: var(--color-brand-primary);
}

.mobile-nav-btn.active .mobile-nav-icon-wrap {
  transform: translateY(-1px);
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------------------
   MOBILE VIEWPORT (< 768px)
   ------------------------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --header-height: 56px;
    --mobile-nav-height: 60px;
  }

  .top-header {
    height: var(--header-height);
    padding: 0 12px;
  }

  .sidebar-nav {
    display: none !important;
  }

  .cockpit-body {
    height: calc(100dvh - var(--header-height) - var(--mobile-nav-height));
    width: 100vw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Single Column Studio Stream */
  .studio-workspace {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    height: auto;
    min-height: 100%;
    overflow-y: visible;
  }

  .studio-pane-result,
  .studio-col-controls,
  .studio-pane-products,
  .studio-pane-tools {
    width: 100%;
    height: auto;
  }

  .studio-col-result {
    padding: 44px 10px 42px 10px;
    border-radius: var(--radius-card-md);
    min-height: 380px;
    height: auto;
  }

  .floating-canvas-controls {
    top: 8px;
    right: 8px;
    padding: 2px;
    gap: 2px;
  }

  .canvas-tool-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .stage-story-9-16 {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: calc(100dvh - 300px);
  }

  .stage-feed-1-1 {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: calc(100dvh - 300px);
  }

  .stage-portrait-4-5 {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: calc(100dvh - 300px);
  }

  .stage-landscape-16-9 {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100dvh - 300px);
  }

  .studio-col-controls,
  .studio-col-products,
  .studio-col-tools,
  .studio-card-tools {
    height: auto;
    overflow: visible;
  }

  .product-workspace,
  .gallery-workspace,
  .settings-workspace,
  .finance-workspace {
    padding: 12px;
    padding-bottom: calc(var(--mobile-nav-height) + 24px);
  }

  .stage-viewport-footer {
    position: static;
    margin-top: 10px;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    pointer-events: auto;
  }

  .stage-meta-pill {
    justify-content: center;
    width: 100%;
  }
}

/* ------------------------------------------------------------------------------
   TABLET VIEWPORT (768px to 1023px) - DUAL-PANE HYBRID COCKPIT
   ------------------------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .sidebar-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .studio-mobile-nav-pills {
    display: none !important;
  }

  .cockpit-body {
    height: calc(100dvh - var(--header-height));
  }

  .studio-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 1.25fr) minmax(320px, 360px);
    padding: 12px;
    gap: 12px;
    height: 100%;
    overflow: hidden;
  }

  .studio-pane-result {
    height: 100%;
    overflow: hidden;
    min-width: 0;
  }

  .studio-pane-inspector {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 8px;
  }

  .studio-pane-inspector .studio-col-controls,
  .studio-pane-inspector .studio-pane-products,
  .studio-pane-inspector .studio-pane-tools {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
  }

  .product-workspace,
  .gallery-workspace,
  .settings-workspace,
  .finance-workspace {
    padding: 16px;
    padding-bottom: 24px;
    height: 100%;
    overflow-y: auto;
  }
}

/* ------------------------------------------------------------------------------
   DESKTOP VIEWPORT (>= 1024px) - FULL 3-COLUMN COCKPIT
   ------------------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .mobile-bottom-nav,
  .mobile-sidebar-drawer,
  .studio-mobile-nav-pills,
  .studio-tablet-nav-pills {
    display: none !important;
  }

  .studio-pane-inspector {
    display: contents;
  }

  .studio-pane-result,
  .studio-pane-products,
  .studio-pane-tools {
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

/* Clean search input appearance across WebKit/Blink */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

