/**
 * OneTab Media Network ” Unified Design System
 * Shared across Studio, CI OS, Growth, Paglu (with theme overrides)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* Self-hosted Bengali fonts (assets/fonts/) */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hind-siliguri-400.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hind-siliguri-500.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hind-siliguri-600.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hind-siliguri-700.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hind-siliguri-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hind-siliguri-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hind-siliguri-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hind-siliguri-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-sans-bengali-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/noto-sans-bengali-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/noto-sans-bengali-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/noto-sans-bengali-700.woff2') format('woff2');
}

:root {
  /* Core Backgrounds - Deep Space Premium Dark */
  --ot-bg: #060609;
  --ot-bg-elevated: #14141c;
  --ot-bg-subtle: #1e1e2a;
  --ot-bg-hover: #323246;
  --ot-bg-active: #46465f;
  
  /* True Premium Glassmorphism */
  --ot-glass-blur: none;
  --ot-glass-border: 1px solid rgba(255, 255, 255, 0.06);
  --ot-glass-border-glow: 1px solid rgba(255, 255, 255, 0.15);
  --ot-glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  
  /* Borders */
  --ot-border: rgba(255, 255, 255, 0.06);
  --ot-border-strong: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --ot-text: #f8fafc;
  --ot-text-secondary: #cbd5e1;
  --ot-text-tertiary: #94a3b8;
  --ot-text-muted: #64748b;
  
  /* Vibrant Brand Colors */
  --ot-brand: #facc15;
  --ot-brand-dim: #ca8a04;
  --ot-brand-soft: rgba(250, 204, 21, 0.15);
  
  /* Vibrant Accents */
  --ot-accent: #38bdf8;
  --ot-accent-soft: rgba(56, 189, 248, 0.15);
  --ot-green: #34d399;
  --ot-green-soft: rgba(52, 211, 153, 0.15);
  --ot-red: #fb7185;
  --ot-red-soft: rgba(251, 113, 133, 0.15);
  --ot-amber: #fbbf24;
  --ot-amber-soft: rgba(251, 191, 36, 0.15);
  --ot-purple: #c084fc;
  --ot-purple-soft: rgba(192, 132, 252, 0.15);
  
  /* Radius & Shadows */
  --ot-radius-sm: 8px;
  --ot-radius: 12px;
  --ot-radius-lg: 16px;
  --ot-shadow-1: 0 4px 10px rgba(0, 0, 0, 0.3);
  --ot-shadow-2: 0 10px 25px rgba(0, 0, 0, 0.4);
  --ot-shadow-3: var(--ot-glass-shadow);
  
  /* Fonts & Dimensions */
  --ot-font: 'Inter', 'Outfit', system-ui, sans-serif;
  --ot-font-bn: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --ot-mono: 'JetBrains Mono', monospace;
  --ot-sidebar-w: 280px;
  --ot-topbar-h: 64px;
  --ot-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Legacy aliases */
  --bg: var(--ot-bg);
  --bg2: var(--ot-bg-elevated);
  --bg3: var(--ot-bg-subtle);
  --border: var(--ot-border);
  --text: var(--ot-text);
  --text2: var(--ot-text-secondary);
  --gold: var(--ot-brand);
  --accent: var(--ot-accent);
  --green: var(--ot-green);
  --red: var(--ot-red);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ot-bg); color-scheme: dark; }

