/**
 * ⚠️ AI-GENERATED CODE - "VIBE-CODING" STYLE ⚠️
 *
 * This code was generated using AI assistance in an experimental "vibe-coding" style.
 * It is intended solely for representing the spec in an alternative visual format.
 * The implementation details may change at any time without notice.
 *
 * Use this viewer as a reference tool only - do not depend on its internal implementation.
 */

/* ===================================
   Design System & CSS Variables
   =================================== */

:root {
  /* Colors - Synchronized with Docusaurus */
  --color-bg-primary: #1b1b1f; /* --c-bg in dark mode */
  --color-bg-secondary: #10151b; /* --c-bg-elev in dark mode */
  --color-bg-tertiary: #141a21; /* --c-card in dark mode */
  --color-bg-elevated: #212a33; /* --c-sep in dark mode */

  --color-border: #212a33;
  --color-border-muted: #2e2e32;

  --color-text-primary: #dfdfd6; /* --lp-c-text-1 */
  --color-text-secondary: #98989f; /* --lp-c-text-2 */
  --color-text-muted: #6a6a71; /* --lp-c-text-3 */

  /* Accent colors */
  --color-brand: #1e8f95; /* --lp-c-brand-1 */
  --color-root: #58a6ff;
  --color-subentity: #1bc97e;
  --color-external-ownership: #f78166;
  --color-ephemeral: #6e7681;
  --color-document: #f78166;

  /* Edge colors */
  --color-composition: #1e8f95;
  --color-association: #32bcac;

  /* Interactive states */
  --color-hover: rgba(30, 143, 149, 0.15);
  --color-active: rgba(30, 143, 149, 0.25);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 20px;
  --space-xl: 32px;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "Menlo", "Monaco", "Consolas", monospace;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Layout */
  --header-height: 52px; /* Matching Docusaurus 3rem approx */
  --sidebar-width: 370px;
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Layout
   =================================== */

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header {
  height: var(--header-height);
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
  max-width: 100%;
  gap: var(--space-xl);
}

.header-center {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.graph-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ===================================
   Header & Logo
   =================================== */

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text {
  white-space: nowrap;
}

.logo-link:hover .logo-text {
  color: var(--color-brand);
}

.back-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--color-border);
  margin-left: var(--space-lg);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--color-brand);
}

.controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.control-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.control-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ===================================
   Form Controls
   =================================== */

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-root);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}

.slider-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--color-root);
}

.select-input {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.select-input:hover,
.select-input:focus {
  border-color: var(--color-root);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(30, 143, 149, 0.3);
}

.btn-secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.icon-btn {
  padding: var(--space-sm);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.icon-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-elevated);
  border-color: var(--color-border);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Interactive States & Misc */


/* ===================================
   Graph Container
   =================================== */

.graph-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(88, 166, 255, 0.03) 0%,
      transparent 50%
    ),
    var(--color-bg-primary);
}

#graph-svg {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#graph-svg:active {
  cursor: grabbing;
}

/* Floating Actions */
.graph-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.graph-actions .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}

.graph-actions .icon-btn:hover {
  background: var(--color-bg-elevated);
  color: var(--color-brand);
}

.graph-actions .icon-btn.active {
  color: var(--color-root);
  background: var(--color-hover);
}

.graph-actions .divider {
  height: 1px;
  background: var(--color-border);
  margin: 2px 4px;
}

/* Graph elements */
.node {
  cursor: pointer;
}

.node circle {
  stroke: none;
  transition: all var(--transition-fast);
}

