/* =====================================================================
   ClipForge AI — Design System v2 ("Studio Noir")
   Tokens • Base • Layout • Components • Views • Stage 9:16 • Motion
   ===================================================================== */

/* ---------- Fontes de legenda (usadas na prévia 9:16 e no render) ---------- */
@font-face { font-family: "Montserrat Black"; src: url("/static/fonts/Montserrat-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Montserrat ExtraBold"; src: url("/static/fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/static/fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bangers"; src: url("/static/fonts/Bangers-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins ExtraBold"; src: url("/static/fonts/Poppins-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/static/fonts/BebasNeue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik Black"; src: url("/static/fonts/Rubik-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/static/fonts/Oswald-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Superfícies (escala neutra levemente fria) */
  --bg: #07080c;
  --bg-elev: #0b0d13;
  --surface: #0f1219;
  --surface-2: #151924;
  --surface-3: #1c2130;
  --overlay: rgba(9, 11, 17, 0.72);

  /* Bordas */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Texto */
  --text: #eef0f6;
  --text-2: #b4bac8;
  --muted: #7d8597;
  --faint: #545b6b;

  /* Marca */
  --primary: #8b5cf6;
  --primary-2: #a78bfa;
  --primary-hover: #7c3aed;
  --primary-soft: rgba(139, 92, 246, 0.14);
  --primary-ring: rgba(139, 92, 246, 0.35);
  --accent: #22d3a6;
  --accent-soft: rgba(34, 211, 166, 0.12);
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #c084fc 45%, #22d3a6 100%);
  --grad-primary: linear-gradient(180deg, #9b6dff 0%, #7c3aed 100%);

  /* Semânticas */
  --emerald: #22c58b;
  --amber: #f5b544;
  --red: #f05252;
  --sky: #38bdf8;
  --kick: #53fc18;
  --twitch: #a970ff;
  --youtube: #ff3b3b;
  --tiktok: #25f4ee;

  /* Forma & profundidade */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px var(--primary-ring), 0 8px 30px -6px rgba(139, 92, 246, 0.45);

  /* Tipografia */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.22s;

  --sidebar-w: 264px;
  --topbar-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: var(--primary-2); }
strong { font-weight: 650; }
code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(255,255,255,0.06); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: #d8ccff; }
hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

/* Ícones SVG (sprite) */
.i { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-sm { width: 14px; height: 14px; }
.i-xs { width: 12px; height: 12px; vertical-align: -2px; }
.i-lg { width: 20px; height: 20px; }
.i-xl { width: 28px; height: 28px; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Ambiente de fundo (aurora + grão) ---------- */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.bg-fx .orb-a { width: 620px; height: 620px; top: -260px; right: -120px; background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 65%); animation: orbFloat 22s var(--ease) infinite alternate; }
.bg-fx .orb-b { width: 520px; height: 520px; bottom: -260px; left: 12%; background: radial-gradient(circle, rgba(34, 211, 166, 0.2), transparent 65%); animation: orbFloat 28s var(--ease) infinite alternate-reverse; }
.bg-fx .orb-c { width: 420px; height: 420px; top: 30%; left: 45%; background: radial-gradient(circle, rgba(192, 132, 252, 0.12), transparent 70%); animation: orbFloat 34s var(--ease) infinite alternate; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 20%, transparent 75%);
}
.bg-fx .grain {
  position: absolute; inset: -50%; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

/* ---------- Shell ---------- */
.app-shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* Barra mobile */
.mobile-bar {
  display: none; justify-content: space-between; align-items: center;
  padding: 10px 16px; height: 56px;
  background: rgba(9, 11, 17, 0.8); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 60;
}
.brand-mini { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand-mini .brand-logo { width: 30px; height: 30px; border-radius: 9px; }
.sidebar-scrim { display: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, rgba(13, 15, 22, 0.86), rgba(9, 11, 16, 0.92));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; }
.brand-logo {
  position: relative; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.65), inset 0 1px 0 rgba(255,255,255,0.35);
  overflow: hidden;
}
.brand-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: logoShine 5s ease-in-out infinite 1.2s;
}
@keyframes logoShine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.brand-logo .i { width: 20px; height: 20px; stroke-width: 2.2; position: relative; z-index: 1; }
.brand h1 { font-size: 16.5px; font-weight: 750; }
.brand-sub { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }

.nav-menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); padding: 14px 12px 6px;
}
.nav-group-label:first-child { padding-top: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; min-height: 40px;
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  border-radius: 10px; cursor: pointer;
  font: 500 13.5px/1.2 var(--font); text-align: left;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-item .i { color: var(--muted); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease-spring); }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-item:hover .i { color: var(--text); transform: scale(1.08); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.04));
  border-color: rgba(139, 92, 246, 0.28);
}
.nav-item.active .i { color: var(--primary-2); }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.9);
}
.nav-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-label small { font-size: 11px; color: var(--muted); font-weight: 450; margin-top: 2px; }
.nav-item.active .nav-label small { color: #b9a6f5; }
.badge {
  margin-left: auto; min-width: 22px; text-align: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.badge-green { background: rgba(255,255,255,0.05); color: var(--muted); }
.badge-green.on { background: rgba(34, 197, 139, 0.14); color: #4ade9b; border-color: rgba(34, 197, 139, 0.32); }

.sidebar-footer { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.cadence-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(34, 211, 166, 0.07), rgba(255,255,255,0.02) 60%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.cadence-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.cadence-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.cadence-ring .track { stroke: rgba(255, 255, 255, 0.07); }
.cadence-ring .prog { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 4px rgba(34, 211, 166, 0.6)); }
.cadence-ring .i { position: absolute; inset: 0; margin: auto; color: var(--accent); }
.cadence-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
.cadence-timer { font: 700 22px/1.15 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cadence-sub { font-size: 11.5px; color: var(--muted); }
.cadence-card.is-on .cadence-timer { color: #5eead4; }

.auth-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px;
}
.auth-user-row { display: flex; align-items: center; gap: 10px; }
.auth-avatar {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(34, 211, 166, 0.7);
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-name { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-email { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-badges { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.auth-mini-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: rgba(34, 197, 139, 0.12); color: #4ade9b; border: 1px solid rgba(34, 197, 139, 0.22); }

/* ---------- Main & Topbar ---------- */
.main-content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 32px; min-height: var(--topbar-h);
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.9), rgba(7, 8, 12, 0.66));
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; }
.topbar-crumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 550; margin-bottom: 3px; }
.topbar-crumb .i { width: 12px; height: 12px; }
.topbar h2 { font-size: 19px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar p { margin-top: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62ch; }
.topbar-stats { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.stat-group {
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: 12px;
}
.stat-pill { padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 74px; }
.stat-pill + .stat-pill { border-left: 1px solid var(--border); }
.stat-pill span { font-size: 10.5px; color: var(--muted); font-weight: 550; letter-spacing: 0.02em; white-space: nowrap; }
.stat-pill strong { font: 700 16px/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.topbar-profile-pill {
  height: 44px; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text);
  padding: 0 14px 0 12px; border-radius: 12px; font: 600 12.5px var(--font); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  max-width: 220px;
}
.topbar-profile-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-profile-pill:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.05); }
.tp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--faint); flex-shrink: 0; }
.tp-dot.online { background: var(--emerald); box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.18); }

.view-wrap { padding: 28px 32px 56px; width: 100%; max-width: 1640px; margin: 0 auto; }

/* Seções de view com transição */
.view-section { display: none; }
.view-section.active { display: block; animation: viewIn 0.45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.012));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.card-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-2); border: 1px solid rgba(139, 92, 246, 0.22);
}
.card-icon.green { background: var(--accent-soft); color: var(--accent); border-color: rgba(34, 211, 166, 0.22); }
.card-icon.amber { background: rgba(245, 181, 68, 0.12); color: var(--amber); border-color: rgba(245, 181, 68, 0.22); }
.card-icon.red { background: rgba(240, 82, 82, 0.12); color: #ff7a7a; border-color: rgba(240, 82, 82, 0.22); }
.card-icon.sky { background: rgba(56, 189, 248, 0.12); color: var(--sky); border-color: rgba(56, 189, 248, 0.22); }
.card-title-row { display: flex; gap: 12px; align-items: flex-start; }

/* Efeito "spotlight" que segue o mouse */
.fx-glow { --mx: 50%; --my: 50%; }
.fx-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(167, 139, 250, 0.45), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.fx-glow:hover::before { opacity: 1; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: #cbb8ff; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.24);
  padding: 3px 10px; border-radius: 999px;
}
.tag-pill.green { color: #6ff0c9; background: rgba(34, 211, 166, 0.1); border-color: rgba(34, 211, 166, 0.24); }
.tag-pill.red { color: #ff9a9a; background: rgba(240, 82, 82, 0.1); border-color: rgba(240, 82, 82, 0.26); }
.tag-pill.neutral { color: var(--text-2); background: rgba(255,255,255,0.05); border-color: var(--border); }

.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Formulários ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 550; color: var(--text-2); }
.field-hint { font-size: 11px; color: var(--muted); font-weight: 450; }

input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="email"], select, textarea {
  width: 100%; height: 40px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border-strong); color: var(--text);
  padding: 0 12px; border-radius: 10px; font: 450 13px var(--font);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
textarea { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--border-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16); background: rgba(0,0,0,0.4); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8597' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
select option { background: #12151e; color: var(--text); }
input[type="file"] { font: 500 12.5px var(--font); color: var(--muted); }
input[type="file"]::file-selector-button {
  font: 600 12px var(--font); color: var(--text); background: var(--surface-3);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer;
}

/* Checkbox custom */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 17px; height: 17px; margin: 0; border-radius: 5px;
  border: 1.5px solid var(--border-hover); background: rgba(0,0,0,0.3);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
input[type="checkbox"]::after {
  content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.18s var(--ease-spring);
}
input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }

/* Switch (toggle) */
input[type="checkbox"].switch {
  width: 40px; height: 23px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.08); position: relative;
}
input[type="checkbox"].switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border: 0; border-radius: 50%;
  background: #fff; transform: none; margin: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: left 0.25s var(--ease-spring);
}
input[type="checkbox"].switch:checked { background: var(--emerald); border-color: var(--emerald); }
input[type="checkbox"].switch:checked::after { left: 19px; transform: none; }