body.ot-body {
  font-family: var(--ot-font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ot-text);
  background: var(--ot-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
body.ot-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 50%, rgba(192, 132, 252, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(250, 204, 21, 0.05), transparent 50%);
}

/* Locked shell — sidebar stays fixed; only main content scrolls */
body.ot-body.ot-shell-locked {
  height: 100vh;
  overflow: hidden;
}

.ot-mono { font-family: var(--ot-mono); font-feature-settings: 'tnum'; }
.ot-bn { font-family: var(--ot-font-bn); font-weight: 500; }

/* ── App shell ── */
.ot-app {
  display: grid;
  grid-template-columns: var(--ot-sidebar-w) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.ot-sidebar {
  background: var(--ot-bg-elevated);
  backdrop-filter: var(--ot-glass-blur);
  -webkit-backdrop-filter: var(--ot-glass-blur);
  border-right: var(--ot-glass-border);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  max-height: 100vh;
  z-index: 40;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}
.ot-sidebar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(212, 160, 23, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.ot-sidebar > * { position: relative; z-index: 1; }
.ot-sidebar a,
.ot-sidebar a:hover,
.ot-sidebar a:visited,
.ot-sidebar a:active,
.ot-sidebar a:focus {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.ot-sb-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  flex-shrink: 0;
}
.ot-sb-brand--logo-only {
  padding: 14px 16px 12px;
  justify-content: flex-start;
}
.ot-sb-brand--logo-only .ot-sb-logo--img img {
  height: 36px;
  max-width: 180px;
}
.ot-sb-brand--logo-only .ot-sb-logo--img {
  text-decoration: none;
}
.ot-sb-brand--product .ot-sb-product {
  min-width: 0;
}
.ot-sb-brand--product .ot-sb-title { font-size: 13px; }
.ot-sb-brand--product .ot-sb-sub { font-size: 9px; }

.ot-sb-logo {
  width: 36px; height: 36px;
  border-radius: var(--ot-radius-sm);
  background: var(--ot-bg-subtle);
  border: 1px solid var(--ot-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.ot-sb-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Transparent PNG logos ” no box/border */
.ot-sb-logo--img {
  width: auto; height: auto; min-width: 0;
  background: transparent; border: none; border-radius: 0;
  padding: 0; overflow: visible;
}
.ot-sb-logo--img img {
  width: auto; height: 32px; max-width: 160px;
  object-fit: contain; display: block;
}

.ot-sb-title { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ot-sb-sub { font-size: 9px; color: var(--ot-text-muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-top: 2px; }

.ot-sb-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.ot-sb-nav::-webkit-scrollbar { width: 6px; }
.ot-sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.ot-sb-group { margin-bottom: 8px; }
.ot-sb-group + .ot-sb-group { padding-top: 6px; margin-top: 2px; border-top: none; }
.ot-sb-group + .ot-sb-group::before {
  content: '';
  display: block;
  height: 1px;
  margin: 0 12px 8px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.ot-sb-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  padding: 12px 12px 8px;
}

.ot-nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 0 12px; margin-bottom: 3px;
  min-height: 42px;
  border: none; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,0.74);
  font: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer; text-align: left;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
}
.ot-nav-item:hover,
.ot-nav-item:focus-visible {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none !important;
}
.ot-nav-item:visited { color: rgba(255,255,255,0.72); text-decoration: none !important; }
.ot-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ot-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--ot-brand), #e8b923);
}
.ot-nav-item .ot-nav-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  border-radius: 8px;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}
.ot-nav-item:hover .ot-nav-icon { color: rgba(255,255,255,0.88); }
.ot-nav-item.active .ot-nav-icon {
  color: var(--ot-brand);
  background: rgba(212, 160, 23, 0.12);
}
.ot-nav-item svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.ot-sb-footer {
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
  flex-shrink: 0;
}
.ot-sb-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ot-text-secondary); text-decoration: none !important; font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: background var(--ot-transition), border-color var(--ot-transition), color var(--ot-transition);
}
.ot-sb-footer--empty { display: none; }

.ot-sb-link:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: var(--ot-text);
  text-decoration: none !important;
}