.node:hover circle {
  stroke-width: 2px;
  filter: drop-shadow(0 0 8px #ffffff);
}

.node.selected circle {
  stroke-width: 2px;
  stroke: #ffffff;
  stroke-opacity: 0.6;
  filter: drop-shadow(0 0 15px #ffffff);
}

.node text {
  font-size: 11px;
  font-weight: 600;
  fill: #ffffff;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.link {
  stroke-width: 1.5px;
  fill: none;
  opacity: 0.6;
  transition:
    opacity var(--transition-fast),
    stroke-width var(--transition-fast);
}

.link:hover {
  opacity: 1;
  stroke-width: 2.5px;
  cursor: pointer;
}

.link.composition {
  stroke: var(--color-composition);
}

.link.association {
  stroke: var(--color-association);
  stroke-dasharray: 5, 5;
}

.node.dimmed,
.link.dimmed {
  opacity: 0.2;
}

.link.highlighted {
  opacity: 1;
  stroke-width: 2.5px;
}

.link.selected {
  opacity: 1;
  stroke-width: 3px;
  stroke: var(--color-text-primary);
  filter: drop-shadow(0 0 5px var(--color-brand));
}

/* Edge labels */
.edge-label {
  font-size: 8px;
  font-weight: 400;
  fill: var(--color-text-muted);
  pointer-events: none;
  text-shadow:
    -1px -1px 0 var(--color-bg-primary),
    1px -1px 0 var(--color-bg-primary),
    -1px 1px 0 var(--color-bg-primary),
    1px 1px 0 var(--color-bg-primary);
}

.edge-label.hidden {
  display: none;
}

/* ===================================
   Legend
   =================================== */

.graph-legend {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xs) var(--space-lg);
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  z-index: 10;
  align-items: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.legend-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.legend-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
  color: var(--color-text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
  color: var(--color-text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-line {
  width: 20px;
  height: 2px;
}

.legend-line.composition {
  background: var(--color-composition);
}

.legend-line.association {
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-association) 0,
    var(--color-association) 5px,
    transparent 5px,
    transparent 8px
  );
}

/* ===================================
   Sidebar
   =================================== */

.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-right: 0;
  transition: margin-right var(--transition-normal);
  overflow: hidden;
}

.sidebar.collapsed {
  margin-right: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}

.sidebar-search {
  padding: 0;
  background: transparent;
  width: 100%;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--color-text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 60px 8px 32px;
  color: var(--color-text-primary);
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-shortcut {
  position: absolute;
  right: 12px;
  display: flex;
  gap: 2px;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

#search-input:focus + .search-shortcut,
#search-input:not(:placeholder-shown) + .search-shortcut {
  opacity: 0;
}

.search-shortcut kbd {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  font-family: inherit;
  color: var(--color-text-muted);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#search-input:focus {
  border-color: var(--color-brand);
}

.clear-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

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

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.search-result-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-muted);
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--color-bg-elevated);
}

.search-result-item mark {
  background: rgba(88, 166, 255, 0.2);
  color: var(--color-brand);
  border-radius: 2px;
  padding: 0 1px;
}

.result-type-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-type-icon.entity {
  /* Dynamic background applied via JS */
}

.result-type-icon.property,
.result-type-icon.relation {
  background: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-tag {
  font-size: 9px;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

#sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
  border-radius: var(--radius-sm);
}

.action-btn:hover,
.danger-btn:hover {
  color: var(--color-danger, #ff4d4d);
  background: rgba(255, 77, 77, 0.1);
  transform: scale(1.1);
}

.close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 20px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.close-btn:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-bg-elevated);
}

.empty-state {
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-xl);
}

/* ===================================
   Sidebar Content Sections
   =================================== */

.section {
  margin-bottom: var(--space-lg);
}

/* Markdown Content */
.markdown-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.markdown-body p {
  margin-bottom: var(--space-md);
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body a {
  color: var(--color-brand);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  color: var(--color-text-primary);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.markdown-body li {
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-muted);
}

.section-content {
  font-size: 13px;
}

/* Node type badge */
.node-type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-type-badge.root {
  background: rgba(88, 166, 255, 0.15);
  color: var(--color-root);
}

.node-type-badge.subentity {
  background: rgba(163, 113, 247, 0.15);
  color: var(--color-subentity);
}

.node-type-badge.external_ownership {
  background: rgba(247, 129, 102, 0.15);
  color: var(--color-external-ownership);
}

.node-type-badge.ephemeral {
  background: rgba(110, 118, 129, 0.15);
  color: var(--color-ephemeral);
}

/* Relations list */
.relation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.relation-item {
  display: flex;
  align-items: center; /* keep vertical alignment */
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-muted);
  cursor: pointer;
  transition: background var(--transition-fast);
  /* No margin or background to match property row */
}

.relation-item:last-child {
  border-bottom: none;
}

.relation-item:hover {
  background: transparent; /* or keep consistent with property row hover if any */
}

/* Hover feedback for clickable parts */
.relation-name-clickable:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-brand);
}

.relation-target-clickable:hover span,
.relation-target-clickable:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-brand);
}

