:root {
  --bg-canvas: #050607;
  --bg-surface: #0b0d10;
  --bg-raised: #11141a;
  --bg-elevated: #161a22;
  --bg-vault: #07090c;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f7fa;
  --text-secondary: rgba(230, 236, 245, 0.70);
  --text-muted: rgba(230, 236, 245, 0.45);
  --accent-cyan: #18d7e5;
  --accent-cyan-hover: #2ce6f0;
  --accent-cyan-fill: rgba(24, 215, 229, 0.12);
  --accent-cyan-border: rgba(24, 215, 229, 0.36);
  --accent-emerald: #10b981;
  --accent-emerald-fill: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-fill: rgba(245, 158, 11, 0.13);
  --accent-female: #f472b6;
  --accent-male: #60a5fa;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --rail-width: 248px;
  --dock-height: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* Studio Shell Layout */
.vm2-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  padding-bottom: calc(var(--dock-height) + 24px);
}

/* Left Studio Rail */
.vm2-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px calc(var(--dock-height) + 18px);
  overflow-y: auto;
  z-index: 30;
}

.vm2-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.vm2-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(24, 215, 229, 0.22), rgba(24, 215, 229, 0.04));
  border: 1px solid var(--accent-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.vm2-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vm2-brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm2-version-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-cyan-fill);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
}

.vm2-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.vm2-nav-group {
  margin-bottom: 18px;
}

.vm2-nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 6px;
}

.vm2-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vm2-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.14s ease, color 0.14s ease;
}

.vm2-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.vm2-nav-link.is-active {
  background: var(--accent-cyan-fill);
  color: var(--text-primary);
  border: 1px solid rgba(24, 215, 229, 0.24);
  font-weight: 600;
}

.vm2-nav-link-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.vm2-nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.82;
  flex-shrink: 0;
}

.vm2-nav-link.is-active .vm2-nav-icon {
  color: var(--accent-cyan);
  opacity: 1;
}

.vm2-nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.vm2-nav-link.is-active .vm2-nav-badge {
  background: rgba(24, 215, 229, 0.22);
  color: var(--accent-cyan);
}

/* Rail EAV Studio Bridge Card */
.vm2-rail-bridge {
  background: linear-gradient(180deg, rgba(24, 215, 229, 0.08) 0%, rgba(17, 20, 26, 0.9) 100%);
  border: 1px solid var(--accent-cyan-border);
  border-radius: var(--radius-md);
  padding: 13px;
  margin-top: 12px;
}

.vm2-rail-bridge-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.vm2-rail-bridge-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.vm2-rail-bridge-copy {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.vm2-rail-bridge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--accent-cyan);
  color: #041014;
  font-weight: 700;
  font-size: 12px;
  transition: background 0.14s ease;
}

.vm2-rail-bridge-cta:hover {
  background: var(--accent-cyan-hover);
}

/* Mobile Header */
.vm2-mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vm2-mobile-nav-strip {
  display: none;
  overflow-x: auto;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.vm2-mobile-nav-strip::-webkit-scrollbar {
  display: none;
}

/* Main Workspace */
.vm2-main {
  min-width: 0;
  padding: 24px 32px 48px;
  max-width: 1480px;
}

/* Top Utility Bar */
.vm2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.vm2-telemetry-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vm2-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-secondary);
}

.vm2-stat-pill strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

.vm2-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-emerald);
}

.vm2-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm2-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.vm2-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vm2-btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.vm2-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  color: #041014;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease;
  white-space: nowrap;
}

.vm2-btn-primary:hover {
  background: var(--accent-cyan-hover);
}

/* Discover Hero & Search Workbench */
.vm2-discover-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.vm2-search-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vm2-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm2-h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.vm2-lead {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  max-width: 68ch;
}

/* Search Bar */
.vm2-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm2-search-input-wrap {
  position: relative;
  flex: 1;
}

.vm2-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.vm2-search-input {
  width: 100%;
  height: 46px;
  padding: 0 92px 0 42px;
  background: var(--bg-vault);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vm2-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(24, 215, 229, 0.14);
}

.vm2-search-input::placeholder {
  color: var(--text-muted);
}

.vm2-search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  pointer-events: none;
}

.vm2-quick-queries {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.vm2-quick-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-right: 2px;
}

.vm2-query-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: border-color 0.14s ease, color 0.14s ease;
}

.vm2-query-chip:hover {
  border-color: var(--accent-cyan-border);
  color: var(--text-primary);
}

/* Openness + Workflow Value Card */
.vm2-value-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.vm2-value-steps {
  display: grid;
  gap: 10px;
}

.vm2-value-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.vm2-step-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-cyan-fill);
  border: 1px solid var(--accent-cyan-border);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm2-step-body strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
}