/* Range */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0 var(--pct), rgba(255,255,255,0.1) var(--pct) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.1); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25), 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.25), 0 2px 6px rgba(0,0,0,0.5); }
input[type="range"]:focus { box-shadow: none; background: transparent; }

.checkbox-label {
  flex-direction: row; align-items: center; gap: 9px; color: var(--text-2); cursor: pointer;
  font-weight: 500; font-size: 12.5px; user-select: none;
}
.checkbox-label:hover { color: var(--text); }
.switch-row {
  flex-direction: row; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text); cursor: pointer;
}
.switch-row small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 450; margin-top: 2px; }

.stack-form { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inline-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 13px var(--font); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  cursor: pointer; user-select: none;
  transition: transform 0.16s var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-sm .i { width: 14px; height: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn-icon { width: 32px; padding: 0; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-primary); color: #fff;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 18px -6px rgba(124, 58, 237, 0.8);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.28) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 26px -6px rgba(124, 58, 237, 0.9); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-secondary { background: rgba(255,255,255,0.045); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
.btn-emerald {
  background: linear-gradient(180deg, #2fe0a6, #16b884); color: #03231a; border-color: rgba(255,255,255,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 6px 18px -6px rgba(34, 197, 139, 0.7);
}
.btn-emerald:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-danger { background: rgba(240, 82, 82, 0.08); color: #ff8a8a; border-color: rgba(240, 82, 82, 0.22); }
.btn-danger:hover { background: rgba(240, 82, 82, 0.16); border-color: rgba(240, 82, 82, 0.45); color: #ffb0b0; }
.btn-tiktok { background: #0b0b0f; color: #fff; border-color: rgba(37, 244, 238, 0.45); box-shadow: -2px 0 0 rgba(254, 44, 85, 0.6) inset; }
.btn-tiktok:hover { border-color: var(--tiktok); }
.btn-youtube { background: linear-gradient(180deg, #ff4a4a, #dc1f1f); color: #fff; border-color: rgba(255,255,255,0.14); }
.btn-youtube:hover { filter: brightness(1.08); }
.btn-google { background: #fff; color: #1f2937; border-color: #e5e7eb; font-weight: 650; }
.btn-google:hover { background: #f3f4f6; }
.g-logo { width: 16px; height: 16px; flex-shrink: 0; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Segmented control */
.segmented {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
}
.segmented .btn { height: 30px; border-radius: 8px; background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; padding: 0 12px; }
.segmented .btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.segmented .btn.active, .segmented .btn.btn-primary {
  background: var(--surface-3); color: #fff; border-color: var(--border-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 8px rgba(0,0,0,0.35); filter: none;
}
.segmented .btn.btn-primary::after { display: none; }
.filter-pills { display: flex; gap: 2px; flex-wrap: wrap; }
.inline-filter-wrap {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-2);
}
.inline-filter-wrap:focus-within { border-color: rgba(139,92,246,0.55); color: var(--text); }
.game-filter-select {
  background: transparent; border: none; color: var(--text); font: 600 12px var(--font-sans, inherit);
  outline: none; cursor: pointer; padding-right: 4px; max-width: 190px;
}
.game-filter-select option { background: #12141c; color: #eef0f6; }

/* ---------- Section header ---------- */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 40px 0 16px; flex-wrap: wrap; }
.section-header h3 { font-size: 18px; font-weight: 720; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-header p { margin-top: 5px; font-size: 12.5px; color: var(--muted); max-width: 70ch; }
.section-header p strong { color: var(--text-2); }

/* ---------- Dashboard: Hero de ingestão ---------- */
.hero-ingest-card {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 30px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background:
    radial-gradient(900px 300px at 0% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 260px at 100% 100%, rgba(34, 211, 166, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(20, 22, 32, 0.9), rgba(12, 14, 20, 0.92));
  box-shadow: var(--shadow-lg);
}
.hero-ingest-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.7), transparent) top / 60% 1px no-repeat;
  animation: heroLine 6s ease-in-out infinite;
}
@keyframes heroLine { 0%, 100% { background-position: -60% 0; } 50% { background-position: 160% 0; } }
.hero-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-header h3 { font-size: 28px; font-weight: 780; letter-spacing: -0.03em; margin-top: 12px; max-width: 32ch; }
.hero-header h3 .grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-header p { color: var(--text-2); font-size: 13.5px; margin-top: 8px; max-width: 60ch; }
.hero-platforms { display: flex; gap: 8px; align-items: center; }
.plat-dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); transition: transform 0.3s var(--ease-spring); }
.plat-dot:hover { transform: translateY(-3px) rotate(-4deg); }
.plat-dot.kick { color: var(--kick); }
.plat-dot.twitch { color: var(--twitch); }
.plat-dot.youtube { color: var(--youtube); }
.plat-dot.tiktok { color: var(--tiktok); }

.ingest-form { display: flex; flex-direction: column; gap: 14px; }
.command-bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px;
  background: rgba(0, 0, 0, 0.38); border: 1px solid var(--border-strong); border-radius: 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.command-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.14), 0 10px 40px -10px rgba(139, 92, 246, 0.5); }
.command-bar > .i { color: var(--muted); }
.command-bar input[type="text"] { flex: 1; border: 0; background: transparent; height: 44px; font-size: 14.5px; padding: 0 4px; box-shadow: none; }
.command-bar input[type="text"]:focus { box-shadow: none; background: transparent; }
.command-bar .btn { height: 44px; border-radius: 11px; }
.command-bar .divider-v { width: 1px; height: 24px; background: var(--border-strong); }

.upload-dropzone {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1.5px dashed rgba(167, 139, 250, 0.3); background: rgba(139, 92, 246, 0.035);
  border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--text-2);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.upload-dropzone .dz-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); flex-shrink: 0; }
.upload-dropzone .dz-text { flex: 1; min-width: 180px; }
.upload-dropzone .dz-text strong { color: var(--text); display: block; font-size: 13px; }
.upload-dropzone .dz-text span { font-size: 11.5px; color: var(--muted); }
.upload-dropzone.dragover { background: rgba(34, 211, 166, 0.09); border-color: var(--accent); transform: scale(1.01); }
.upload-dropzone.dragover .dz-icon { background: var(--accent-soft); color: var(--accent); animation: bob 0.8s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(-4px); } }
#upload-status-text { font-size: 12px; color: var(--accent); font-weight: 600; }

.options-panel { border: 1px solid var(--border); border-radius: 16px; background: rgba(0,0,0,0.18); }
.options-panel > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-2); user-select: none;
}
.options-panel > summary::-webkit-details-marker { display: none; }
.options-panel > summary .chev { margin-left: auto; transition: transform 0.3s var(--ease); color: var(--muted); }
.options-panel[open] > summary .chev { transform: rotate(180deg); }
.options-panel > summary:hover { color: var(--text); }
.options-panel .summary-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.options-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 4px 16px 16px; align-items: end; }
@media (max-width: 1100px) { .options-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .options-row { grid-template-columns: 1fr; } }
.options-row .opt-toggles { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.options-panel[open] .options-row { animation: fadeDown 0.35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Jobs */
.jobs-panel { margin-top: 16px; display: grid; gap: 8px; }
.jobs-panel:empty { display: none; }
.job-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
}
.job-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.05); color: var(--text-2); }
.job-row.is-running .job-icon { background: var(--primary-soft); color: var(--primary-2); }
.job-row.is-running .job-icon .i { animation: spin 1.2s linear infinite; }
.job-row.is-completed .job-icon { background: rgba(34, 197, 139, 0.12); color: var(--emerald); }
.job-row.is-failed .job-icon { background: rgba(240, 82, 82, 0.12); color: #ff7a7a; }
.job-body { min-width: 0; }
.job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 7px; }
.job-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.job-status { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-row.is-completed .job-status { color: var(--emerald); }
.job-row.is-failed .job-status { color: #ff7a7a; }
.job-msg { font-size: 11.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-bar { height: 5px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-fill { position: relative; height: 100%; background: var(--grad-brand); border-radius: inherit; transition: width 0.6s var(--ease); overflow: hidden; }
.job-row.is-running .progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmerMove 1.4s linear infinite;
}
.job-row.is-failed .progress-fill { background: linear-gradient(90deg, #f05252, #f59e7a); }
@keyframes shimmerMove { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Live Spotlight ---------- */
.live-spotlight-card { padding: 20px; }
.spotlight-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.spotlight-header h3 { font-size: 17px; font-weight: 720; margin-top: 10px; }
.spotlight-switcher {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px;
  scroll-snap-type: x mandatory; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.switch-pill {
  scroll-snap-align: start; flex-shrink: 0;
  background: rgba(255,255,255,0.035); border: 1px solid var(--border); color: var(--text-2);
  height: 34px; padding: 0 13px; border-radius: 999px; font: 600 12.5px var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.switch-pill .sp-game { font-weight: 450; color: var(--muted); font-size: 11.5px; }
.switch-pill:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.06); }
.switch-pill.active { background: #fff; border-color: #fff; color: #0b0c10; box-shadow: 0 6px 20px -6px rgba(255,255,255,0.35); }
.switch-pill.active .sp-game { color: #4b5162; }
.dot-live { width: 7px; height: 7px; border-radius: 999px; background: var(--faint); display: inline-block; flex-shrink: 0; position: relative; }
.dot-live.online { background: #ff3b4e; }
.dot-live.online::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ff3b4e; animation: livePulse 1.6s var(--ease) infinite; }
@keyframes livePulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; align-items: stretch; }
.spotlight-player-wrap {
  position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9;
  display: grid; place-items: center; border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}
.spotlight-player-wrap iframe, .spotlight-player-wrap img { width: 100%; height: 100%; border: 0; object-fit: cover; animation: fadeIn 0.5s var(--ease); }
.spotlight-info-panel {
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.sp-info-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sp-name { font: 720 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.sp-game-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6ff0c9; margin-top: 8px; font-weight: 550; }
.sp-title { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amber); margin-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-actions .btn:first-child { grid-column: 1 / -1; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; padding: 28px 20px; }
.empty-state .i { width: 30px; height: 30px; color: var(--faint); }
.empty-state strong { color: var(--text-2); font-size: 14px; }

/* ---------- Plataforma badges ---------- */
.platform-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap;
}
.plat-kick { background: rgba(83, 252, 24, 0.1); color: var(--kick); border-color: rgba(83, 252, 24, 0.25); }
.plat-twitch { background: rgba(169, 112, 255, 0.14); color: #c9a8ff; border-color: rgba(169, 112, 255, 0.3); }
.plat-youtube { background: rgba(255, 59, 59, 0.12); color: #ff8686; border-color: rgba(255, 59, 59, 0.28); }
.plat-tiktok { background: rgba(37, 244, 238, 0.1); color: #6ff7f3; border-color: rgba(37, 244, 238, 0.26); }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  font-size: 10.5px; font-weight: 750; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--text-2); border: 1px solid var(--border); font-family: var(--font);
}
.live-pill.online { background: rgba(255, 59, 78, 0.14); color: #ff8a96; border-color: rgba(255, 59, 78, 0.35); }
.live-pill.online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 8px #ff3b4e; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- Streamers grid ---------- */
.streamers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.streamer-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: riseIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.streamer-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(139,92,246,0.12); }
.streamer-card.is-live { border-color: rgba(255, 59, 78, 0.25); }
.streamer-preview-strip {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(139,92,246,0.25), transparent 60%), linear-gradient(135deg, #121522, #0c0e15);
  display: grid; place-items: center; cursor: pointer;
}
.streamer-preview-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease), filter 0.4s var(--ease); }
.streamer-card:hover .streamer-preview-strip img { transform: scale(1.06); }
.streamer-preview-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 35%, transparent 55%, rgba(0,0,0,0.75) 100%); pointer-events: none; }
.strip-play {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  opacity: 0; transform: scale(0.8); transition: all 0.3s var(--ease-spring);
}
.streamer-card:hover .strip-play { opacity: 1; transform: scale(1); }
.strip-initial { font: 800 34px var(--font-display); color: rgba(255,255,255,0.16); letter-spacing: -0.04em; }
.live-badge-overlay {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px;
  background: rgba(8, 10, 15, 0.72); color: #dfe3ec; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.12);
}
.live-badge-overlay.online { background: #ff2d46; color: #fff; border-color: rgba(255,255,255,0.25); box-shadow: 0 4px 14px rgba(255, 45, 70, 0.5); }
.live-badge-overlay.online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
.game-badge-overlay {
  position: absolute; z-index: 2; bottom: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #f3f5fa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.streamer-body { padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.streamer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.streamer-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.streamer-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font: 750 14px var(--font-display); color: #fff; background: var(--surface-3); border: 1px solid var(--border-strong); }
.streamer-avatar.kick { background: linear-gradient(135deg, #1d3d10, #0f1f08); color: var(--kick); }
.streamer-avatar.twitch { background: linear-gradient(135deg, #3a2167, #1d1036); color: #d0b3ff; }
.streamer-avatar.youtube { background: linear-gradient(135deg, #4d1414, #260909); color: #ff9b9b; }
.streamer-ident strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-ident small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; margin-top: auto; }
.streamer-actions .btn { padding: 0 8px; }

/* ---------- Clipes descobertos ---------- */
.discovered-panel { margin-top: 24px; padding: 20px; }
.discovered-panel .section-header { margin-top: 0; }
.discovered-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.disc-card {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); border-radius: 16px; padding: 10px 10px 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: riseIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.disc-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 22px 44px -22px rgba(0,0,0,0.9), 0 0 30px -12px rgba(139, 92, 246, 0.45); }
.disc-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #090b11; }
.disc-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.disc-card:hover .disc-thumb { transform: scale(1.07); }
.disc-thumb-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 40%, transparent 65%, rgba(0,0,0,0.6)); pointer-events: none; }
.disc-thumb-empty { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; }
.disc-badge-plat, .disc-badge-type, .disc-badge-dur {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 750; letter-spacing: 0.04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.disc-badge-plat { top: 8px; left: 8px; background: rgba(8, 10, 15, 0.72); color: #f1f3f8; border: 1px solid rgba(255,255,255,0.12); }
.disc-badge-type { top: 8px; right: 8px; color: #fff; }
.disc-badge-type.is-game { background: rgba(124, 58, 237, 0.85); }
.disc-badge-type.is-nongame { background: rgba(14, 140, 200, 0.85); }
.disc-badge-dur { bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.75); color: #fff; font-variant-numeric: tabular-nums; }
.disc-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; padding: 0 2px; }
.disc-meta { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px; }
.disc-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-style-hint { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #cbb8ff; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.2); padding: 6px 9px; border-radius: 9px; }
.disc-auto-banner {
  position: relative; overflow: hidden;
  margin-bottom: 16px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(34, 211, 166, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(34, 211, 166, 0.3);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.disc-auto-banner::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--grad-brand); animation: indet 1.6s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.banner-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; }
.banner-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.drawer {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border-strong); border-radius: 16px; padding: 16px; margin-bottom: 16px;
  animation: fadeDown 0.35s var(--ease);
}

/* ---------- Skeletons ---------- */
.skeleton {
  position: relative; overflow: hidden; background: rgba(255,255,255,0.045); border-radius: 10px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmerMove 1.5s ease-in-out infinite;
}
.sk-card { border-radius: 16px; border: 1px solid var(--border); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.sk-thumb { aspect-ratio: 16/9; border-radius: 11px; }
.sk-line { height: 11px; border-radius: 6px; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.w40 { width: 40%; }

/* ---------- Studio ---------- */
.studio-layout { display: grid; grid-template-columns: 300px minmax(340px, auto) minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-list, .studio-inspector {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow);
}
.studio-list { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; max-height: calc(100vh - var(--topbar-h) - 44px); }
.studio-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.studio-list-header h3 { font-size: 15px; font-weight: 700; }
#studio-storage-info { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.studio-filter-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.search-input { position: relative; }
.search-input .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-input input { padding-left: 34px; }
.studio-filter-bar input, .studio-filter-bar select { height: 36px; font-size: 12.5px; }
.studio-filter-bar select { width: 104px; padding-right: 26px; }
.studio-filter-bar .search-input input { min-width: 0; width: 100%; }
.studio-bulk-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px;
  padding: 4px 6px 4px 10px; margin-bottom: 10px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; border: 1px solid var(--border);
}
.studio-bulk-bar .checkbox-label { font-size: 12px; }
.clips-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px 4px 2px 2px; margin-right: -6px; flex: 1; min-height: 120px; }
.clip-card {
  position: relative;
  display: grid; grid-template-columns: 17px 50px minmax(0, 1fr); gap: 10px; align-items: center;
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 13px; padding: 9px 10px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  animation: riseIn 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.clip-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.035); }
.clip-card.active {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 166, 0.05));
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.clip-mini-thumb { width: 50px; height: 76px; border-radius: 8px; object-fit: cover; background: #000; border: 1px solid var(--border-strong); }
.clip-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.clip-card-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-card-dates { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.clip-card-dates div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-card-actions { display: flex; gap: 4px; margin-top: 6px; opacity: 0.0; transform: translateY(2px); transition: all var(--dur) var(--ease); }
.clip-card:hover .clip-card-actions, .clip-card.active .clip-card-actions { opacity: 1; transform: none; }
.clip-mini-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2);
  border-radius: 6px; height: 22px; padding: 0 7px; font: 600 10.5px var(--font); cursor: pointer; text-decoration: none;
}
.clip-mini-btn .i { width: 11px; height: 11px; }
.clip-mini-btn:hover { border-color: var(--border-hover); color: var(--text); }
.clip-mini-btn.del:hover { border-color: rgba(240,82,82,0.5); color: #ff8a8a; background: rgba(240,82,82,0.08); }
.rank-tag { font-size: 10px; font-weight: 700; color: var(--text-2); background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.score-badge { display: inline-flex; align-items: center; gap: 3px; font: 750 11.5px var(--font); padding: 2px 7px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.score-high { background: rgba(34, 197, 139, 0.14); color: #4ade9b; border-color: rgba(34, 197, 139, 0.3); }
.score-mid { background: rgba(245, 181, 68, 0.13); color: #fbc75a; border-color: rgba(245, 181, 68, 0.28); }
.score-low { background: rgba(240, 82, 82, 0.12); color: #ff8a8a; border-color: rgba(240, 82, 82, 0.26); }

/* Stage / Preview */
.studio-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.preview-mode-bar { display: flex; justify-content: center; }
.preview-toolbar { display: flex; justify-content: space-between; width: 100%; max-width: 336px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.toggle-chip { display: inline-flex; white-space: nowrap; flex-shrink: 0; flex-direction: row; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--text-2); }
.resolution-pill { display: inline-flex; overflow: hidden; text-overflow: ellipsis; min-width: 0; align-items: center; gap: 6px; font: 600 11px var(--font-mono); color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.resolution-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.phone-shell {
  position: relative; padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #2a2f3d, #12151d 40%, #1b1f2b);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 90px -30px rgba(0,0,0,0.95), 0 0 80px -30px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255,255,255,0.15);
}
.phone-shell::before { /* botões laterais */
  content: ""; position: absolute; right: -2px; top: 120px; width: 3px; height: 54px; border-radius: 0 3px 3px 0; background: #2a2f3d;
}
.phone-frame {
  position: relative; width: 318px; height: 565px; background: #000; border-radius: 36px; overflow: hidden;
  border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 30; box-shadow: 0 0 0 1px rgba(255,255,255,0.04); pointer-events: none; }
.live-stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #05070c; }
.hidden-decoder { position: absolute; width: 2px; height: 2px; opacity: 0.001; pointer-events: none; }
#studio-preview-canvas { width: 100%; height: 100%; display: block; background: #05070c; }
.no-clip-placeholder {
  position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px;
  background: radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.22), transparent 60%), #07080d; color: var(--muted); font-size: 13px;
}
.no-clip-placeholder .ph-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); color: var(--primary-2); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Safe zones overlay */
.safe-zone-overlay { position: absolute; inset: 0; z-index: 20; pointer-events: none; font: 700 9.5px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); animation: fadeIn 0.3s var(--ease); }
.safe-zone-overlay > div { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(255,255,255,0.4); border-radius: 6px; }
.sz-top { top: 0; left: 0; right: 0; height: 14%; background: rgba(240, 82, 82, 0.22); border-radius: 0 !important; border-width: 0 0 1px !important; }
.sz-bottom { bottom: 0; left: 0; right: 0; height: 22%; background: rgba(240, 82, 82, 0.22); border-radius: 0 !important; border-width: 1px 0 0 !important; }
.sz-right { right: 0; top: 40%; bottom: 22%; width: 15%; background: rgba(245, 181, 68, 0.22); writing-mode: vertical-rl; border-radius: 0 !important; border-width: 0 0 0 1px !important; }
.sz-hook-zone { top: 15%; left: 8%; right: 18%; height: 8%; background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.7) !important; }
.sz-face-zone { top: 26%; left: 8%; right: 18%; height: 20%; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.6) !important; }
.sz-caption-zone { top: 48%; left: 8%; right: 18%; height: 14%; background: rgba(34, 211, 166, 0.14); border-color: rgba(34, 211, 166, 0.7) !important; }

/* Player dock */
.player-dock {
  width: 336px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  animation: riseIn 0.4s var(--ease);
}
.dock-scrubber-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.dock-scrubber-row input[type="range"] { --pct: 0%; }
.dock-scrubber-row input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) 0 var(--pct), rgba(255,255,255,0.1) var(--pct) 100%); }
.hud-time { font: 600 11px var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; text-align: center; }
.dock-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dock-left { display: flex; align-items: center; gap: 8px; }
.play-circle-btn {
  width: 42px; height: 42px; border-radius: 999px; border: none;
  background: #fff; color: #0b0c10; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 20px -4px rgba(255,255,255,0.35);
  transition: transform 0.2s var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.play-circle-btn .i { width: 18px; height: 18px; }
.play-circle-btn:hover { transform: scale(1.08); box-shadow: 0 8px 26px -4px rgba(255,255,255,0.5); }
.play-circle-btn:active { transform: scale(0.94); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; display: grid; place-items: center;
  transition: all var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.09); }
.dock-volume-group { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 130px; }
.dock-volume-group input[type="range"] { --pct: 100%; }
.loop-pill {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  height: 32px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); cursor: pointer;
}
.loop-pill input[type="checkbox"] { width: 14px; height: 14px; border-radius: 4px; }
.duration-presets-bar { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.preset-label { font: 600 11px var(--font-mono); color: #6ff0c9; font-variant-numeric: tabular-nums; }
.preset-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.dur-btn {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-2);
  height: 28px; padding: 0 6px; border-radius: 8px; font: 650 11px var(--font); cursor: pointer; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.dur-btn:hover { border-color: var(--border-hover); color: #fff; background: rgba(255,255,255,0.08); }
.dur-btn.accent { border-color: rgba(34, 211, 166, 0.3); color: #6ff0c9; background: rgba(34, 211, 166, 0.06); }
.dur-btn.accent:hover { background: rgba(34, 211, 166, 0.14); }
/* Inspector */
.studio-inspector, .inspector-form { display: flex; flex-direction: column; gap: 12px; }

/* Seletor de cor da borda do PiP */
.pip-color-field { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--border); }
.pip-color-field .rf-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 550; color: var(--text-2); padding-top: 12px; }
.pip-color-field .rf-head span { display: inline-flex; align-items: center; gap: 7px; }
.pip-color-field .rf-head b { font: 600 11px var(--font); color: var(--text); background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; }
.pip-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pip-swatch {
  position: relative; width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--sw); border: 2px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.pip-swatch:hover { transform: scale(1.15); }
.pip-swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw), 0 0 14px var(--sw); transform: scale(1.08); border-color: transparent; }
.pip-custom {
  display: grid; place-items: center; flex-direction: row; color: #fff;
  background: conic-gradient(from 0deg, #f43f5e, #f59e0b, #facc15, #22c55e, #22d3ee, #3b82f6, #8b5cf6, #ec4899, #f43f5e);
}
.pip-custom .i { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
.pip-custom input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

.lr-ico.plat-tiktok { color: var(--tiktok); }
.lr-ico.plat-youtube { color: var(--youtube); }
.empty-inspector strong { color: var(--text-2); font-size: 14px; }
.empty-inspector { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; padding: 40px 20px; }
.empty-inspector .i { width: 30px; height: 30px; color: var(--faint); }
.inspector-section {
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  animation: riseIn 0.4s var(--ease) both;
}
.inspector-section:nth-child(2) { animation-delay: 40ms; } .inspector-section:nth-child(3) { animation-delay: 80ms; }
.inspector-section:nth-child(4) { animation-delay: 120ms; } .inspector-section:nth-child(5) { animation-delay: 160ms; }
.inspector-section-title {
  font-size: 12px; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.inspector-section-title > span { display: inline-flex; align-items: center; gap: 8px; }
.inspector-section-title > span .i { color: var(--primary-2); }
.inspector-section-title .sub { font-weight: 450; color: var(--muted); font-size: 11px; }

.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.score-ring { position: relative; width: 92px; height: 92px; }
.score-ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.score-ring .track { stroke: rgba(255,255,255,0.07); }
.score-ring .prog { stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val strong { font: 800 26px/1 var(--font-display); letter-spacing: -0.03em; }
.score-ring .val span { font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: 0.05em; }
.score-meta h3 { font-size: 15px; font-weight: 700; }
.score-meta .verdict { font-size: 12.5px; color: #cbb8ff; margin-top: 4px; line-height: 1.45; }
.score-meta .dates { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.score-meta .dates span { display: inline-flex; align-items: center; gap: 4px; }

.breakdown-bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.bar-row strong { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad-brand); border-radius: inherit; transform-origin: left; animation: barFill 0.9s var(--ease) both; }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.insight-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.insight-list li .i { margin-top: 1px; }
.insight-list li.ok .i { color: var(--emerald); }
.insight-list li.warn .i { color: var(--amber); }

.layout-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.layout-chip, .style-chip {
  position: relative; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 11px; padding: 9px 10px;
  cursor: pointer; text-align: left; font-size: 12px; color: var(--text);
  transition: all var(--dur) var(--ease);
}
.layout-chip:hover, .style-chip:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.layout-chip strong { display: block; font-size: 12px; font-weight: 650; }
.layout-chip span, .style-chip span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.layout-chip.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.14); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.layout-chip.active::after, .style-chip.active::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 8px var(--primary-2);
}
.style-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 2px; }
.style-chip { text-align: center; padding: 12px 8px; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 70%), rgba(0,0,0,0.3); }
.style-chip strong { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(0,0,0,0.9); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-chip.active { border-color: var(--accent); background: rgba(34, 211, 166, 0.08); box-shadow: 0 0 0 3px rgba(34, 211, 166, 0.12); }
.style-chip.active::after { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.range-field { gap: 8px; }
.range-field .rf-head { display: flex; justify-content: space-between; align-items: center; }
.range-field .rf-head b { font: 600 11px var(--font-mono); color: var(--text); background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.lang-hint { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6ff0c9; background: rgba(34, 211, 166, 0.06); border: 1px solid rgba(34, 211, 166, 0.16); padding: 7px 10px; border-radius: 9px; }
.pos-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 11px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); }
.pos-pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  height: 30px; border-radius: 8px; font: 600 11.5px var(--font); cursor: pointer; transition: all var(--dur) var(--ease);
}
.pos-pill-btn:hover { color: var(--text); }
.pos-pill-btn.active { border-color: rgba(34, 211, 166, 0.35); background: rgba(34, 211, 166, 0.12); color: #6ff0c9; }
.inspector-actions {
  position: sticky; bottom: 12px; z-index: 5;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px;
  padding: 10px; border-radius: 16px; border: 1px solid var(--border-strong);
  background: rgba(15, 18, 25, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.9);
}

/* Hook banner & legendas na prévia 9:16 */
.live-stage.layout-reaction_pip .live-hook-banner { top: 33.5%; }
@keyframes hookDawnIn {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(0.92); filter: blur(3px) brightness(1.22); }
  70% { opacity: 1; transform: translate(-50%, -1px) scale(1.02); filter: blur(0) brightness(1.06); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0) brightness(1); }
}
@keyframes capPop { 0% { transform: scale(0.9); } 55% { transform: scale(1.22); } 100% { transform: scale(1.14); } }
@keyframes capGlitch { 0%, 100% { text-shadow: 2px 0 #7c3aed, -2px 0 #06b6d4; } 50% { text-shadow: -2px 1px #53fc18, 2px -1px #ec4899; } }

.live-hook-banner {
  position: absolute; top: 13%; left: 50%;
  transform: translate(-50%, var(--hook-y, 0px)) scale(var(--hook-scale, 1));
  width: 84%; z-index: 10;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.80), rgba(109, 40, 217, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-weight: 900; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  text-align: center; padding: 7px 10px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  pointer-events: none; text-transform: uppercase;
  will-change: transform, opacity, filter;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.live-hook-banner.phase-dawn {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.35), 0 6px 18px rgba(124, 58, 237, 0.45);
  border-color: rgba(253, 224, 71, 0.42);
}
.live-hook-banner.phase-dawn-idle {
  animation: hookDawnIn 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.24), 0 6px 18px rgba(0,0,0,0.55);
}
.live-hook-banner.phase-exit {
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.live-captions-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88%; z-index: 12;
  text-align: center; pointer-events: auto; cursor: ns-resize; user-select: none;
  line-height: 1.15; padding: 8px 10px; border-radius: 10px;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.live-captions-box:hover { box-shadow: 0 0 0 1.5px rgba(139, 92, 246, 0.75); }
.live-captions-box.dragging { box-shadow: 0 0 0 2px #10b981; background: rgba(16, 185, 129, 0.14); }
.live-caption-drag-guide { position: absolute; left: 0; right: 0; height: 1px; border-top: 1.5px dashed #10b981; z-index: 11; pointer-events: none; }
.live-captions-box .cap-word { display: inline-block; margin: 0 4px; transition: transform 0.12s ease, color 0.12s ease; }
.live-captions-box .cap-word.active { transform: scale(1.14); animation: capPop 0.16s ease-out; }

.live-captions-box.style-opus_neon { font-family: "Montserrat Black", "Arial Black", sans-serif; font-size: 21px; color: #fff; text-shadow: 0 3px 8px #000, 0 0 3px #000; text-transform: uppercase; }
.live-captions-box.style-opus_neon .cap-word.active { color: #00f59b; }
.live-captions-box.style-word_punch { font-family: "Anton", "Impact", sans-serif; font-size: 29px; color: #fff; text-shadow: 0 4px 0 #000, 0 0 12px rgba(56,189,248,0.6); text-transform: uppercase; letter-spacing: 0.03em; }
.live-captions-box.style-word_punch .cap-word.active { color: #38bdf8; transform: scale(1.22); }
.live-captions-box.style-hormozi_bold { font-family: "Anton", "Impact", sans-serif; font-size: 25px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 8px #000; text-transform: uppercase; letter-spacing: 0.03em; }
.live-captions-box.style-hormozi_bold .cap-word.active { color: #ffd60a; transform: scale(1.22) rotate(-1deg); }
.live-captions-box.style-mrbeast_impact { font-family: "Bangers", "Impact", sans-serif; font-size: 27px; color: #fff7d6; text-shadow: 0 3px 0 #000, 0 0 10px rgba(0,229,255,0.6); text-transform: uppercase; letter-spacing: 0.04em; }
.live-captions-box.style-mrbeast_impact .cap-word.active { color: #00e5ff; transform: scale(1.2); }
.live-captions-box.style-red_alert { font-family: "Impact", "Anton", sans-serif; font-size: 27px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 10px rgba(255,59,92,0.7); text-transform: uppercase; }
.live-captions-box.style-red_alert .cap-word.active { color: #ff3b5c; }
.live-captions-box.style-podcast_box { font-family: "Poppins ExtraBold", "Segoe UI", sans-serif; font-size: 19px; font-weight: 800; color: #fff; background: rgba(124, 58, 237, 0.9); width: auto; max-width: 86%; padding: 6px 14px; }
.live-captions-box.style-podcast_box .cap-word.active { color: #fde047; }
.live-captions-box.style-glitch_cyber { font-family: "Rubik Black", "Arial Black", sans-serif; font-size: 21px; color: #f8fafc; text-shadow: 2px 0 #7c3aed, -2px 0 #06b6d4, 0 3px 6px #000; text-transform: uppercase; }
.live-captions-box.style-glitch_cyber .cap-word.active { color: #53fc18; animation: capPop 0.16s ease-out, capGlitch 0.3s infinite; }
.live-captions-box.style-fire_gradient { font-family: "Bebas Neue", "Impact", sans-serif; font-size: 28px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 10px rgba(255,122,0,0.65); text-transform: uppercase; letter-spacing: 0.04em; }
.live-captions-box.style-fire_gradient .cap-word.active { color: #ff7a00; }
.live-captions-box.style-karaoke_ice { font-family: "Oswald", "Arial Black", sans-serif; font-size: 23px; color: #e0f2fe; text-shadow: 0 3px 6px #000; text-transform: uppercase; }
.live-captions-box.style-karaoke_ice .cap-word.active { color: #38bdf8; }
.live-captions-box.style-clean_minimal { font-family: "Montserrat ExtraBold", "Segoe UI", sans-serif; font-size: 18px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.55); width: auto; max-width: 86%; padding: 6px 14px; }
.live-captions-box.style-clean_minimal .cap-word.active { color: #fbbf24; }

/* Marca d'água na prévia */
.live-watermark-overlay { position: absolute; width: 42px; height: 42px; object-fit: contain; z-index: 13; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65)); }
.live-watermark-overlay.pos-top_right { top: 42px; right: 12px; }
.live-watermark-overlay.pos-top_left { top: 42px; left: 12px; }
.live-watermark-overlay.pos-top_center { top: 38px; left: 50%; transform: translateX(-50%); }
.live-watermark-overlay.pos-bottom_right { bottom: 68px; right: 12px; }
.live-watermark-overlay.pos-bottom_left { bottom: 68px; left: 12px; }

/* ---------- Grids genéricos de páginas ---------- */
.scheduler-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.page-stack { display: flex; flex-direction: column; gap: 20px; }
.callout {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(0,0,0,0.28); border: 1px solid var(--border); padding: 14px; border-radius: 12px; font-size: 12px; margin-top: 16px; line-height: 1.6; color: var(--text-2);
}
.callout code { display: block; padding: 6px 10px; font-size: 11.5px; overflow-x: auto; white-space: nowrap; }
.oauth-buttons { display: grid; gap: 10px; }
.oauth-buttons .btn { justify-content: flex-start; height: 46px; padding: 0 16px; }
.oauth-buttons .btn .arrow { margin-left: auto; opacity: 0.6; transition: transform var(--dur) var(--ease); }
.oauth-buttons .btn:hover .arrow { transform: translateX(3px); opacity: 1; }

.table-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.list-row {
  background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  animation: riseIn 0.35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.list-row:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.list-row .lr-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 11px; }
.list-row .lr-text { min-width: 0; }
.list-row .lr-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }
.list-row .lr-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.list-row .lr-sub a { color: #6ff0c9; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.list-row .lr-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.05); color: var(--text-2); flex-shrink: 0; }
.list-row .lr-time { font: 500 11px var(--font-mono); color: var(--muted); white-space: nowrap; }
label.list-row { flex-direction: row; cursor: pointer; color: var(--text); font-weight: 450; }
label.list-row:has(input:checked) { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-dot.ok { background: var(--emerald); }
.status-dot.warn { background: var(--amber); }
.status-dot.err { background: var(--red); }

.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.account-card {
  background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: riseIn 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.account-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.account-card.paused { opacity: 0.65; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); }
.acc-avatar.tiktok { color: var(--tiktok); background: linear-gradient(135deg, rgba(37,244,238,0.12), rgba(254,44,85,0.12)); }
.acc-avatar.youtube { color: var(--youtube); background: rgba(255,59,59,0.1); }
.acc-head strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-head small { display: block; font-size: 12px; color: var(--muted); }
.acc-mode { margin-left: auto; font-size: 10px; font-weight: 750; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; }
.acc-mode.oauth { background: rgba(34,197,139,0.12); color: #4ade9b; border: 1px solid rgba(34,197,139,0.28); }
.acc-mode.sandbox { background: rgba(245,181,68,0.1); color: #fbc75a; border: 1px solid rgba(245,181,68,0.26); }

.watermark-upload-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,0.22); border: 1px solid var(--border); }
.wm-thumb-preview { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; background: #000; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(139, 92, 246, 0.6), 0 10px 24px -6px rgba(139,92,246,0.5); }
.wm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wm-gallery-item { background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; min-width: 0; animation: riseIn 0.35s var(--ease) both; }
.wm-gallery-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-gallery-item > div { min-width: 0; flex: 1; }
.wm-gallery-item img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; flex-shrink: 0; background: #000; }
.wm-gallery-item small { color: #4ade9b; font-size: 10.5px; font-weight: 650; }
.wm-gallery-del { flex-shrink: 0; color: var(--muted); }
.wm-gallery-del:hover { color: #f87171; background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.35); }

/* Compilados */
.compilations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.comp-card { background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: riseIn 0.4s var(--ease) both; transition: border-color var(--dur) var(--ease); }
.comp-card:hover { border-color: var(--border-hover); }
.comp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comp-card strong { font-size: 14px; line-height: 1.35; }
.comp-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.comp-card details { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.comp-card summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.comp-card pre { white-space: pre-wrap; font: 11.5px/1.6 var(--font-mono); margin: 8px 0 0; color: var(--text-2); }
.comp-link { font-size: 12px; color: #6ff0c9; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-text { font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; }

/* Docs */
.blueprints-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bp-card { display: flex; flex-direction: column; gap: 10px; animation: riseIn 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.bp-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.bp-card h3 { font-size: 15px; }
.bp-rule { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.bp-rule .i { margin-top: 2px; color: var(--primary-2); }
.bp-rule b { color: var(--text); font-weight: 650; }
.docs-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.docs-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.doc-tab { justify-content: flex-start !important; background: transparent !important; border-color: transparent !important; color: var(--text-2) !important; height: 38px !important; font-size: 13px !important; }
.doc-tab:hover { background: rgba(255,255,255,0.04) !important; color: var(--text) !important; }
.doc-tab.active { background: rgba(139, 92, 246, 0.14) !important; border-color: rgba(139, 92, 246, 0.3) !important; color: #fff !important; }
.doc-tab.active .i { color: var(--primary-2); }
.docs-viewer { background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; max-height: 72vh; overflow-y: auto; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.docs-viewer.is-raw { white-space: pre-wrap; font: 12.5px/1.6 var(--font-mono); }
.md h1 { font-size: 24px; margin: 0 0 16px; color: var(--text); }
.md h2 { font-size: 19px; margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text); }
.md h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--text); }
.md h4 { font-size: 14px; margin: 16px 0 6px; color: var(--text); }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--primary-2); }
.md strong { color: var(--text); }
.md pre { background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow-x: auto; font: 12px/1.6 var(--font-mono); color: #d8ccff; margin: 0 0 14px; }
.md pre code { background: none; border: 0; padding: 0; }
.md blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--primary); background: rgba(139,92,246,0.06); border-radius: 0 8px 8px 0; }
.md table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 12.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.md th { background: rgba(255,255,255,0.04); color: var(--text); font-weight: 650; }
.md hr { border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Modais ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 900; padding: 20px;
  background: rgba(3, 4, 7, 0.7); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  display: grid; place-items: center;
  animation: fadeIn 0.25s var(--ease);
}
.modal-card {
  background: linear-gradient(180deg, #141824, #0e1119);
  border: 1px solid var(--border-strong); border-radius: 22px;
  width: min(1100px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
  animation: modalIn 0.4s var(--ease-spring);
}
.modal-card.sm { width: min(460px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-header .mh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.modal-header .mh-title strong { font: 720 17px var(--font-display); letter-spacing: -0.02em; }
.modal-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 18px 20px 20px; overflow-y: auto; }
.modal-player-box { background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid var(--border); }
.modal-player-box iframe, .modal-player-box img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.modal-side-lists h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.modal-actions-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.modal-items-list { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
.modal-pad { padding: 20px; }
.login-hero { text-align: center; padding: 8px 0 4px; }
.login-hero .brand-logo { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px; }
.login-hero h3 { font-size: 19px; }
.login-hero p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; pointer-events: none; }
.toast {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 10px; max-width: 380px;
  background: rgba(22, 26, 37, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 14px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7);
  animation: toastIn 0.45s var(--ease-spring) both;
}
.toast .t-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary-2); }
.toast.success .t-ico { background: rgba(34,197,139,0.14); color: var(--emerald); }
.toast.error .t-ico { background: rgba(240,82,82,0.14); color: #ff7a7a; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad-brand); transform-origin: left; animation: toastTimer 4.2s linear forwards; }
.toast.error::after { background: linear-gradient(90deg, #f05252, #f59e7a); }
.toast.leaving { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(0.95); } }
@keyframes toastTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Motion utilitários ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pop { animation: numPop 0.5s var(--ease-spring); }
@keyframes numPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #fff; } 100% { transform: scale(1); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1440px) {
  .studio-layout { grid-template-columns: 280px minmax(340px, auto) minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 1280px) {
  .topbar p { display: none; }
  .stat-pill { min-width: 62px; padding: 6px 10px; }
  .studio-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .studio-inspector { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .stat-group { display: none; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 64px; }
  .app-shell { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 290px; height: 100vh; z-index: 80;
    transform: translateX(-102%); transition: transform 0.4s var(--ease);
    box-shadow: 30px 0 80px rgba(0,0,0,0.6);
  }
  .sidebar.open { transform: none; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
  .sidebar.open + .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .topbar { position: static; padding: 16px; min-height: 0; }
  .topbar-profile-pill { display: none; }
  .view-wrap { padding: 16px 16px 48px; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-list, .studio-preview { position: static; max-height: none; }
  .clips-list { max-height: 50vh; }
  .hero-ingest-card { padding: 20px; border-radius: 20px; }
  .hero-header h3 { font-size: 21px; }
  .hero-platforms { display: none; }
  .command-bar { flex-wrap: wrap; padding: 8px; }
  .command-bar > .i, .command-bar .divider-v { display: none; }
  .command-bar input[type="text"] { flex-basis: 100%; padding: 0 8px; }
  .command-bar .btn { flex: 1; }
  .scheduler-grid { grid-template-columns: 1fr; }
  .compilations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .streamers-grid, .discovered-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 288px; height: 512px; }
  .player-dock, .preview-toolbar { width: 100%; max-width: 306px; }
  .section-header { margin-top: 28px; }
  .inspector-actions { grid-template-columns: 1fr 1fr; }
  .docs-viewer { padding: 18px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Marca d'água por canal & cor global do PiP ===== */
.brand-sub-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 10px; font-size: 13px; font-weight: 650; color: var(--text); }
.brand-sub-title:first-of-type { margin-top: 4px; }
.brand-sub-title span { font-weight: 450; font-size: 12px; color: var(--muted); }
.wm-channel-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wm-slot { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.wm-slot.has-wm { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.05); }
.wm-slot-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wm-slot-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--text-2); }
.wm-slot-ico.tiktok { color: #ff2d78; background: rgba(255,45,120,0.12); }
.wm-slot-ico.youtube { color: #ff4646; background: rgba(255,70,70,0.12); }
.wm-slot-ico.instagram { color: #f472b6; background: linear-gradient(135deg, rgba(250,204,21,0.14), rgba(236,72,153,0.16), rgba(139,92,246,0.16)); }
.wm-slot-ico.twitch { color: #a970ff; background: rgba(169,112,255,0.14); }
.wm-slot-preview { height: 78px; display: grid; place-items: center; border-radius: 10px; background: repeating-conic-gradient(rgba(255,255,255,0.04) 0 25%, transparent 0 50%) 0 0 / 14px 14px, rgba(0,0,0,0.3); border: 1px dashed var(--border); overflow: hidden; }
.wm-slot-preview img { max-width: 90%; max-height: 66px; object-fit: contain; }
.wm-slot-preview span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.wm-slot select { height: 34px; font-size: 12px; }
.wm-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wm-slot-actions .btn { flex: 1; justify-content: center; }
.brand-pip-colors { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); }
.pip-brand-label { font-size: 12px; color: var(--muted); }
.pip-brand-label b { color: var(--text); }

/* Studio: seletor de canal da marca d'água */
.wm-channel-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.wm-channel-field .rf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 550; color: var(--text-2); }
.wm-head-actions { display: inline-flex; align-items: center; gap: 6px; }
.wm-import-btn { cursor: pointer; }
.wm-remove-btn { color: #fca5a5; border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.08); }
.wm-remove-btn:hover, .wm-remove-btn.active { color: #fff; background: rgba(239, 68, 68, 0.28); border-color: rgba(239, 68, 68, 0.55); }

.wm-field-sub { font-size: 11.5px; color: var(--muted); margin: 4px 0 8px; }
.wm-field-sub b { color: var(--text); font-weight: 600; }

.wm-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wm-card {
  display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 11px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  cursor: pointer; transition: border-color .18s, background .18s, transform .15s; min-width: 0;
}
.wm-card:hover { border-color: rgba(139,92,246,0.45); background: rgba(255,255,255,0.055); }
.wm-card.active {
  border-color: var(--primary); background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.16);
}
.wm-card-thumb {
  width: 38px; height: 38px; border-radius: 9px; object-fit: contain; flex-shrink: 0;
  background: repeating-conic-gradient(rgba(255,255,255,0.05) 0 25%, transparent 0 50%) 0 0 / 10px 10px, rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.wm-card-thumb.is-none { display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,0.03); }
.wm-card-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.wm-card-info strong { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wm-card-info > span { font-size: 11px; color: var(--muted); }
.wm-default-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px;
  font: 600 10.5px var(--font-ui, inherit); color: var(--text-2);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all .15s;
}
.wm-default-btn:hover { color: #fff; border-color: rgba(139,92,246,0.6); background: rgba(139,92,246,0.22); }
.wm-default-btn.is-default { color: #34d399; background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.45); }

.wm-remove-drawer {
  margin: 6px 0 12px; padding: 10px; border-radius: 12px;
  background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.35);
  animation: riseIn 0.2s var(--ease);
}
.wm-remove-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: #fca5a5; }
.wm-remove-drawer-head span { display: inline-flex; align-items: center; gap: 6px; }
.wm-remove-list { display: flex; flex-direction: column; gap: 6px; }
.wm-remove-empty { font-size: 11.5px; color: var(--muted); padding: 4px 2px; }
.wm-remove-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px;
  background: rgba(12, 14, 22, 0.72); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); text-align: left; cursor: pointer; transition: all .15s;
}
.wm-remove-item:hover { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.55); }
.wm-remove-item img { width: 32px; height: 32px; border-radius: 7px; object-fit: contain; background: #000; flex-shrink: 0; }
.wm-remove-item-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wm-remove-item-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-remove-item-info span { font-size: 10.5px; color: var(--muted); }
.wm-remove-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; color: #fca5a5; padding: 3px 8px; border-radius: 999px; background: rgba(239, 68, 68, 0.16); flex-shrink: 0; }

.wm-controls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 12px; }
.inspector-subsection-title {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2);
  padding-top: 10px; margin-top: 4px; margin-bottom: 8px; border-top: 1px solid var(--border);
}
.wm-gallery-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.wm-link-btn { background: none; border: none; padding: 0; font: 600 11px var(--font-ui, inherit); color: #a78bfa; cursor: pointer; }
.wm-link-btn:hover { text-decoration: underline; color: #c4b5fd; }
.wm-gallery-item.is-default { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.06); }
.burned-cap-toggle {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 8px 0 10px;
  border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.burned-cap-toggle:hover { border-color: rgba(139,92,246,0.45); color: var(--text); }
.burned-cap-toggle .auto-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: #34d399; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4);
}
.queue-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.queue-timer-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; font-family: var(--font-mono, monospace);
  color: #a7f3d0; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35);
}
.queue-row-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.list-row.is-next-queue { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.06); }
.list-row .lr-sub.is-err { color: #fca5a5; line-height: 1.35; word-break: break-word; }
.list-row .lr-sub.is-inbox { color: #67e8f9; }
.log-status-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; border: 1px solid var(--border); background: rgba(255,255,255,0.04);
}
.log-status-pill.ok { color: #6ee7b7; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.12); }
.log-status-pill.err { color: #fca5a5; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.12); }
.log-status-pill.inbox { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.12); }
.lr-thumb { width: 26px; height: 40px; border-radius: 6px; object-fit: cover; background: #000; flex-shrink: 0; border: 1px solid var(--border); }
.clip-id-tag {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px;
  font: 600 10.5px var(--font-mono, monospace); color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3);
}
.secret-field-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; width: 100%; }
.secret-state {
  font-size: 10.5px; font-weight: 600; font-family: var(--font-mono, monospace);
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.secret-state.is-set { color: #6ee7b7; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.1); }
.secret-input-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.secret-input-wrap input { padding-right: 36px; width: 100%; }
.secret-peek-btn { position: absolute; right: 4px; width: 28px; height: 28px; opacity: 0.7; }
.secret-peek-btn:hover { opacity: 1; }
.panel-lock-backdrop { z-index: 9999; background: rgba(7, 8, 12, 0.94); backdrop-filter: blur(18px); }
.panel-lock-card { border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); }
.panel-lock-legal { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); }
.panel-lock-legal a { color: var(--text-2); text-decoration: none; }
.panel-lock-legal a:hover { text-decoration: underline; color: var(--text); }

/* Auto-Gerar Clipes */
.autoclip-hero { border-color: rgba(139, 92, 246, 0.3); }
.ac-stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin-top: 10px; }
.ac-stat {
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.ac-stat span { font-size: 11px; color: var(--muted); }
.ac-stat strong { font-size: 18px; font-weight: 800; color: var(--text); font-family: var(--font-mono, monospace); }
.ac-chips-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.ac-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text-2);
  transition: all 0.16s ease;
}
.ac-chip:hover { border-color: rgba(139, 92, 246, 0.5); color: var(--text); }
.ac-chip.active {
  background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.7); color: #ede9fe;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25);
}
.ac-source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.ac-source-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.22); cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.ac-source-card input { position: absolute; opacity: 0; pointer-events: none; }
.ac-source-card strong { font-size: 12.5px; color: var(--text); }
.ac-source-card small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.ac-source-card:has(input:checked) {
  border-color: rgba(34, 211, 166, 0.65); background: rgba(16, 185, 129, 0.1);
}
.ac-presets-box {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.ac-preset-form { display: flex; gap: 8px; align-items: center; }
.ac-preset-form input { flex: 1; min-width: 0; }
.ac-presets-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.ac-preset-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.22);
}
.ac-preset-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ac-preset-info strong { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-preset-info small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-preset-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.post-modal-clip-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.post-modal-meta {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2);
  padding: 8px 10px; border-radius: 10px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.25);
}
.post-modal-accounts { display: flex; flex-direction: column; gap: 6px; }
.post-modal-acc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 12.5px; cursor: pointer;
}
.post-modal-acc-item small { color: var(--muted); font-weight: 600; }
.post-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.post-modal-actions .btn { justify-content: center; }
.wm-ch-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-ch-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font: 600 11.5px var(--font-ui, inherit); color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--border); cursor: pointer; transition: all .18s; }
.wm-ch-pill:hover { border-color: rgba(139,92,246,0.45); color: var(--text); }
.wm-ch-pill.active { color: #fff; background: rgba(139,92,246,0.22); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.wm-ch-pill.empty:not(.active) { opacity: 0.55; border-style: dashed; }
.auto-crop-hint { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; padding: 7px 10px; border-radius: 9px; font-size: 11.5px; color: #cbb8ff; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); }
.pip-color-field .rf-head .sub { font-weight: 450; font-size: 11px; color: var(--muted); margin-left: 4px; }
@media (max-width: 1280px) { .wm-channel-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wm-channel-slots { grid-template-columns: 1fr; } }

.wm-slot-actions label.btn, label.btn.wm-import-btn { flex-direction: row; align-items: center; cursor: pointer; }