.relation-item.in-graph {
  opacity: 0.6;
}

.relation-indicator {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-right: var(--space-sm);
  margin-top: 1px; /* visual alignment with text */
}

.relation-indicator.composition {
  background: var(--color-composition);
}

.relation-indicator.association {
  background: var(--color-association);
}

/* Left side of relation (Name/Key) */
.relation-name {
  flex: 0 0 40%;
  color: var(--color-text-secondary);
  font-family: var(--font-mono); /* Match property key */
  font-size: 11px;
  font-weight: normal;
  word-break: break-word;
  padding-right: var(--space-sm);
}

/* Right side of relation (Value/Type) */
.relation-type-name,
.relation-type {
  flex: 1;
  font-family: var(--font-mono); /* Match property value code */
  font-size: 11px;
  color: var(--color-text-primary);
  word-break: break-word;
  /* Optional: background pill style like property code */
  /* background: var(--color-bg-tertiary);
       padding: 2px 6px;
       border-radius: var(--radius-sm); */
}

.relation-via {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Properties table */
.properties-table {
  width: 100%;
  font-size: 12px;
}

.property-row {
  display: flex;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-muted);
}

.property-row:last-child {
  border-bottom: none;
}

.property-key {
  flex: 0 0 40%;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-word;
}

.property-value {
  flex: 1;
  color: var(--color-text-primary);
  word-break: break-word;
}

.property-value.code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--color-bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Description */
.description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .controls {
    width: 100%;
    justify-content: space-between;
  }

  .sidebar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }

  :root {
    --sidebar-width: 320px;
  }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  display: block;
}

/* ===================================
   Custom Tippy.js Dark Theme
   =================================== */

.tippy-box[data-theme~="dark-custom"] {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tippy-box[data-theme~="dark-custom"][data-placement^="top"]
  > .tippy-arrow::before {
  border-top-color: var(--color-bg-elevated);
}

.tippy-box[data-theme~="dark-custom"][data-placement^="bottom"]
  > .tippy-arrow::before {
  border-bottom-color: var(--color-bg-elevated);
}

.tippy-box[data-theme~="dark-custom"][data-placement^="left"]
  > .tippy-arrow::before {
  border-left-color: var(--color-bg-elevated);
}

.tippy-box[data-theme~="dark-custom"][data-placement^="right"]
  > .tippy-arrow::before {
  border-right-color: var(--color-bg-elevated);
}

/* Tooltip content styling */
.tippy-box[data-theme~="dark-custom"] .tippy-content {
  padding: var(--space-sm) var(--space-md);
}

.tippy-box[data-theme~="dark-custom"] .tippy-content p {
  margin: 0;
  color: var(--color-text-primary);
}

.tippy-box[data-theme~="dark-custom"] .tippy-content code {
  background: var(--color-bg-secondary);
  color: var(--color-accent);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tippy-box[data-theme~="dark-custom"] .tippy-content a {
  color: var(--color-brand);
  text-decoration: none;
}

.tippy-box[data-theme~="dark-custom"] .tippy-content a:hover {
  text-decoration: underline;
}

/* ===================================
   JSON Schema Section (Collapsible)
   =================================== */

.json-schema-section {
  margin-top: var(--space-lg);
}

.json-schema-section.expanded .collapse-icon {
  transform: rotate(90deg);
}

.json-schema-section .collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.json-schema-section.expanded .collapsible-content {
  max-height: none;
  overflow: visible;
  margin-top: var(--space-sm);
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.collapsible-header:hover {
  background: var(--color-bg-elevated);
}

.collapsible-header h3 {
  flex: 1;
  min-width: 0;
}

.collapse-icon {
  display: inline-block;
  margin-right: var(--space-xs);
  transition: transform 0.2s ease;
  font-size: 10px;
  color: var(--color-text-secondary);
}

.schema-code {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
}

.schema-code code {
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  white-space: pre;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--color-hover);
  color: var(--color-text-primary);
  border-color: var(--color-brand);
}

.copy-btn.copied {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-text {
  font-family: var(--font-sans);
}

/* Property Markers */
.mandatory-marker {
  color: #ff6b6b;
  font-weight: bold;
  margin-left: 2px;
}

.recommended-marker {
  color: #4dabf7;
  font-weight: bold;
  margin-left: 2px;
}
