/*
 * Script & Poly host theme overrides
 *
 * Ultra-minimal: transparent surfaces, no borders, no shadows.
 * Clean Inter typography throughout.
 */

/* ── Brand tokens ─────────────────────────────────────────────────────────── */
.vtx-expanders {
  --vtx-expanders-primary: #ffffff;
  --vtx-expanders-primary-strong: #ffffff;
  --vtx-expanders-text-primary: #ffffff;
  --vtx-expanders-text-secondary: rgba(255, 255, 255, 0.65);
  --vtx-expanders-text-muted: rgba(255, 255, 255, 0.4);
  --vtx-expanders-divider: transparent;
  --vtx-expanders-hover: rgba(255, 255, 255, 0.08);
  --vtx-expanders-paper: transparent;
  --vtx-expanders-action-hover: rgba(255, 255, 255, 0.08);
  --vtx-expanders-action-selected: rgba(255, 255, 255, 0.14);
  --vtx-expanders-search-bg: rgba(255, 255, 255, 0.08);
  --vtx-expanders-search-border: transparent;
  --vtx-shader-tip-bg: rgba(255, 255, 255, 0.15);
  --vtx-shader-tip-color: #ffffff;
  --vtx-shader-tip-border: rgba(255, 255, 255, 0.15);
  --vtx-ctx-accent: #ffffff;
  --vtx-ctx-selected-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--vtx-expanders-text-primary);
}

/* Dark mode expander tokens */
[data-theme="dark"] .vtx-expanders,
[data-theme="dark"].vtx-expanders {
  --vtx-expanders-primary: #ffffff;
  --vtx-expanders-primary-strong: #ffffff;
  --vtx-expanders-text-primary: #ffffff;
  --vtx-expanders-text-secondary: rgba(255, 255, 255, 0.65);
  --vtx-expanders-text-muted: rgba(255, 255, 255, 0.4);
  --vtx-expanders-divider: transparent;
  --vtx-expanders-hover: rgba(255, 255, 255, 0.08);
  --vtx-expanders-paper: transparent;
  --vtx-expanders-action-hover: rgba(255, 255, 255, 0.08);
  --vtx-expanders-action-selected: rgba(255, 255, 255, 0.14);
  --vtx-expanders-search-bg: rgba(255, 255, 255, 0.08);
  --vtx-expanders-search-border: transparent;
  --vtx-shader-tip-bg: rgba(255, 255, 255, 0.15);
  --vtx-shader-tip-color: #ffffff;
  --vtx-shader-tip-border: rgba(255, 255, 255, 0.15);
}

/* Light mode expander tokens */
[data-theme="light"] .vtx-expanders,
[data-theme="light"].vtx-expanders {
  --vtx-expanders-primary: #111111;
  --vtx-expanders-primary-strong: #000000;
  --vtx-expanders-text-primary: #111111;
  --vtx-expanders-text-secondary: rgba(0, 0, 0, 0.55);
  --vtx-expanders-text-muted: rgba(0, 0, 0, 0.35);
  --vtx-expanders-divider: transparent;
  --vtx-expanders-hover: rgba(0, 0, 0, 0.05);
  --vtx-expanders-paper: transparent;
  --vtx-expanders-action-hover: rgba(0, 0, 0, 0.05);
  --vtx-expanders-action-selected: rgba(0, 0, 0, 0.10);
  --vtx-expanders-search-bg: rgba(0, 0, 0, 0.05);
  --vtx-expanders-search-border: transparent;
  --vtx-shader-tip-bg: rgba(0, 0, 0, 0.08);
  --vtx-shader-tip-color: #111111;
  --vtx-shader-tip-border: rgba(0, 0, 0, 0.10);
}

/* ── Headers ──────────────────────────────────────────────────────────────── */
.vtx-expanders-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: none !important;
}
.vtx-expanders-header:hover {
  background: var(--vtx-expanders-hover);
}
.vtx-expanders-header[aria-expanded="true"] {
  background: transparent;
}
.vtx-expanders-header-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--vtx-expanders-text-primary);
}
.vtx-expanders-header-selected {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--vtx-expanders-text-secondary);
}
.vtx-expanders-header-selected:not(:empty)::before {
  content: '·';
  font-weight: 300;
  color: var(--vtx-expanders-text-muted);
  padding: 0 6px;
}

/* ── Panel title ──────────────────────────────────────────────────────────── */
.panel-header .panel-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vtx-expanders-text-primary);
}

/* ── No shadows ───────────────────────────────────────────────────────────── */
.vtx-viewport3-toolbar {
  --vtx-viewport3-toolbar-shadow: none;
  --vtx-viewport3-retail-shadow: none;
  --vtx-viewport3-retail-flyout-shadow: none;
  box-shadow: none !important;
  opacity: 0.5;
}

.vtx-viewport3-toolbar:hover {
  opacity: 1;
}

.vtx-viewport3-toolbar-flyout {
  box-shadow: none !important;
  opacity: 0.5;
}

.vtx-viewport3-toolbar-flyout:hover {
  opacity: 1;
}

.vtx-host-shell,
.vtx-host-panel,
.vtx-host-panel-inner {
  box-shadow: none !important;
  --shadow: none;
}

.sidebar {
  box-shadow: none !important;
  border-right: none !important;
  border-left: none !important;
}

.collapse-tab {
  box-shadow: none !important;
  border: none !important;
}

.panel-drop-zone {
  border: none !important;
}

.resize-handle {
  background: transparent !important;
}

#dev-pill {
  display: none !important;
}

/* ── No drag handle ───────────────────────────────────────────────────────── */
.vtx-viewport3-drag-handle {
  display: none !important;
}

/* ── No panel title bar ───────────────────────────────────────────────────── */
.panel-header,
.vmc-panel-header {
  display: none !important;
}

/* ── Transparent containers — dark mode (default) ────────────────────────── */
:host,
:host([color-mode="dark"]) {
  --bg: transparent;
  --vtx-viewport3-bg: transparent;
  --surface: transparent;
  --surface2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.85);
  --vtx-expanders-text-primary: #ffffff;
  --vtx-expanders-text-secondary: rgba(255, 255, 255, 0.65);
  --vtx-expanders-divider: rgba(255, 255, 255, 0.15);
  --vtx-expanders-hover: rgba(255, 255, 255, 0.08);
}

/* ── Transparent containers — light mode (black text) ─────────────────────── */
:host([color-mode="light"]) {
  --bg: transparent;
  --vtx-viewport3-bg: transparent;
  --surface: transparent;
  --surface2: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.12);
  --text: #111111;
  --text2: rgba(0, 0, 0, 0.75);
  --vtx-expanders-text-primary: #111111;
  --vtx-expanders-text-secondary: rgba(0, 0, 0, 0.55);
  --vtx-expanders-divider: rgba(0, 0, 0, 0.10);
  --vtx-expanders-hover: rgba(0, 0, 0, 0.05);
}

.vtx-host-wrap,
#viewport-mount,
#canvas-snapshot,
.vtx-viewer-state {
  background: transparent !important;
}