.vm2-step-body span {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Lens & Filter Bar */
.vm2-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.vm2-lens-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.vm2-lens-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
}

.vm2-lens-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.vm2-lens-tab.is-active {
  color: var(--text-primary);
  background: var(--accent-cyan-fill);
  border-color: var(--accent-cyan-border);
}

.vm2-host-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm2-host-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.vm2-host-pill.is-active,
.vm2-host-pill:hover {
  border-color: var(--accent-cyan-border);
  color: var(--text-primary);
}

/* Model Studio Stream (Rows) */
.vm2-model-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm2-model-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.45fr) minmax(210px, 0.95fr) minmax(240px, 1.15fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.vm2-model-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-raised);
}

.vm2-model-row.is-playing {
  border-color: var(--accent-cyan);
  background: linear-gradient(90deg, rgba(24, 215, 229, 0.07) 0%, var(--bg-raised) 45%);
}

/* Play Button */
.vm2-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.vm2-play-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-fill);
}

.vm2-play-btn.is-playing {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #041014;
}

.vm2-play-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Row Identity */
.vm2-row-identity {
  min-width: 0;
}

.vm2-row-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vm2-row-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-fill);
  border: 1px solid var(--accent-cyan-border);
  padding: 1px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

.vm2-row-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm2-row-title:hover {
  color: var(--accent-cyan);
}

.vm2-row-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.vm2-row-subtitle {
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm2-tech-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.vm2-mos-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-emerald-fill);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
}

.vm2-accord-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(24, 215, 229, 0.08);
  color: var(--accent-cyan);
}

/* Row Inline Audition & Pitch Strip */
.vm2-row-audition {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vm2-row-audition-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.vm2-base-toggle {
  display: inline-flex;
  background: var(--bg-vault);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 1px;
}

.vm2-base-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.vm2-base-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.vm2-pitch-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vm2-pitch-pill {
  flex: 1;
  min-width: 32px;
  height: 24px;
  border-radius: 5px;
  background: var(--bg-vault);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  transition: all 0.12s ease;
}

.vm2-pitch-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.vm2-pitch-pill.is-active {
  background: var(--accent-cyan-fill);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Row Open Source URL Vault Cell */
.vm2-row-vault {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  background: var(--bg-vault);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
}

.vm2-vault-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vm2-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.vm2-host-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cyan);
}

.vm2-host-dot.huggingface { background: #f59e0b; }
.vm2-host-dot.drive { background: #34d399; }
.vm2-host-dot.mega { background: #f87171; }
.vm2-host-dot.pixeldrain { background: #a78bfa; }

.vm2-vault-size {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.vm2-vault-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.vm2-vault-url-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.vm2-vault-url-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.vm2-copy-url-btn {
  border: 1px solid var(--border-default);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.vm2-copy-url-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Row Actions */
.vm2-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.vm2-save-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-vault);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
}

.vm2-save-btn:hover,
.vm2-save-btn.is-saved {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-fill);
}

.vm2-use-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent-cyan);
  color: #041014;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  transition: background 0.14s ease;
}

.vm2-use-voice-btn:hover {
  background: var(--accent-cyan-hover);
}

.vm2-use-pitch-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(4, 16, 20, 0.16);
  color: #041014;
}

/* ==========================================================================
   MODEL STUDIO PAGE (/model/<slug>)
   ========================================================================== */

.vm2-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.vm2-breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm2-breadcrumb-links a:hover {
  color: var(--accent-cyan);
}

.vm2-studio-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 1.18fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.vm2-studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.vm2-model-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.vm2-model-avatar {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  flex-shrink: 0;
}

.vm2-model-title-wrap {
  min-width: 0;
  flex: 1;
}

.vm2-model-h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.vm2-model-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.vm2-model-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Open Model Vault Card on /model/<slug> */
.vm2-open-vault {
  background: var(--bg-vault);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 18px;
}

.vm2-open-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vm2-open-vault-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-primary);
}

.vm2-verified-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-emerald-fill);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.vm2-exact-url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  margin-bottom: 10px;
}

.vm2-exact-url-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  word-break: break-all;
  line-height: 1.4;
  user-select: all;
}

.vm2-vault-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vm2-vault-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.vm2-vault-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* EasyAIVoice Conversion Handoff Box on /model/<slug> */
.vm2-handoff-box {
  background: linear-gradient(180deg, rgba(24, 215, 229, 0.10) 0%, rgba(17, 20, 26, 0.95) 100%);
  border: 1px solid var(--accent-cyan-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.vm2-handoff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vm2-handoff-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.vm2-handoff-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.vm2-intent-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.vm2-intent-option {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.65);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.vm2-intent-option strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
}

.vm2-intent-option span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vm2-intent-option.is-active {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-fill);
}

