/* ============================================================================
   SYLLOVO BRANDING BASE DESIGN SYSTEM (syllovo-brand-theme.css)
   Rule: SYLLOVO-IMMUTABLE-BRAND-CSS-01 & MINIMALIST-SINGLE-FOCUS-UX-01
   ----------------------------------------------------------------------------
   Canonical, vendor-agnostic base theme carved out from Syllovo Studio.
   - Default Surface: Pure Crisp ElevenLabs White (#FFFFFF) + Sidebar (#FAFAFA)
   - Primary Ink & Active Pill: Pitch Black (#09090B)
   - Borders: 1px Hairline (#E4E4E7)
   - Typography: Inter (UI) + JetBrains Mono (Timecodes / Code / CLI)
   - UX Law: Never alter this base shell per vendor (Pluralsight, Coursera, etc.).
     Vendor branding applies strictly inside slide/video stage artifacts.
   ============================================================================ */

:root,
[data-theme="light"] {
  --bg-app: #ffffff;
  --bg-sidebar: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-hover: #f4f4f5;
  --bg-active: #09090b;
  --text-active-on-dark: #ffffff;
  --text-main: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #09090b;
  --accent-hover: #27272a;
  --accent-fg: #ffffff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --rose-border: #fecdd3;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg-app: #09090b;
  --bg-sidebar: #121215;
  --bg-surface: #18181b;
  --bg-subtle: #27272a;
  --bg-hover: #27272a;
  --bg-active: #ffffff;
  --text-active-on-dark: #09090b;
  --text-main: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --border-strong: #3f3f46;
  --accent: #fafafa;
  --accent-hover: #e4e4e7;
  --accent-fg: #09090b;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.3);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Minimalist Layout Shell */
.syllovo-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

.syllovo-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.syllovo-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
}

/* Minimalist Segmented Control (Vendor Switcher / Filter Tabs) */
.syllovo-segmented {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.syllovo-segmented-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.syllovo-segmented-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

/* Navigation Item */
.syllovo-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.syllovo-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.syllovo-nav-item.active {
  background: var(--bg-active);
  color: var(--text-active-on-dark);
  font-weight: 600;
}

/* Minimalist Buttons */
.syllovo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

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

.syllovo-btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.syllovo-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Calm Surface Cards & Single-Line Rows */
.syllovo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.syllovo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.syllovo-pill-ok {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.syllovo-pill-warn {
  background: var(--amber-soft);
  color: var(--amber);
}
