/* GENERATED by mgr-design-coordinator via `verdant operator synthesize`.
 * Governed by ISO 9241-210:2019 (Human-Centred Design), W3C DTCG 2025.10, and WCAG 2.2 AA.
 * Strictly uses DTCG custom properties (zero raw hex colors, zero backdrop-filter blur). */

/* ==================== TOP NAVIGATION & BRAND CLARITY ==================== */
.ide-topbar {
  min-height: 3.75rem;
  padding: var(--space-2) clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 1px 0 var(--border);
}
.ide-brand {
  font-size: var(--text-18);
  letter-spacing: -0.025em;
}
.ide-brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent);
}
.ide-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-control);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.ide-nav a:hover {
  background: var(--secondary);
  text-decoration: none;
}

/* ==================== COMPACT STUDIO TEMPLATE & WORKSPACE BAR ==================== */
.vx-journey-banner {
  margin: 0;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: var(--border-width) solid var(--border);
  background: var(--card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.vx-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.vx-toolbar-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-right: 0.2rem;
}
.vx-tmpl-pill {
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: var(--border-width) solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.vx-tmpl-pill:hover {
  border-color: var(--border-strong);
  background: var(--secondary);
}
.vx-tmpl-pill[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
  font-weight: 600;
}

/* ==================== LIVE 3D CREATION TOOLS (ADD PRIMITIVES, OUTLINER, TRANSFORM) ==================== */
.vx-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.vx-add-btn {
  min-height: 2.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.vx-add-btn:hover {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 10%, var(--card));
}
.vx-outliner-list {
  display: grid;
  gap: 0.35rem;
  max-height: 13rem;
  overflow-y: auto;
}
.vx-outliner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border);
  background: var(--background);
  font-size: 0.84rem;
}
.vx-outliner-row[data-selected="true"] {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 10%, var(--card));
}
.vx-outliner-sel {
  flex: 1;
  min-height: 1.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.vx-outliner-del {
  min-height: 1.75rem;
  min-width: 1.75rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  cursor: pointer;
}
.vx-outliner-del:hover {
  border-color: var(--destructive);
  color: var(--destructive);
}
.vx-transform-card {
  padding: 0.85rem;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-strong);
  background: var(--background);
  display: grid;
  gap: 0.65rem;
}
.vx-transform-card[hidden] { display: none; }
.vx-vec3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.vx-vec3-cell {
  display: grid;
  gap: 0.2rem;
}
.vx-vec3-cell label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}
.vx-vec3-cell input {
  width: 100%;
  min-height: 2.1rem;
  padding: 0 0.45rem;
  border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border-strong);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.vx-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vx-swatch-btn {
  min-height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: var(--border-width) solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.78rem;
  cursor: pointer;
}
.vx-swatch-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
  font-weight: 600;
}

/* ==================== CALM EDITORIAL WORKSPACE HIERARCHY ==================== */
.ide-grid {
  padding: clamp(0.85rem, 2vw, 1.5rem);
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}
.ide-left-col,
.ide-center-col,
.ide-right-col {
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}
.ide-pane {
  border-radius: calc(var(--radius) + 0.15rem);
  border-color: var(--border);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.ide-pane-head {
  padding: 0.7rem 0.95rem;
  background: color-mix(in oklab, var(--sidebar) 88%, var(--card));
}
.ide-pane-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-15, 0.95rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ide-pane-sub {
  white-space: nowrap;
}
.right-tab-btn {
  padding: 0.65rem 0.25rem;
  font-size: 0.84rem;
  white-space: nowrap;
}
.cat-cta {
  text-decoration: none;
}
.wf-stage-bar[hidden] {
  display: none;
}
.ide-pane-body {
  padding: 1rem;
  gap: 0.85rem;
}

/* Progressive focus highlighting tied to active guided step */
body[data-studio-focus="world"] #studio-worlds-pane,
body[data-studio-focus="world"] #studio-stage-pane,
body[data-studio-focus="build"] #studio-discovery,
body[data-studio-focus="build"] #studio-right-pane,
body[data-studio-focus="publish"] #studio-publish-pane {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border-strong));
  box-shadow: inset 0 2px 0 var(--brand);
}

/* Refined World Environment Selector Cards */
.proj-domain-btn {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border);
  background: var(--background);
  display: grid;
  gap: 0.25rem;
  text-align: left;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.proj-domain-btn:hover {
  border-color: var(--border-strong);
  background: var(--secondary);
}
.proj-domain-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 10%, var(--card));
}
.proj-domain-btn strong {
  font-family: var(--font-display);
  font-size: var(--text-15, 0.94rem);
  color: var(--foreground);
}
.proj-domain-btn small {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}
.proj-domain-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.15rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--foreground);
}
.proj-domain-btn[aria-pressed="true"] .proj-domain-badge {
  background: var(--brand);
  color: var(--brand-foreground);
}

/* Calm readable status panels instead of raw terminal dumps */
.wiz-log {
  padding: 0.7rem 0.85rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.st-verdict-bar {
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-14);
  color: var(--foreground);
  background: color-mix(in oklab, var(--sidebar) 75%, var(--background));
}

/* Cleaner Asset Discovery & Catalog Cards */
.disc-card {
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.disc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.disc-card-slot {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
}
.cat-organ-card,
.cat-gallery-card {
  border-radius: calc(var(--radius) + 0.15rem);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.cat-organ-card:hover,
.cat-gallery-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Crisp focus visibility (WCAG 2.2 AA) */
.vx-step-card:focus-visible,
.proj-domain-btn:focus-visible,
.st-btn:focus-visible,
.cat-btn:focus-visible,
.right-tab-btn:focus-visible {
  outline: var(--ring-width) solid var(--brand);
  outline-offset: var(--ring-offset);
}

.vx-scale-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.3;
  white-space: nowrap;
}

.vx-scale-badge[data-contract="met"] {
  border-color: var(--brand);
  color: var(--brand);
}