.ot-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.ot-topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: var(--ot-topbar-h);
  background: #0d0d12;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: var(--ot-glass-border);
  box-shadow: var(--ot-shadow-1);
  padding: 0 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.ot-topbar-brand {
  display: inline-flex; align-items: center; flex-shrink: 0;
  text-decoration: none; padding: 6px 0;
  transition: opacity var(--ot-transition);
}
.ot-topbar-brand:hover { opacity: 0.88; }
.ot-topbar-logo {
  height: 30px; width: auto; max-width: 168px;
  object-fit: contain; display: block;
}
.ot-topbar-logo-fallback {
  display: none; font-size: 15px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ot-brand);
}
.ot-topbar-brand--fallback .ot-topbar-logo-fallback { display: block; }
.ot-topbar-brand-divider {
  width: 1px; height: 28px; background: var(--ot-border);
  flex-shrink: 0;
}
.ot-topbar-titles { min-width: 0; }
.ot-topbar-title { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.ot-topbar-breadcrumb { font-size: 11px; color: var(--ot-text-tertiary); margin-top: 1px; }

.ot-sb-nav--flush { padding-top: 14px; }
.ot-topbar-spacer { flex: 1; min-width: 12px; }
.ot-topbar { flex-wrap: wrap; row-gap: 8px; }

.ot-main--no-topbar .ot-content { padding-top: 0; max-width: none; padding-left: 0; padding-right: 0; }
.ot-app--no-sidebar { grid-template-columns: 1fr !important; }
.ot-app--no-sidebar .ot-sidebar-backdrop { display: none; }
#mainApp { display: flex; flex-direction: column; min-height: 100vh; }
#mainApp.ot-dashboard-layout {
  height: 100vh;
  overflow: hidden;
}
#mainApp.ot-dashboard-layout > #studio-header { flex-shrink: 0; z-index: 210; }
#mainApp.ot-dashboard-layout > #ot-shell-mounted {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
#mainApp.ot-dashboard-layout > #ot-shell-mounted .ot-app {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
}
#mainApp.ot-dashboard-layout .ot-main {
  background: var(--ot-bg);
  min-width: 0;
}
#mainApp.ot-dashboard-layout .ot-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#mainApp.ot-dashboard-layout #ot-studio-dashboard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#studio-header .hdr-toolbar .nav-btn span[data-oti] { display:inline-flex; align-items:center; }
#ot-studio-dashboard { max-width: none; padding: 0; }

.ot-content {
  padding: 20px 24px 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.ot-main--no-topbar .ot-content {
  max-width: none;
}

/* ── Typography ── */
.ot-page-head { margin-bottom: 20px; }
.ot-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-text-tertiary); }
.ot-h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ot-lead { font-size: 13px; color: var(--ot-text-secondary); margin-top: 6px; max-width: 640px; }

/* ── Buttons ── */
.ot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--ot-radius-sm);
  font: inherit; font-size: 12px; font-weight: 600;
  border: 1px solid var(--ot-border); background: var(--ot-bg-subtle);
  color: var(--ot-text-secondary); cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}
