/* ==========================================================================
   STUDIO SHARED VIEWPORT CHASSIS (v5.6.0 - LEAN ARCHITECTURE)
   Core split-plane layout, container query grid, and shared card primitives.
   Domain views colocated into their respective feature stylesheets.
   ========================================================================== */

.studio-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: studioViewport;
}

.studio-view {
  display: none;
  height: 100%;
  width: 100%;
  overflow-y: auto;
}

.studio-view.active {
  display: flex;
  flex-direction: column;
}

.view-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  height: calc(100vh - 78px);
  overflow: hidden;
}

.view-plane-left, .view-plane-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.companion-card {
  background: #121212;
  border: 2px solid #151515;
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.companion-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.companion-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header-bar {
  background: #121212;
  border: 2px solid #151515;
  border-radius: 15px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.summary-banner {
  background: #101010;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Pixelated Chunky Industrial Progress Bar */
.pixel-progress-track {
  background: #0e0e0e !important;
  border: 1px solid #262626 !important;
  border-radius: 0 !important;
  padding: 1px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pixel-progress-fill {
  border-radius: 0 !important;
  height: 100% !important;
  background: repeating-linear-gradient(
    90deg,
    var(--status-green-text, #34d399) 0px,
    var(--status-green-text, #34d399) 6px,
    #0e0e0e 6px,
    #0e0e0e 8px
  ) !important;
  image-rendering: pixelated;
  transition: width 0.15s steps(10, end);
}

@media (max-width: 960px) {
  .view-split-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
  .view-plane-left, .view-plane-right {
    height: auto;
    min-height: 380px;
  }
}