﻿/**
 * OneTab Media Network â€” Unified Design System
 * Shared across Studio, CI OS, Growth, Paglu (with theme overrides)
 */
/* 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');
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ot-bg: #1a1a1c;
  --ot-bg-elevated: #212124;
  --ot-bg-subtle: #2a2a2e;
  --ot-bg-hover: #2f2f33;
  --ot-bg-active: #353539;
  --ot-border: #34343a;
  --ot-border-strong: #45454f;
  --ot-text: #f4f4f5;
  --ot-text-secondary: #b4b4be;
  --ot-text-tertiary: #8b8b96;
  --ot-text-muted: #6b6b76;
  --ot-brand: #d4a017;
  --ot-brand-dim: #a87f12;
  --ot-brand-soft: rgba(212, 160, 23, 0.14);
  --ot-accent: #4cc2ff;
  --ot-accent-soft: rgba(76, 194, 255, 0.12);
  --ot-green: #6ccb5f;
  --ot-green-soft: rgba(108, 203, 95, 0.12);
  --ot-red: #ef4444;
  --ot-red-soft: rgba(239, 68, 68, 0.12);
  --ot-amber: #f59e0b;
  --ot-amber-soft: rgba(245, 158, 11, 0.12);
  --ot-purple: #a78bfa;
  --ot-purple-soft: rgba(167, 139, 250, 0.12);
  --ot-radius-sm: 6px;
  --ot-radius: 10px;
  --ot-radius-lg: 14px;
  --ot-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --ot-shadow-2: 0 4px 16px rgba(0, 0, 0, 0.4);
  --ot-shadow-3: 0 12px 40px rgba(0, 0, 0, 0.5);
  --ot-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ot-font-bn: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
  --ot-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
  --ot-sidebar-w: 260px;
  --ot-topbar-h: 56px;
  --ot-transition: 0.15s ease;
  /* Legacy aliases (Studio compatibility) */
  --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;
}

/* 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: linear-gradient(180deg, #212124 0%, #1a1a1c 52%, #171719 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  max-height: 100vh;
  z-index: 40;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.4), 4px 0 24px rgba(0, 0, 0, 0.18);
}
.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: rgba(20, 20, 22, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--ot-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  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 var(--ot-transition); white-space: nowrap;
}
.ot-btn:hover:not(:disabled) { background: var(--ot-bg-hover); color: var(--ot-text); border-color: var(--ot-border-strong); }
.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); }
.ot-btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.ot-btn-ghost { background: 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); }
.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: 11px; font-weight: 600; color: var(--ot-text-secondary); }
.ot-input, .ot-select, .ot-textarea {
  background: var(--ot-bg-subtle); border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius-sm); padding: 9px 12px;
  font: inherit; font-size: 13px; color: var(--ot-text);
  transition: border-color var(--ot-transition), box-shadow var(--ot-transition);
}
.ot-input:focus, .ot-select:focus, .ot-textarea:focus {
  outline: none; border-color: var(--ot-brand-dim);
  box-shadow: 0 0 0 3px var(--ot-brand-soft);
}
.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: 1px solid var(--ot-border);
  border-radius: var(--ot-radius); overflow: hidden;
  margin-bottom: 16px;
}
.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: collapse; font-size: 12.5px; }
.ot-table th {
  text-align: left; padding: 10px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ot-text-tertiary);
  background: var(--ot-bg-subtle); border-bottom: 1px solid var(--ot-border);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.ot-table th:hover { color: var(--ot-text-secondary); }
.ot-table th.sorted { color: var(--ot-brand); }
.ot-table td { padding: 11px 12px; border-bottom: 1px solid var(--ot-border); vertical-align: middle; }
.ot-table tr:hover td { background: var(--ot-bg-hover); }
.ot-table tr:last-child td { border-bottom: none; }
.ot-table .num { font-family: var(--ot-mono); text-align: right; }
.ot-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* â”€â”€ Progress â”€â”€ */
.ot-progress { height: 6px; background: var(--ot-bg-subtle); border-radius: 99px; overflow: hidden; }
.ot-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ot-brand), var(--ot-brand-dim)); transition: width 0.4s ease; }
.ot-progress-fill.green { background: var(--ot-green); }
.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: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.ot-toast {
  pointer-events: auto;
  background: var(--ot-bg-elevated); border: 1px solid var(--ot-border-strong);
  border-radius: var(--ot-radius); padding: 12px 16px; min-width: 280px; max-width: 400px;
  box-shadow: var(--ot-shadow-3);
  display: flex; align-items: flex-start; gap: 10px;
  animation: ot-toast-in 0.25s ease;
}
@keyframes ot-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ot-toast.success { border-left: 3px solid var(--ot-green); }
.ot-toast.error { border-left: 3px solid var(--ot-red); }
.ot-toast.info { border-left: 3px solid var(--ot-accent); }
.ot-toast-msg { flex: 1; font-size: 12.5px; }
.ot-toast-close { background: none; border: none; color: var(--ot-text-muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; }

/* â”€â”€ Modal â”€â”€ */
.ot-modal-bg {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ot-modal-bg.open { display: flex; animation: ot-fade-in 0.2s ease; }
@keyframes ot-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ot-modal {
  background: var(--ot-bg-elevated); border: 1px solid var(--ot-border-strong);
  border-radius: var(--ot-radius-lg); width: 100%; max-width: 520px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: var(--ot-shadow-3); animation: ot-modal-in 0.25s ease;
}
@keyframes ot-modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.ot-modal-lg { max-width: 720px; }
.ot-modal-head { padding: 16px 20px; border-bottom: 1px solid var(--ot-border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ot-modal-head h2 { font-size: 16px; font-weight: 700; }
.ot-modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.ot-modal-foot { padding: 14px 20px; border-top: 1px solid var(--ot-border); display: flex; gap: 8px; justify-content: flex-end; }

/* â”€â”€ Drawer (drill-down) â”€â”€ */
.ot-drawer-bg {
  position: fixed; inset: 0; z-index: 8500; background: rgba(0, 0, 0, 0.5);
  display: none; opacity: 0; transition: opacity 0.25s;
}
.ot-drawer-bg.open { display: block; opacity: 1; }
.ot-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw);
  background: var(--ot-bg-elevated); border-left: 1px solid var(--ot-border);
  z-index: 8600; transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; box-shadow: var(--ot-shadow-3);
}
.ot-drawer.open { transform: translateX(0); }
.ot-drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--ot-border); }
.ot-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }

/* â”€â”€ 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.55); backdrop-filter: blur(2px);
  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; }