.ot-btn:hover:not(:disabled) { 
  background: var(--ot-bg-hover); 
  color: var(--ot-text); 
  border-color: var(--ot-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.ot-btn:active:not(:disabled) {
  transform: translateY(0);
}
.ot-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ot-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ot-btn-primary { 
  background: linear-gradient(180deg, var(--ot-brand), var(--ot-brand-dim)); 
  color: #1a1408; 
  border-color: var(--ot-brand-dim); 
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.ot-btn-primary:hover:not(:disabled) { 
  filter: brightness(1.1);
  box-shadow: 0 8px 20px var(--ot-brand-soft);
}
.ot-btn-ghost { background: transparent; border-color: transparent; }
.ot-btn-danger { color: var(--ot-red); border-color: rgba(239, 68, 68, 0.35); }
.ot-btn-danger:hover:not(:disabled) { background: var(--ot-red-soft); box-shadow: 0 8px 20px var(--ot-red-soft); }
.ot-btn-sm { padding: 5px 10px; font-size: 11px; }
.ot-btn-icon { padding: 8px; }

/* ── Forms ── */
.ot-field { display: flex; flex-direction: column; gap: 5px; }
.ot-label { font-size: 11.5px; font-weight: 600; color: var(--ot-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.ot-input, .ot-select, .ot-textarea {
  background: rgba(10, 10, 15, 0.6); 
  border: 1px solid var(--ot-border-strong);
  border-radius: var(--ot-radius-sm); padding: 10px 14px;
  font: inherit; font-size: 13px; color: var(--ot-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.ot-input:focus, .ot-select:focus, .ot-textarea:focus {
  outline: none; border-color: var(--ot-brand);
  box-shadow: 0 0 0 3px var(--ot-brand-soft), inset 0 1px 2px rgba(0,0,0,0.2);
  background: rgba(20, 20, 28, 0.8);
}
.ot-search-wrap { position: relative; max-width: 280px; }
.ot-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; stroke: var(--ot-text-muted); fill: none; stroke-width: 2; pointer-events: none; }
.ot-search-wrap .ot-input { padding-left: 32px; width: 100%; }

/* ── Cards & metrics ── */
.ot-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.ot-metric {
  background: var(--ot-bg-elevated); border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius); padding: 14px 16px;
  transition: border-color var(--ot-transition);
}
.ot-metric:hover { border-color: var(--ot-border-strong); }
.ot-metric-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-text-tertiary); }
.ot-metric-value { font-family: var(--ot-mono); font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.ot-metric-delta { font-size: 11px; margin-top: 4px; font-weight: 600; }
.ot-metric-delta.up { color: var(--ot-green); }
.ot-metric-delta.down { color: var(--ot-red); }

.ot-card {
  background: var(--ot-bg-elevated); 
  border: var(--ot-glass-border);
  border-top: var(--ot-glass-border-glow);
  box-shadow: var(--ot-shadow-2);
  backdrop-filter: var(--ot-glass-blur);
  -webkit-backdrop-filter: var(--ot-glass-blur);
  border-radius: var(--ot-radius); 
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--ot-transition);
}
.ot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ot-shadow-3);
  border-color: var(--ot-border-strong);
}
.ot-card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--ot-border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.ot-card-title { font-size: 13px; font-weight: 700; }
.ot-card-sub { font-size: 11px; color: var(--ot-text-tertiary); margin-top: 2px; }
.ot-card-body { padding: 16px 18px; }

.ot-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ot-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Badges & pills ── */
.ot-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.ot-badge-default { background: var(--ot-bg-subtle); color: var(--ot-text-secondary); border: 1px solid var(--ot-border); }
.ot-badge-success { background: var(--ot-green-soft); color: var(--ot-green); border: 1px solid rgba(108, 203, 95, 0.3); }
.ot-badge-warning { background: var(--ot-amber-soft); color: var(--ot-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.ot-badge-danger { background: var(--ot-red-soft); color: var(--ot-red); border: 1px solid rgba(239, 68, 68, 0.3); }
.ot-badge-info { background: var(--ot-accent-soft); color: var(--ot-accent); border: 1px solid rgba(76, 194, 255, 0.3); }
.ot-badge-brand { background: var(--ot-brand-soft); color: var(--ot-brand); border: 1px solid rgba(212, 160, 23, 0.3); }

/* ── Tables ── */
.ot-table-wrap { overflow-x: auto; border-radius: var(--ot-radius-sm); }
.ot-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ot-table th {
  text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-text-tertiary);
  background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--ot-border);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.ot-table th:hover { color: var(--ot-text); }
.ot-table th.sorted { color: var(--ot-brand); }
.ot-table td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,0.02); transition: var(--ot-transition); }
.ot-table tr { transition: var(--ot-transition); }
.ot-table tr:hover td { background: rgba(255,255,255,0.03); }
.ot-table tr:hover td:first-child { border-left: 2px solid var(--ot-brand); }
.ot-table tr:last-child td { border-bottom: none; }
.ot-table .num { font-family: var(--ot-mono); text-align: right; color: var(--ot-text); font-weight: 500; }
.ot-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Progress ── */
.ot-progress { height: 6px; background: rgba(0,0,0,0.5); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }
.ot-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ot-brand), #fbbf24); transition: width 0.4s ease; box-shadow: 0 0 10px var(--ot-brand-soft); }
.ot-progress-fill.green { background: linear-gradient(90deg, var(--ot-green), #10b981); box-shadow: 0 0 10px var(--ot-green-soft); }

/* ── Custom Checkboxes ── */
input[type="checkbox"] {
  appearance: none;
  background-color: rgba(10, 10, 15, 0.6);
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ot-border-strong);
  border-radius: 4px;
  display: grid;
  place-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--ot-bg);
  background-color: var(--ot-bg);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
  background-color: var(--ot-brand);
  border-color: var(--ot-brand);
  box-shadow: 0 0 10px var(--ot-brand-soft);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* ── Premium Scrollbars ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
.ot-progress-fill.blue { background: var(--ot-accent); }

/* ── Charts ── */
.ot-chart { width: 100%; min-height: 180px; }
.ot-chart svg { width: 100%; height: auto; display: block; }
.ot-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--ot-text-secondary); }
.ot-chart-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* ── Skeleton ── */
.ot-skeleton { background: linear-gradient(90deg, var(--ot-bg-subtle) 25%, var(--ot-bg-hover) 50%, var(--ot-bg-subtle) 75%); background-size: 200% 100%; animation: ot-shimmer 1.2s infinite; border-radius: var(--ot-radius-sm); }
@keyframes ot-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ot-skel-line { height: 12px; margin-bottom: 8px; }
.ot-skel-line.w60 { width: 60%; }
.ot-skel-line.w40 { width: 40%; }
.ot-skel-card { height: 88px; }

