/* ── Antigravity Studio 2026 Design Tokens ── */
:root {
  /* Ultra-Deep Obsidian Surfaces */
  --bg-main: #08090d;
  --bg-sidebar: #0d0f16;
  --bg-card: #121522;
  --bg-card-subtle: #171b2d;
  --bg-card-hover: #1c2238;
  --bg-input: rgba(18, 21, 34, 0.88);
  --bg-tertiary: #141827;

  /* Precision Borders & Frosted Glass */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-focus: #6366f1;
  --border-accent: rgba(99, 102, 241, 0.45);
  --blur-glass: blur(28px) saturate(200%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  /* Ink Hierarchy */
  --ink-title: #ffffff;
  --ink-primary: #f8fafc;
  --ink-secondary: #94a3b8;
  --ink-muted: #64748b;
  --ink-faint: #475569;

  /* Accents & Glows */
  --accent-indigo: #6366f1;
  --accent-indigo-light: #818cf8;
  --accent-indigo-glow: rgba(99, 102, 241, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-coral: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 9999px;

  /* Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Background */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Brand Glyph Spark */
.brand-glyph-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #06b6d4, #6366f1 60%, #a855f7);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  position: relative;
}

/* Buttons & Interactive Elements */
.icon-btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--border-hairline);
}

.icon-btn-ghost:active {
  transform: scale(0.96);
}

.icon-btn-ghost.active {
  background: var(--bg-card-subtle);
  color: #fff;
  border-color: var(--border-subtle);
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Utility Hidden */
.hidden {
  display: none !important;
}