.vm2-handoff-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.vm2-handoff-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--accent-cyan);
  color: #041014;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.14s ease;
}

.vm2-handoff-primary-cta:hover {
  background: var(--accent-cyan-hover);
}

/* Sample Deck & 9-Pitch Sweet-Spot Matrix */
.vm2-deck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vm2-deck-player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-vault);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.vm2-deck-active-meta {
  min-width: 150px;
}

.vm2-deck-active-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.vm2-deck-active-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.vm2-deck-audio {
  flex: 1;
  height: 36px;
  min-width: 0;
}

.vm2-sweet-matrix {
  background: var(--bg-vault);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px;
}

.vm2-matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.vm2-matrix-quick-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm2-matrix-chip-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
}

.vm2-matrix-chip-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.vm2-matrix-row {
  display: grid;
  grid-template-columns: 68px repeat(9, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  margin-bottom: 6px;
}

.vm2-matrix-row:last-child {
  margin-bottom: 0;
}

.vm2-matrix-base-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.vm2-matrix-cell {
  position: relative;
  min-height: 58px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.12s ease;
}

.vm2-matrix-cell::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--mos-pct, 35%);
  background: linear-gradient(0deg, rgba(24, 215, 229, 0.28), rgba(24, 215, 229, 0.03));
  pointer-events: none;
}

.vm2-matrix-cell:hover {
  border-color: var(--border-strong);
}

.vm2-matrix-cell.is-active {
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 0 1px var(--accent-cyan);
  background: rgba(24, 215, 229, 0.14);
}

.vm2-matrix-cell.is-best {
  border-color: rgba(245, 158, 11, 0.8);
}

.vm2-cell-pitch {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.vm2-cell-mos {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.vm2-gender-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-muted);
}

.vm2-gender-dot.female { background: var(--accent-female); }
.vm2-gender-dot.male { background: var(--accent-male); }

/* Voice Accords & Similar Voices Grid */
.vm2-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.vm2-accords-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vm2-accord-box {
  background: var(--bg-vault);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
}

.vm2-accord-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.vm2-accord-meter {
  margin-bottom: 7px;
}

.vm2-accord-meter:last-child {
  margin-bottom: 0;
}

.vm2-accord-meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.vm2-accord-meter-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.vm2-accord-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
}

/* Similar Voices Cards */
.vm2-soundalikes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vm2-soundalike-card {
  background: var(--bg-vault);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.vm2-soundalike-card:hover {
  border-color: var(--border-strong);
}

/* Persistent Bottom Studio Dock */
.vm2-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dock-height);
  background: rgba(11, 13, 16, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.vm2-dock-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vm2-dock-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vm2-dock-scrubber {
  flex: 1;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.vm2-dock-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 78px;
  text-align: right;
}

.vm2-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toast Notification */
.vm2-toast {
  position: fixed;
  bottom: calc(var(--dock-height) + 16px);
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vm2-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shortlist Slide-Over Drawer */
.vm2-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: none;
}

.vm2-drawer-backdrop.is-open {
  display: block;
}

.vm2-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--dock-height);
  width: min(420px, 92vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.vm2-drawer.is-open {
  transform: translateX(0);
}

.vm2-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vm2-drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .vm2-discover-header,
  .vm2-studio-composer,
  .vm2-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vm2-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vm2-model-row {
    grid-template-columns: 42px minmax(180px, 1.3fr) minmax(180px, 1fr) auto;
  }
  .vm2-row-vault {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  html, body {
    overflow-x: hidden;
  }
  .vm2-shell {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }
  .vm2-rail {
    display: none;
  }
  .vm2-mobile-topbar {
    display: flex;
  }
  .vm2-mobile-nav-strip {
    display: flex;
  }
  .vm2-main {
    padding: 14px 12px 40px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .vm2-topbar,
  .vm2-hide-mobile {
    display: none !important;
  }
  .vm2-spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vm2-studio-card,
  .vm2-search-panel,
  .vm2-value-panel {
    padding: 14px;
    min-width: 0;
  }
  .vm2-deck-player-bar {
    flex-wrap: wrap;
  }
  .vm2-deck-audio {
    width: 100%;
    flex: 1 1 100%;
  }
  .vm2-model-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .vm2-row-audition,
  .vm2-row-vault {
    grid-column: 1 / -1;
  }
  .vm2-matrix-row {
    grid-template-columns: 48px repeat(9, minmax(38px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .vm2-accords-grid,
  .vm2-soundalikes-grid,
  .vm2-intent-selector {
    grid-template-columns: minmax(0, 1fr);
  }
  .vm2-dock {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
    gap: 10px;
  }
  .vm2-dock-controls {
    display: none;
  }
}