/* ── Empty state ── */
.ot-empty {
  text-align: center; padding: 48px 24px;
  color: var(--ot-text-tertiary);
}
.ot-empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--ot-bg-subtle);
  border: 1px dashed var(--ot-border-strong);
  display: flex; align-items: center; justify-content: center;
}
.ot-empty-icon svg { width: 28px; height: 28px; stroke: var(--ot-text-muted); fill: none; stroke-width: 1.5; }
.ot-empty h3 { font-size: 15px; font-weight: 600; color: var(--ot-text-secondary); margin-bottom: 6px; }
.ot-empty p { font-size: 12.5px; max-width: 360px; margin: 0 auto 16px; line-height: 1.55; }

/* ── Toast ── */
.ot-toast-host {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.ot-toast {
  pointer-events: auto;
  background: #16161c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; padding: 14px 18px; min-width: 280px; max-width: 400px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; align-items: flex-start; gap: 12px;
  animation: ot-toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ot-toast-in { from { opacity: 0; transform: translateX(40px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.ot-toast.success { border-left: 3px solid var(--ot-green); background: #16241a; }
.ot-toast.error { border-left: 3px solid var(--ot-red); background: #251618; }
.ot-toast.info { border-left: 3px solid var(--ot-accent); background: #161c24; }
.ot-toast-msg { flex: 1; font-size: 13px; color: #f8fafc; font-weight: 500; line-height: 1.4; }
.ot-toast-close { background: none; border: none; color: var(--ot-text-muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; transition: color 0.2s; }
.ot-toast-close:hover { color: #f8fafc; }

/* ── Modal ── */
.ot-modal-bg {
  /* Above Magic Clean / Monet overlays (10050); below Admin gate (100000) */
  position: fixed; inset: 0; z-index: 10100;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.ot-modal-bg.open { display: flex; animation: ot-fade-in 0.3s ease; }
@keyframes ot-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ot-modal {
  background: #1e1e26;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; width: 100%; max-width: 520px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: ot-modal-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ot-modal-in { from { opacity: 0; transform: scale(0.96) translateY(20px); } to { opacity: 1; transform: none; } }
.ot-modal-lg { max-width: 720px; }
.ot-modal-head { padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ot-modal-head h2 { font-size: 18px; font-weight: 700; color: #f8fafc; letter-spacing: -0.2px; }
.ot-modal-body { padding: 24px; overflow-y: auto; flex: 1; color: var(--ot-text-secondary); }
.ot-modal-foot { padding: 18px 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; gap: 10px; justify-content: flex-end; background: rgba(0, 0, 0, 0.1); border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }

/* ── Drawer (drill-down) ── */
.ot-drawer-bg {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(10, 10, 15, 0.65); backdrop-filter: none; -webkit-backdrop-filter: none;
  display: none; opacity: 0; transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ot-drawer-bg.open { display: block; opacity: 1; }
.ot-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw);
  background: #16161c;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 8600; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
}
.ot-drawer.open { transform: translateX(0); }
.ot-drawer-head { padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); }
.ot-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Tabs ── */
.ot-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ot-border); margin-bottom: 16px; flex-wrap: wrap; }
.ot-tab {
  padding: 9px 14px; border: none; background: transparent;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ot-text-tertiary);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--ot-transition);
}
.ot-tab:hover { color: var(--ot-text-secondary); }
.ot-tab.active { color: var(--ot-text); border-bottom-color: var(--ot-brand); }

/* ── Agent / intel cards ── */
.ot-agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ot-agent-card {
  background: var(--ot-bg-subtle); border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius); padding: 14px; cursor: pointer;
  transition: border-color var(--ot-transition), transform var(--ot-transition);
}
.ot-agent-card:hover { border-color: var(--ot-brand-dim); transform: translateY(-1px); }
.ot-agent-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ot-agent-card p { font-size: 11.5px; color: var(--ot-text-tertiary); line-height: 1.45; }

/* ── Verify checklist ── */
.ot-check-list { display: flex; flex-direction: column; gap: 6px; }
.ot-check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--ot-bg-subtle); border: 1px solid var(--ot-border); border-radius: var(--ot-radius-sm);
  font-size: 12.5px;
}
.ot-check-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ot-check-dot.pass { background: var(--ot-green); box-shadow: 0 0 8px var(--ot-green-soft); }
.ot-check-dot.fail { background: var(--ot-red); }

/* ── Channel bar ── */
.ot-channel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; background: var(--ot-bg-subtle);
  border: 1px solid var(--ot-border); border-radius: var(--ot-radius-sm);
}
.ot-channel-bar .ot-select { min-width: 200px; padding: 6px 10px; font-size: 12px; }

/* ── Toolbar ── */
.ot-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ── Panel visibility ── */
.ot-panel { display: none; animation: ot-panel-in 0.2s ease; }
.ot-panel.active { display: block; }
@keyframes ot-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Paglu theme override ── */
body.ot-theme-paglu {
  --ot-brand: #ff8a3d;
  --ot-brand-dim: #cf6f30;
  --ot-brand-soft: rgba(255, 138, 61, 0.14);
  --ot-accent: #5fd0c5;
  --ot-accent-soft: rgba(95, 208, 197, 0.12);
}

/* Growth uses the same shell tokens as the rest of Studio */
body.ot-theme-growth {
  /* inherit default tokens ” no separate palette */
}

/* ── Mobile sidebar backdrop ── */
.ot-sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: none;
  opacity: 0; transition: opacity 0.25s;
}
.ot-sidebar-backdrop.open { display: block; opacity: 1; }

.ot-toast-ic { flex-shrink: 0; display: flex; align-items: center; color: var(--ot-text-secondary); }
.ot-toast.success .ot-toast-ic { color: var(--ot-green); }
.ot-toast.error .ot-toast-ic { color: var(--ot-red); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ot-app { grid-template-columns: 1fr; }
  .ot-main { max-height: 100vh; }
  .ot-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--ot-sidebar-w);
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease; z-index: 100;
  }
  .ot-sidebar.mobile-open { transform: translateX(0); }
  .ot-grid-2, .ot-grid-3 { grid-template-columns: 1fr; }
  .ot-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ot-content { padding: 16px; }
  .ot-metrics { grid-template-columns: 1fr; }
}

/* ── Focus / a11y ── */
:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; }
.ot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }