:root {
  --navy: #121316; --navy-2: #1d1f23; --blue: #ff5a1f; --blue-2: #ff7440; --sky: #ff9a6b;
  --green: #ff5a1f; --green-ink: #b23a0b; --ok: #12a565; --amber: #b86e00; --red: #c62b3b;
  --bg: #f5f4f1; --surface: #fff; --ink: #121316; --muted: #66645f; --faint: #8f8d88;
  --line: #e7e5e0; --line-2: #f0eeea;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif; --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-spacing: .06em; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.page-title { font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.h2 { font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.num { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--navy) 252px, var(--bg) 252px); }
.side { background: var(--navy); color: #fff; position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 26px 16px 18px; }
.brand { padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; text-decoration: none; color: #fff; display: block; }
.brand .mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.brand .mark .logo { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand .mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 4px rgba(0,226,129,.18); }
.brand .sub { display: block; font-size: 12px; color: #8b8e96; margin-top: 2px; letter-spacing: .02em; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #6f727a; padding: 16px 12px 6px; font-weight: 600; }
.item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: #a3a6ad; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; border: 0; background: transparent; text-align: left; width: 100%; }
.item:hover { background: rgba(255,255,255,.07); color: #fff; }
.item.active { background: rgba(255,255,255,.08); color: #fff; }
.item.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.item span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.add { color: #8b8e96; } .item.add:hover { color: #fff; }
.side-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.side-foot .live { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8b8e96; padding-left: 10px; }
.side-foot .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,226,129,.5); } 70% { box-shadow: 0 0 0 8px rgba(0,226,129,0); } 100% { box-shadow: 0 0 0 0 rgba(0,226,129,0); } }
.side-foot button { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d8dadf; border-radius: 8px; height: 32px; padding: 0 12px; font-size: 13px; }
.side-foot button:hover { background: rgba(255,255,255,.08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 36px; background: rgba(245,244,241,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar .lead { color: var(--muted); font-size: 14px; margin-top: 2px; }
.topbar .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page { padding: 24px 32px 40px; width: 100%; }
.mobilebar, .scrim { display: none; }

/* ---------- piezas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.kpi .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.dark .label, .kpi.dark .hint { color: #8b8e96; }
.kpi.dark .value em { color: var(--green); font-style: normal; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--line-2); border-color: #d9d6cf; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-2); border-color: var(--blue-2); }
.btn.accent { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.accent:hover:not(:disabled) { background: #ff7440; border-color: #ff7440; }
.btn.danger { color: var(--red); } .btn.danger:hover:not(:disabled) { background: #fdecee; border-color: #f3b6bd; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover:not(:disabled) { background: var(--line-2); }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: #fdecee; color: var(--red); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--blue); }
.tabs a .count { font-size: 12px; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; background: #fff; border: 1px solid #dcd9d2; border-radius: 9px; font-size: 14.5px; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue-2); outline-offset: -1px; border-color: transparent; }
.input::placeholder, .textarea::placeholder { color: #a5a29b; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316163f' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select.sm { height: 32px; font-size: 13px; padding: 0 28px 0 10px; width: auto; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.nodot::before { display: none; }
.chip.s-pendiente, .chip.s-borrador { background: #eef0f7; color: #5f6080; }
.chip.s-conectada, .chip.s-publicado, .chip.s-aprobado { background: #d6f8e8; color: #00704a; }
.chip.s-pausada, .chip.s-programado { background: #fff1d6; color: #8a5300; }
.chip.s-fallido, .chip.s-bloqueado { background: #fde3e6; color: #a8202f; }
.chip.k-principal { background: #ffe8de; color: #b23a0b; }
.chip.countdown { background: var(--navy); color: #fff; }
.chip.countdown::before { background: var(--green); }

.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; object-fit: cover; background: var(--navy); }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; font-weight: 700; }

.net { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.net svg { width: 16px; height: 16px; }
.net { aspect-ratio: 1; }
.net.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.net.tiktok { background: #000; }
/* Facebook y YouTube: el logo oficial ya es la forma (círculo azul, rectángulo rojo), sin baldosa detrás */
.net.facebook, .net.youtube { background: transparent; }
.net.facebook svg, .net.youtube svg { width: 100% !important; height: 100% !important; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .h2 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.r, table.list th.r { text-align: right; }
.handle { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.handle small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.handle-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.handle-btn:hover > div { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }

/* proyectos */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
.pcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--blue)); }
.pcard:hover { border-color: #d9d6cf; box-shadow: 0 8px 24px rgba(18,19,22,.08); transform: translateY(-1px); }
.pcard .top { display: flex; gap: 12px; align-items: center; }
.pcard .name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.pcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pcard .stats div { background: var(--bg); border-radius: 9px; padding: 8px 10px; }
.pcard .stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.pcard .stats span { font-size: 12px; color: var(--muted); }
.pcard.new { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); min-height: 200px; background: transparent; font-weight: 600; }
.pcard.new::before { display: none; }
.pcard.new:hover { color: var(--blue); border-color: var(--blue-2); background: #fff; }

/* reels */
.drop { display: block; border: 2px dashed #d6d2ca; border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); background: #fff; transition: border-color .15s, background .15s; cursor: pointer; }
.drop.over { border-color: var(--blue-2); background: #fff1ea; color: var(--ink); }
.drop b { color: var(--ink); }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.reel { position: relative; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--line-2); display: block; }
.reel-del { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border-radius: 9px; box-shadow: 0 1px 4px rgba(0,0,0,.15); z-index: 2; }
.reel .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reel .body > .row:last-child { margin-top: auto; }
.reel .title { font-weight: 600; font-size: 14px; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; width: calc(100% + 12px); background: transparent; }
.reel .title:hover { background: var(--line-2); }
.reel .title:focus { background: #fff; outline: 2px solid var(--blue-2); }
.reel .meta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.reel .meta span { white-space: nowrap; }
.reel .row { flex-wrap: nowrap; min-width: 0; }
.reel .row .btn { flex: 1 1 0; min-width: 0; height: 38px; font-size: 14px; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--blue-2); width: 0; transition: width .2s; }

/* calendario */
.day { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.day:last-child { border-bottom: 0; }
.day .date b { display: block; font-size: 15px; }
.day .date span { font-size: 12.5px; color: var(--muted); }
.slot { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; }
.slot:hover { background: var(--bg); }
.slot .time { font-variant-numeric: tabular-nums; font-weight: 600; width: 48px; flex: none; }
.slot .what { flex: 1; min-width: 0; }
.slot .what b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .what span { font-size: 12.5px; color: var(--muted); }
.slot video { width: 34px; height: 60px; object-fit: cover; border-radius: 6px; background: #0d0d26; flex: none; }

/* pauta */
.slider { display: grid; gap: 8px; }
.slider .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.slider .lbl span { color: var(--blue); font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; accent-color: var(--blue); }
.slider p { font-size: 12.5px; color: var(--muted); }
.presets { display: flex; gap: 8px; }
.presets button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; text-align: left; }
.presets button b { display: block; font-size: 14px; }
.presets button span { font-size: 12.5px; color: var(--muted); }
.presets button[aria-pressed=true] { border-color: var(--blue); background: #fff1ea; box-shadow: inset 0 0 0 1px var(--blue); }
.funnel { display: grid; gap: 10px; }
.funnel .bar { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; font-size: 14px; }
.funnel .track { height: 26px; background: var(--line-2); border-radius: 7px; overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 7px; background: var(--blue-2); transition: width .3s; }
.funnel .track i.g { background: var(--green); }
.funnel .bar b { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
.note b { color: var(--ink); }

/* diálogo */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(18,19,22,.55); }
dialog .dh { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
dialog .db { padding: 18px 22px; }
dialog .df { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.acc-pick { display: grid; gap: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.acc-pick label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.acc-pick label:hover { background: var(--bg); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #2a2c31 0, var(--navy) 55%); padding: 16px; }
.login form { width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 32px 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login .mark { font-weight: 800; font-size: 36px; letter-spacing: -.05em; display: flex; align-items: center; gap: 12px; }
.login .mark .logo { width: 48px; height: 48px; border-radius: 12px; }
.login .mark i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.err { color: var(--red); font-size: 13.5px; min-height: 20px; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: tin .2s ease; }
.toast.err { background: var(--red); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .mobilebar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; font-weight: 800; font-size: 20px; }
  .burger { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; border-radius: 8px; display: grid; place-items: center; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(18,19,22,.55); z-index: 40; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; z-index: 50; height: auto; transform: translateX(-100%); transition: transform .22s ease; visibility: hidden; }
  .side.open { transform: none; visibility: visible; }
  .topbar { position: static; padding: 14px 16px; min-height: 0; flex-wrap: wrap; }
  .page { padding: 20px 16px 48px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .form .two { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 6px; }
  .funnel .bar { grid-template-columns: 1fr 90px; } .funnel .bar .track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpi .value { font-size: 24px; } .presets { flex-direction: column; } }
@media (max-width: 560px) {
  .slot .chip { display: none; }
  .slot { flex-wrap: wrap; gap: 8px 10px; }
  .slot .what { min-width: 120px; }
  .slot .select { margin-left: auto; }
}

.chip.v-poco, .chip.v-de-mas { background: #fde3e6; color: #a8202f; }
.chip.v-justo { background: #fff1d6; color: #8a5300; }
.chip.v-bien { background: #d6f8e8; color: #00704a; }
.big-input { height: 52px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.datos { background: var(--bg); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.datos .dato-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.datos div:not(.dato-head) { display: flex; justify-content: space-between; gap: 12px; }
.datos span { color: var(--muted); }
.datos b { font-variant-numeric: tabular-nums; }
.datos p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.nowrap { white-space: nowrap; }
.chip.s-error { background: #fde3e6; color: #a8202f; }

/* panel de conexión (como las integraciones de Efaysto) */
.cp-scrim { position: fixed; inset: 0; background: rgba(18,19,22,.45); z-index: 60; }
.cp { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(1080px, 96vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(18,19,22,.18); animation: cpin .2s ease-out; }
@keyframes cpin { from { transform: translateX(24px); opacity: 0; } }
.cp-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cp-h .net { width: 36px; height: 36px; border-radius: 10px; } .cp-h .net svg { width: 20px; height: 20px; }
.cp-h .t { flex: 1; min-width: 0; }
.cp-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.cp-f { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #faf9f7; flex-wrap: wrap; }
.banner { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 18px; }
.banner.ok { background: #d6f8e8; color: #00573a; }
.banner.err { background: #fdecee; color: #8c1c29; border: 1px solid #f3b6bd; }
.cp-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.cp-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 0; }
.cp-steps li { position: relative; padding-left: 44px; }
.cp-steps li::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: -4px; width: 2px; background: var(--line); }
.cp-steps li:last-child::before { display: none; }
.cp-steps button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 0 18px; position: relative; }
.cp-steps .dot { position: absolute; left: -44px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--line-2); color: var(--muted); display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.cp-steps .on .dot { background: var(--navy); color: #fff; border-color: var(--navy); }
.cp-steps .done .dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.cp-steps .st { font-weight: 500; padding-top: 5px; line-height: 1.3; font-size: 14.5px; color: var(--muted); }
.cp-steps .on .st { color: var(--ink); font-weight: 600; }
.cp-steps .done .st { color: var(--ink); }
.cp-detail { background: #faf9f7; border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; min-height: 340px; display: flex; flex-direction: column; gap: 6px; }
.cp-detail h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 8px; }
.cp-content { display: flex; flex-direction: column; gap: 12px; padding: 2px 0 20px; }
.cp-content > p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.cp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips li { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.cp-note { background: #fff8e5; border: 1px solid #f1deaa; color: #6b5200; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; }
.cp-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 20px; }
.field .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.field .row { flex-wrap: nowrap; }
.masked { -webkit-text-security: disc; }
.res-ok { color: #00704a; font-weight: 600; font-size: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rot .7s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .cp { width: 100vw; animation: none; }
  .cp-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cp-steps { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .cp-steps li { padding-left: 0; flex: none; } .cp-steps li::before { display: none; }
  .cp-steps button { padding: 0; } .cp-steps .dot { position: static; } .cp-steps .st { display: none; }
  .cp-h, .cp-body, .cp-f { padding-left: 16px; padding-right: 16px; }
  .cp-detail { padding: 18px 16px; }
}

/* agregar cuenta: elegir red */
.net-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.net-pick button { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.net-pick button:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(18,19,22,.08); transform: translateY(-1px); }
.net-pick .net { width: 44px; height: 44px; border-radius: 12px; }
.net-pick .net svg { width: 24px; height: 24px; }

/* resumen */
.rs { display: grid; gap: 16px; }
.rs-hero { display: grid; grid-template-columns: 1fr 1fr 1.6fr; background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.rs-hero > div { padding: 24px 26px; }
.rs-hero > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.rs-count .small, .rs-next .small { color: #8b8e96; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; }
.rs-count b { display: block; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.05em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.rs-count:first-child b { color: var(--blue); }
.rs-count span:last-child { color: #a3a6ad; font-size: 13.5px; }
.rs-next { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.03); justify-content: center; }
.rs-next p { color: #a3a6ad; }
.rs-next .btn { align-self: flex-start; }
.rs-next-row { display: flex; gap: 14px; align-items: center; }
.rs-next-row .net { width: 36px; height: 36px; border-radius: 10px; } .rs-next-row .net svg { width: 19px; height: 19px; }
.rs-next-row span { font-size: 13px !important; }
.rs-next-row b { display: block; font-size: 16px; letter-spacing: -.01em; }
.rs-next-row span { color: #a3a6ad; font-size: 14px; }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.rs-stat:hover { border-color: #d9d6cf; box-shadow: 0 6px 18px rgba(18,19,22,.06); }
.rs-stat .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.rs-stat b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rs-stat b small { font-size: 18px; color: var(--faint); font-weight: 600; }
.rs-stat .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rs-stat .sub .chip { height: 20px; font-size: 11.5px; }
.rs-stat .nets .net { width: 22px; height: 22px; border-radius: 6px; } .rs-stat .nets .net svg { width: 13px; height: 13px; }
.rs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.rs-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--bg); text-decoration: none; color: inherit; transition: background .15s; }
.rs-day:hover { background: var(--line-2); }
.rs-day .wd { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.rs-day .dn { font-size: 20px; font-weight: 700; }
.rs-day.today { background: #fff1ea; box-shadow: inset 0 0 0 1px var(--blue); }
.rs-day.elec { background: var(--navy); color: #fff; } .rs-day.elec .wd { color: #a3a6ad; }
.rs-day .bar { width: 10px; height: 54px; background: rgba(18,19,22,.06); border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; margin-top: 4px; }
.rs-day .bar i { display: block; width: 100%; background: var(--blue); border-radius: 5px; }
.rs-day .n { font-size: 13px; font-weight: 700; min-height: 18px; font-variant-numeric: tabular-nums; }
.rs-day .dots { display: flex; gap: 3px; min-height: 7px; }
.nd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.nd.instagram { background: #d6249f; } .nd.facebook { background: #1877f2; } .nd.tiktok { background: #111; box-shadow: 0 0 0 1px #fff; } .nd.youtube { background: #ff0000; }

/* calendario de mes */
.cal { padding: 0; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal-head .h2 { font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 6px 6px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #faf9f7; } .cal-day.out .cal-dn span { color: #c2bfb8; }
.cal-day.past:not(.today) .cal-dn span { color: var(--faint); }
.cal-day.veda { background: repeating-linear-gradient(135deg, #faf9f7 0 6px, #f1efea 6px 12px); }
.cal-day.elec { background: #fff1ea; }
.cal-dn { display: flex; align-items: center; gap: 6px; padding: 2px 4px 4px; min-height: 28px; flex-wrap: wrap; }
.cal-dn span { font-weight: 600; font-size: 13.5px; }
.cal-day.today .cal-dn span { background: var(--blue); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; }
.tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.tag.e { background: var(--navy); color: #fff; } .tag.l { background: #fde3e6; color: #a8202f; }
.cal-ev { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; border-radius: 6px; padding: 3px 6px; font-size: 12px; text-align: left; background: #fff1d6; color: #6b4300; min-width: 0; }
.cal-ev:hover { filter: brightness(.96); }
.cal-ev.s-publicado { background: #d6f8e8; color: #00573a; }
.cal-ev.s-fallido, .cal-ev.s-bloqueado { background: #fde3e6; color: #8c1c29; }
.cal-ev .t { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.cal-ev .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-more { border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 2px 6px; }
.cal-more:hover { color: var(--ink); }
.cal-legend { display: flex; gap: 18px; padding: 12px 20px; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lgd { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lgd.prog { background: #fff1d6; box-shadow: inset 0 0 0 1px #e8c98a; } .lgd.pub { background: #d6f8e8; box-shadow: inset 0 0 0 1px #8fd9b6; } .lgd.fail { background: #fde3e6; box-shadow: inset 0 0 0 1px #f3b6bd; }
.lgd.veda { background: repeating-linear-gradient(135deg, #faf9f7 0 3px, #e4e1da 3px 6px); }
dialog.wide { width: min(640px, calc(100vw - 32px)); }
dialog.roomy { width: min(720px, calc(100vw - 32px)); }
dialog.roomy .db { padding-left: 28px; padding-right: 28px; }
dialog.roomy .form { gap: 18px; }
dialog.wide:has(.ttv-grid) { width: min(860px, calc(100vw - 32px)); }
.ttv-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.ttv-sum > div { background: var(--surface-2, #f4f3f0); border-radius: 10px; padding: 10px 12px; display: grid; }
.ttv-sum b { font-size: 20px; }
.ttv-sum span { color: var(--muted); font-size: 12.5px; }
.ttv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-height: 58vh; overflow: auto; padding-right: 2px; }
.ttv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.ttv-cover { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 240px; background: #111; }
.ttv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttv-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; }
.ttv-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ttv-act { margin-top: auto; padding-top: 4px; }
.ttv-cover video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--line-2); }
.ttv-priv { margin: 0; }
.ttv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ttv-title { margin: 0; font-weight: 600; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttv-body p.small { margin: 0; }
.ttv-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink); }
.ttv-stats span { display: inline-flex; align-items: center; gap: 3px; }
.ttv-act { display: flex; flex-wrap: wrap; gap: 6px; }
.ttv-act .btn { gap: 5px; width: 100%; justify-content: center; white-space: normal; text-align: center; }
.ttv-note { margin: 12px 0 0; }
@media (max-width: 560px) { .ttv-sum { grid-template-columns: repeat(2, 1fr); } }
.pd { display: grid; grid-template-columns: 140px 1fr; gap: 16px 20px; padding: 10px 0 16px; border-bottom: 1px solid var(--line-2); align-items: start; }
.pd-actions { grid-column: 1 / -1; display: grid; gap: 14px; }
.pd-actions:empty, .pd-actions[hidden] { display: none; }
.pd-btns { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 560px) { .pd { grid-template-columns: 120px 1fr; } }
.pd:last-child { border-bottom: 0; }
.pd video { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; border-radius: 12px; background: var(--line-2); flex: none; align-self: flex-start; }
.pd-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-info b { font-size: 16px; }
.pd-info .tt-who span.small { font-size: 13px; }
.pd-info .tt-decl { margin: 0; }
.pd-info .tt-mode { border: 0; padding: 4px 0 0; margin: 0; gap: 10px; }
.tt-box:has(.tt-direct[hidden]):not(:has(.tt-mode)) { display: none; }
.pd-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cal-day { min-height: 64px; } .cal-ev .r, .cal-ev .t { display: none; } .cal-ev { width: auto; padding: 4px; } .cal-day { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .cal-dn { width: 100%; } .tag { display: none; }
}

/* pauta */
.pz { display: grid; gap: 16px; }
.pz-in { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.pz-sentence { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pz-money { display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid var(--blue); padding: 0 4px; color: var(--blue); }
.pz-money input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 6.5ch; padding: 0; outline: none; -moz-appearance: textfield; }
.pz-money input::-webkit-outer-spin-button, .pz-money input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pz-date { border: 0; border-bottom: 3px solid var(--line); background: transparent; font: inherit; font-size: 22px; color: var(--ink); padding: 0 2px; }
.pz-date:focus, .pz-money:focus-within { outline: none; border-color: var(--ink); }
.pz-datos { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pz-out { display: grid; gap: 16px; }
.pz-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.pz-big > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pz-big > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.pz-big .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.pz-big b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pz-big > div:nth-child(2) b { color: var(--blue); }
.pz-big .sub { font-size: 13px; color: #a3a6ad; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pz-big .sub .chip { height: 20px; font-size: 11.5px; }
.pz-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.pz-chart .axis { stroke: var(--line); stroke-width: 1; }
.pz-chart .ref { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; }
.pz-chart .ref-t { font-size: 11px; fill: var(--muted); }
.pz-chart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.pz-bar rect:not(.hit) { fill: var(--blue); transition: opacity .15s; }
.pz-bar .hit { fill: transparent; cursor: default; }
.pz-bar:hover rect:not(.hit) { fill: var(--blue-2); }

/* padrón en ajustes */
.pad-ok { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.pad-ok div { display: flex; flex-direction: column; }
.pub-row { display: grid; grid-template-columns: 1fr 200px auto; gap: 8px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line, #e6e3dc); }
.pub-row textarea { grid-column: 1 / 3; }
.pub-row .icon-btn { grid-column: 3; grid-row: 1; }
.input.sm { padding: 6px 8px; font-size: 13px; min-height: 0; }
.pad-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pad-nums div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pad-nums b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pad-nums span { font-size: 12px; color: var(--muted); }
.pad-drop { padding: 22px; }

@media (max-width: 1100px) { .rs-stats, .pz-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pz-big > div:nth-child(3) { border-left: 0; } .rs-hero { grid-template-columns: 1fr 1fr; } .rs-next { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.08); } }
@media (max-width: 560px) { .rs-count b { font-size: 44px; } .rs-week { gap: 4px; } .rs-day { padding: 8px 2px; } .pz-sentence { font-size: 20px; } .pz-date { font-size: 17px; } .pz-big b { font-size: 28px; } .pad-nums { grid-template-columns: repeat(2, 1fr); } .net-pick { grid-template-columns: 1fr; } }

/* pauta v3 */
.pz2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.pz-ctl { display: flex; flex-direction: column; gap: 14px; }
.pz-ctl .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-ctl .input { padding: 0 8px; font-size: 14px; }
.pz-money2 { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border: 1px solid #dcd9d2; border-radius: 10px; background: #fff; }
.pz-money2:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.pz-money2 span { font-weight: 700; color: var(--blue); font-size: 18px; }
.pz-money2 input { border: 0; outline: none; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.03em; width: 100%; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.pz-money2 input::-webkit-outer-spin-button, .pz-money2 input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pz-dl { margin: 0; background: var(--bg); border-radius: 10px; padding: 6px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.pz-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pz-dl div:last-child { border-bottom: 0; }
.pz-dl dt { color: var(--muted); } .pz-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pz-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pz-chart-card { flex: 1; display: flex; flex-direction: column; }
.pz-chart-card .pz-chart { flex: 1; min-height: 180px; max-height: none; height: 100%; }
.pz-xl { display: grid; text-align: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pz-xl b { display: block; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.pz-ref-t { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pz-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.pz-table td:first-child { white-space: nowrap; }
@media (max-width: 1100px) { .pz2 { grid-template-columns: minmax(0, 1fr); } }

/* resumen: cuentas y reels */
.rs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.rs-acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rs-acc li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rs-acc li:last-child { border-bottom: 0; }
.rs-acc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.rs-acc .fl { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-reels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rs-reels a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #0d0d0f; }
.rs-reels span { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-reels em { font-style: normal; font-size: 11.5px; color: var(--muted); }
@media (max-width: 980px) { .rs-row { grid-template-columns: minmax(0, 1fr); } .rs-reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* inicio */
.home { display: grid; gap: 16px; }
.home-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.home-kpis > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.home-kpis > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.home-kpis .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.home-kpis b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-kpis b small { font-size: 18px; color: #6f727a; }
.home-kpis > div:first-child b { color: var(--blue); }
.home-kpis .sub { font-size: 12.5px; color: #a3a6ad; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: stretch; }
.home-projects { display: flex; flex-direction: column; gap: 10px; }
.home-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; }
.home-projects { grid-column: 1; }
.home-act { grid-column: 1; }
.home-side { grid-column: 2; grid-row: 1 / span 2; }
.hp { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.hp:hover { box-shadow: 0 6px 18px rgba(18,19,22,.07); }
.hp-who { display: flex; align-items: center; gap: 12px; }
.hp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-name b { font-size: 17px; } .hp-name span { font-size: 13px; color: var(--muted); }
.hp-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hp-stats > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.hp-stats .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.hp-stats b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-stats > div > span:last-child { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-nets { display: flex; gap: 3px; align-items: center; }
.hp-nets .net { width: 18px; height: 18px; border-radius: 5px; } .hp-nets .net svg { width: 11px; height: 11px; }
.hp-nets small { margin-right: 4px; }
.home-act { display: flex; flex-direction: column; }
.ha { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: stretch; flex: 1; }
.ha-d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ha-d .ha-bar { flex: 1; min-height: 110px; height: auto; }
.ha-bar { width: 100%; max-width: 34px; height: 110px; background: var(--bg); border-radius: 6px; display: flex; flex-direction: column-reverse; overflow: hidden; gap: 2px; }
.ha-bar i { display: block; width: 100%; border-radius: 4px; }
.ha-d b { font-size: 13px; min-height: 18px; font-variant-numeric: tabular-nums; }
.ha-d span { font-size: 11.5px; color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.ha-d.today span { color: var(--blue); font-weight: 700; }
.ha-leg { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.ha-leg span { display: inline-flex; align-items: center; gap: 6px; } .ha-leg i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 1250px) { .hp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .home-side, .home-projects, .home-act { grid-column: 1; grid-row: auto; } }
@media (max-width: 560px) { .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-who .chip { display: none; } .ha { gap: 2px; } .ha-d span { font-size: 10px; } }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-agenda { flex: 1; }
.hn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hn { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.hn b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; } .hn div span { font-size: 12px; color: var(--muted); }
.ag { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.ag:last-child { border-bottom: 0; }
.ag-t { width: 64px; flex: none; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; text-transform: capitalize; }
.ag-t b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-w { min-width: 0; display: flex; flex-direction: column; }
.ag-w b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-w span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.ag-w .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 1250px) { .hp { grid-template-columns: 1fr 1fr 1fr; } .hp-who { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-kpis > div { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.08); } }

/* cuentas en dos columnas */
.ac { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.ac-side { display: flex; flex-direction: column; gap: 16px; }
.ac-add { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ac-add button { min-width: 0; }
.ac-add button .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-add button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; }
.ac-add button .n { flex: 1; min-width: 0; text-align: left; } /* solo el nombre se estira: el ícono queda cuadrado */
.ac-add button svg:last-child { color: var(--muted); }
.ac-add button:hover { border-color: var(--blue); }
.ac-nets { display: flex; flex-direction: column; gap: 10px; }
.ac-nets > div { display: grid; grid-template-columns: 28px 80px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; }
.ac-nets .bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.ac-nets .bar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.ac-nets b { text-align: right; font-variant-numeric: tabular-nums; }
.ac-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ac-tot div { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.ac-tot b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; } .ac-tot span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .ac { grid-template-columns: minmax(0, 1fr); } }

/* reels en dos columnas */
.rl { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.rl-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.rl-side .drop { padding: 34px 18px; }
.rl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rl-stats b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .rl-stats span { font-size: 12.5px; color: var(--muted); }
.up-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.reels { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rl-empty { min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .rl { grid-template-columns: minmax(0, 1fr); } .rl-side { position: static; } }

.cal-ev.s-publicando { background: #e3e6ff; color: #2a35c9; }
.lgd.publ { background: #e3e6ff; box-shadow: inset 0 0 0 1px #b8bff5; }
.chip.s-publicando { background: #e3e6ff; color: #2a35c9; }
.pd-info a.btn { align-self: flex-start; }

/* Meta Ads */
.ads { margin-top: 16px; }
.ads .card-head .net { width: 36px; height: 36px; border-radius: 10px; } .ads .card-head .net svg { width: 20px; height: 20px; }
.ads-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.ads-step { display: flex; gap: 12px; background: var(--bg); border-radius: 12px; padding: 16px; }
.ads-step > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.ads-step .dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--navy); color: #fff; }
.ads-step.done .dot { background: var(--ok); }
.ads-step .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ads-step code { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.ads-step .row { flex-wrap: wrap; }
@media (max-width: 1250px) { .ads-grid { grid-template-columns: minmax(0, 1fr); } }

/* laboratorio */
.lab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.lab-trace { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.lab-t tr[data-act] { cursor: pointer; }
.lab-t tr[data-act]:hover td { background: var(--bg); }
.lab-t tr.sel td { background: #fff1ea; }
.lab-sum { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chip.s-run-ok { background: #d6f8e8; color: #00704a; } .chip.s-run-error { background: #fde3e6; color: #a8202f; }
.chip.s-run-corriendo { background: #e3e6ff; color: #2a35c9; } .chip.s-run-cortada { background: #eef0f7; color: #5f6080; }
.tr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tr li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.tr li.bad { border-color: #f3b6bd; background: #fffafa; }
.tr-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tr-h code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr-k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--line-2); border-radius: 5px; padding: 2px 6px; flex: none; }
.tr-caso .tr-k { background: var(--navy); color: #fff; }
.tr-s { font-weight: 700; font-variant-numeric: tabular-nums; }
.tr pre { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; background: var(--bg); border-radius: 8px; padding: 8px 10px; max-height: 180px; overflow: auto; }
.lab-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bk-hero { display: grid; grid-template-columns: 220px 1fr; background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.bk-hero > div { padding: 22px 24px; }
.bk-hero > div:first-child { border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.bk-hero .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.bk-hero b { font-size: 48px; font-weight: 800; letter-spacing: -.04em; color: var(--blue); line-height: 1.05; }
.bk-hero .sub { font-size: 12.5px; color: #a3a6ad; }
.bk-txt { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.bk-txt p { color: #c9cbd1; font-size: 14px; } .bk-txt b { color: #fff; font-size: inherit; letter-spacing: 0; } .bk-txt .btn { align-self: flex-start; }
.bk-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-cases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk-cases li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.bk-cases li:last-child { border-bottom: 0; }
.bk-cases .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.bk-cases li.bad .ic { background: var(--red); }
.bk-cases li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.bk-cases li > div span { font-size: 12.5px; color: var(--red); }
.lab-hist { position: sticky; top: 100px; }
.bk-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.bk-hist button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; text-align: left; }
.bk-hist button.sel { border-color: var(--blue); background: #fff1ea; }
.rv-t video { width: 30px; height: 54px; object-fit: cover; border-radius: 5px; background: #0d0d0f; flex: none; }
.rv-t th.c, .rv-t td.c { text-align: center; } .rv-t th.c .net { width: 24px; height: 24px; border-radius: 7px; } .rv-t th.c .net svg { width: 14px; height: 14px; }
.rv { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: var(--ok); }
.rv.bad { background: var(--red); }
.rv-why { display: block; font-size: 11px; color: var(--red); max-width: 120px; margin: 4px auto 0; line-height: 1.3; }
@media (max-width: 1100px) { .lab { grid-template-columns: minmax(0, 1fr); } .lab-trace, .lab-hist { position: static; max-height: none; } .bk-groups { grid-template-columns: minmax(0, 1fr); } .bk-hero { grid-template-columns: 1fr; } .bk-hero > div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,19,22,.12); }
.lab { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); }
@media (max-width: 1100px) { .lab { grid-template-columns: minmax(0, 1fr); } } /* la de arriba pisaba la de móvil */
.lab-t td { padding: 10px 10px; }
.lab-t .handle > div { white-space: nowrap; }
.lab-t td.small { white-space: nowrap; }
.lab-sum { max-width: 220px; }
.lab.bk { align-items: stretch; }
.lab.bk .lab-hist { position: static; }

.lab:not(.bk) { align-items: stretch; }
.lab-list, .lab:not(.bk) .lab-trace { min-height: calc(100vh - 210px); }
.lab-t .handle > div.lab-what { white-space: normal; min-width: 0; }
.lab-what small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.lab-what .lab-err { color: var(--red); }
.tr-h .small { white-space: nowrap; }
.lab-t { table-layout: fixed; }
.lab-t th:nth-child(1) { width: 120px; } .lab-t th:nth-child(3) { width: 96px; } .lab-t th:nth-child(4) { width: 70px; }
.lab-t .handle { min-width: 0; } .lab-t .handle > div.lab-what { overflow: hidden; }
.lab-what small { max-width: 100%; }

/* investigación */
.kn { display: flex; flex-direction: column; gap: 16px; }
.kn-search { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.kn-row { display: flex; gap: 8px; }
.kn-row .input { flex: 1; min-width: 0; }
.kn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--muted); }
.kn-chips button b { color: var(--ink); font-weight: 600; margin-left: 2px; }
.kn-chips button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kn-chips button[aria-pressed=true] b { color: #fff; }
.kn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.kn-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kn-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.kn-meta { margin: 0 2px; }
.kn-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kn-card h3 { font-size: 15.5px; margin: 2px 0 0; }
.kn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kn-text { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.kn-card a.small { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.chip.conf-alta { background: #e6f6ee; color: #137a48; }
.chip.conf-media { background: #fff4e0; color: #9a5b00; }
.chip.conf-baja { background: #fdeaea; color: #b42323; }
.kn-acc { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.kn-acc button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.kn-acc button span { font-size: 12.5px; color: var(--muted); }
.kn-acc button.sel { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
@media (max-width: 1100px) { .kn-grid { grid-template-columns: minmax(0, 1fr); } .kn-side { position: static; } }
@media (max-width: 560px) { .kn-row { flex-direction: column; } }

/* conectar con un clic */
.cp-quick { display: flex; align-items: center; gap: 20px; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px; background: var(--surface); margin-bottom: 6px; }
.cp-quick b { font-size: 17px; }
.cp-quick p { font-size: 14px; }
.cp-quick .net-btn { height: 48px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.cp-quick p { margin: 2px 0 0; }
.cp-quick .btn { flex: none; gap: 8px; }
.cp-vids { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--surface); margin: 8px 0 4px; }
.cp-vlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.cp-vlist li { display: flex; gap: 10px; align-items: center; }
.cp-vlist img { width: 36px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line); }
.cp-vlist li > div { display: grid; min-width: 0; }
.cp-vlist a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-mode { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tt-opt { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.tt-opt input { margin-top: 3px; }
.tt-opt span { display: grid; gap: 1px; }
.tt-opt b { font-size: 14.5px; }
.tt-opt small { color: var(--muted); font-size: 12.5px; }
.tt-box:has(.tt-direct[hidden]) .tt-mode { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.net-btn { border: 0; color: #fff; font-weight: 600; gap: 10px; }
.net-btn .net-ico { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.net-btn .net-ico svg { width: 20px; height: 20px; }
.btn.sm.net-btn .net-ico, .btn.sm.net-btn .net-ico svg { width: 16px; height: 16px; }
.net-btn.facebook, .net-btn.instagram { background: #0866FF; }
.net-btn.facebook:hover:not(:disabled), .net-btn.instagram:hover:not(:disabled) { background: #0756d6; }
.net-btn.tiktok { background: #000; }
.net-btn.tiktok:hover:not(:disabled) { background: #222; }
.net-btn.youtube { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.net-btn.youtube:hover:not(:disabled) { background: #f6f7f8; }
.net-btn:disabled { opacity: .7; }
.rd-back { align-self: flex-start; gap: 6px; }
.rd-table td { vertical-align: middle; }
.rd-table .btn { gap: 6px; }
.cp-quick .btn .net { width: 22px; height: 22px; }
.cp-or { text-align: center; margin: 6px 0 10px; }
@media (max-width: 560px) { .cp-quick { flex-direction: column; align-items: stretch; } }

/* TikTok: cuenta y opciones antes de publicar */
.tt-box { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); }
.tt-direct { display: grid; gap: 16px; }
.tt-direct .field { margin: 0; }
.tt-who { display: flex; align-items: center; gap: 10px; }
.tt-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.tt-who div { display: flex; flex-direction: column; }
.tt-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.tt-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.35; }
.tt-chk input { margin-top: 2px; flex: none; }
.tt-chk.off { color: var(--muted); }
.tt-brand { display: flex; flex-direction: column; gap: 10px; padding-left: 26px; }
.tt-decl { margin: 0; }
.tt-decl a { color: var(--blue); }
.tt-dist { display: flex; flex-direction: column; gap: 8px; }

/* reels: tarjeta lleva al detalle */
.reel-link { position: relative; display: block; }
.reel-link video { display: block; width: 100%; }
.reel-ver { position: absolute; left: 10px; bottom: 10px; background: rgba(18,19,22,.78); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.reel-link:hover .reel-ver, .reel-link:focus-visible .reel-ver { opacity: 1; }
.reel-nets { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; text-decoration: none; color: var(--muted); }
.reel-nets.none { font-size: 13px; }
.reel-nets .small { margin-left: 4px; }
.rn { position: relative; display: inline-flex; }
.rn::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: #b9b6af; }
.rn.s-publicado::after { background: #13a37f; } .rn.s-fallido::after { background: #d9534f; } .rn.s-publicando::after { background: #f29a1f; }

/* detalle de un reel */
.rd { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.rd-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
.rd-side video { width: 100%; max-height: 520px; background: #000; border-radius: 10px; }
.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rd-stats b, .cg-nums b, .cg-money b { display: block; font-size: 22px; font-weight: 700; }
.rd-stats span, .cg-nums span, .cg-money span { font-size: 12.5px; color: var(--muted); }
.rd-free { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.err-t { color: #c0392b; margin: 4px 0 0; max-width: 340px; }
.table .right { text-align: right; }
.rd td .row { flex-wrap: nowrap; }
.rd .table-wrap { overflow-x: auto; }
.rd > .stack { min-width: 0; }

/* campañas */
.cg { display: flex; flex-direction: column; gap: 18px; }
.cg-head { display: flex; flex-direction: column; gap: 16px; }
.cg-total { max-width: 360px; }
.cg-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cg-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--line-2); }
.cg-bar i { display: block; height: 100%; }
.cg-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 16px; font-size: 13px; color: var(--muted); }
.cg-legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cg-legend i.free { background: var(--line); }
.cg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.cg-card { display: flex; flex-direction: column; gap: 10px; }
.cg-top { display: flex; align-items: center; gap: 8px; }
.cg-top h3 { font-size: 17px; margin: 0; }
.cg-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cg-money b { font-size: 17px; }
.cg-spend { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.cg-spend i { display: block; height: 100%; background: var(--c); }
.cg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cg-tags > .small.muted { min-width: 52px; }
.cg-tags a.chip { text-decoration: none; color: inherit; }

/* preguntale a la investigación */
.ask { margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-log { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.ask-log:empty { display: none; }
.ask-q { align-self: flex-end; max-width: 80%; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14.5px; }
.ask-a { align-self: flex-start; max-width: 92%; background: var(--line-2); padding: 12px 16px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; line-height: 1.55; }
.ask-a.err { background: #fdecea; color: #a5281b; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: 2px; }
.ask-src { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ask-src b { color: var(--blue); margin-right: 4px; }

@media (max-width: 900px) {
  .rd { grid-template-columns: minmax(0, 1fr); } .rd-side { position: static; }
  .rd-stats, .cg-money { grid-template-columns: repeat(2, 1fr); }
  .cg-nums { grid-template-columns: 1fr; } .cg-list { grid-template-columns: 1fr; }
}

.cg-who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; }
.cg-who > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cg-who .lbl { font-size: 12.5px; color: var(--muted); min-width: 52px; }
.cg-who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-icons { display: inline-flex; flex-shrink: 0; }
.cg-icons .net { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 0 2px var(--surface); }
.cg-icons .net + .net { margin-left: -6px; }
.cg-icons .net svg { width: 15px; height: 15px; }
.cg-thumbs { display: inline-flex; gap: 4px; flex-shrink: 0; }
.cg-thumbs a { display: block; width: 26px; height: 46px; border-radius: 5px; overflow: hidden; background: var(--line-2); }
.cg-thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cg-foot { margin-top: auto; }
@media (max-width: 560px) { .cg-who { grid-template-columns: 1fr; } }

/* listo / crudo */
.seg.seg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; background: none; padding: 0; }
.seg.seg-cards button { height: auto; min-height: 58px; justify-content: center; align-items: flex-start; text-align: left; line-height: 1.25; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.seg.seg-cards button span { font-size: 12px; color: var(--muted); }
.seg.seg-cards button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff6f2; }
.chip.s-crudo { background: #ece9ff; color: #4b33c9; }
.rl-filter { margin-bottom: 14px; }
.acc-pick label.off { opacity: .55; }
.rf-prev { background: var(--line-2); border-radius: 10px; padding: 12px 14px; }
.rf-prev p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; white-space: normal; }
.rf-prev .htag { color: #2f6bff; font-weight: 600; }
.rd-eds { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.rd-eds a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.rd-eds video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; background: #000; }

/* video ya borrado del almacenamiento */
.gone { aspect-ratio: 9/16; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; background: var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.gone span { font-weight: 400; font-size: 12.5px; }
.gone.tall { border-radius: 10px; max-height: 520px; }

/* Para aprobar */
.ap { display: flex; flex-direction: column; gap: 16px; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ap-eds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.ap-ed { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ap-ed.no { opacity: .55; }
.ap-ed video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #0d0d0f; }
.ap-ed-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ap-recipe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ap-recipe li { display: flex; justify-content: space-between; gap: 8px; }
.ap-recipe span { color: var(--muted); }
.ap-cap { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-pick { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ap .field { display: block; margin: 8px 0; }
.ap .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .ap-eds { grid-template-columns: minmax(0, 1fr); } }

/* ---------- calendario: arrastrar publicaciones entre días ---------- */
.cal-hint { display: flex; align-items: center; gap: 6px; padding: 8px 20px 0; margin: 0; }
.cal-ev.can-move { cursor: grab; touch-action: pan-y; }
.cal-ev.ghost { opacity: .32; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
body.cal-dragging, body.cal-dragging * { cursor: grabbing !important; user-select: none; }
.cal-fly { position: fixed; z-index: 1000; pointer-events: none; margin: 0; transform: rotate(-1.5deg) scale(1.05); box-shadow: 0 14px 34px rgba(18, 19, 22, .28); transition: transform .12s ease, box-shadow .12s ease; animation: cal-lift .14s ease; }
.cal-fly.landing { transition: left .22s cubic-bezier(.2, .8, .2, 1), top .22s cubic-bezier(.2, .8, .2, 1), transform .22s ease, box-shadow .22s ease; transform: none; box-shadow: 0 2px 6px rgba(18, 19, 22, .12); }
.cal-fly .fly-to { position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; background: var(--navy, #121316); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.cal-fly .fly-to:empty { display: none; }
@keyframes cal-lift { from { transform: rotate(0) scale(1); box-shadow: none; } }
.cal-day { transition: background-color .12s ease, box-shadow .12s ease; }
.cal-day.drop-over { background: color-mix(in srgb, var(--blue) 9%, #fff); box-shadow: inset 0 0 0 2px var(--blue); border-radius: 6px; }
.cal-day.drop-no { box-shadow: inset 0 0 0 2px var(--red); border-radius: 6px; }
.cal.week .cal-day { min-height: 340px; }
.cal.week .cal-wd b { color: var(--ink); font-size: 13px; margin-left: 2px; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-act { border: 0; background: transparent; color: #ffb48f; font-weight: 700; font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cal-fly, .cal-fly.landing, .cal-day { transition: none; animation: none; } }
.cal.week .cal-wd.today b { background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 7px; }

/* ---------- compartir para aprobar ---------- */
.sh-form { display: grid; gap: 12px; }
.sh-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.sh-row > div { display: grid; flex: 1; min-width: 0; }
@media (max-width: 560px) { .sh-form .grid2 { grid-template-columns: 1fr; } .sh-row { flex-wrap: wrap; } }

/* ---------- grilla del perfil ---------- */
.gr-wrap { display: grid; grid-template-columns: 240px 330px minmax(0, 1fr); justify-content: center; gap: 36px; padding: 28px 24px; align-items: start; }
@media (max-width: 1350px) { .gr-wrap { grid-template-columns: 240px 330px; } .laptop { display: none; } }
.laptop { align-self: center; min-width: 0; }
.lp-screen { background: #1b1c20; border-radius: 16px 16px 6px 6px; padding: 12px 12px 18px; box-shadow: 0 0 0 2px #3a3b40; }
.lp-page { border-radius: 0 0 4px 4px; }
.lp-bar { display: flex; align-items: center; gap: 12px; background: #2a2b30; border-radius: 8px 8px 0 0; padding: 8px 12px; }
.lp-dots { display: inline-flex; gap: 6px; } .lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .lp-dots i:nth-child(2) { background: #febc2e; } .lp-dots i:nth-child(3) { background: #28c840; }
.lp-url { flex: 1; display: inline-flex; align-items: center; gap: 8px; background: #3a3b40; color: #d7d7da; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.lp-url .net { width: 16px; height: 16px; border-radius: 4px; } .lp-url .net svg { width: 10px; height: 10px; }
.lp-page { background: #fff; aspect-ratio: 16 / 10; overflow: auto; padding: 22px 26px; }
.lp-prof { display: flex; align-items: center; gap: 26px; padding: 0 0 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.lp-av { width: 84px; height: 84px; font-size: 28px; }
.lp-info { display: grid; gap: 4px; } .lp-info > b { font-size: 18px; }
.lp-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 4px; } .lp-stats b { color: var(--ink); }
.lp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.lp-grid .gr-tile { cursor: pointer; }
.lp-base { height: 16px; margin: 0 -28px; background: linear-gradient(#d9d9dc, #bdbdc2); border-radius: 0 0 14px 14px; position: relative; }
.lp-base::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 110px; height: 6px; background: #a9a9ae; border-radius: 0 0 8px 8px; }
@media (max-width: 900px) { .gr-wrap { grid-template-columns: 1fr; } }
.gr-accs { display: grid; gap: 6px; position: sticky; top: 16px; }
.gr-acc { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; font-size: 14px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.gr-acc span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-acc b { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.gr-acc.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.phone { width: 330px; max-width: 100%; margin: 0; padding: 12px; background: #1b1c20; border-radius: 52px; box-shadow: 0 0 0 2px #3a3b40, 0 30px 60px rgba(18, 19, 22, .28); }
.ph-screen { position: relative; background: #fff; border-radius: 40px; overflow: hidden; aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 6px; font-size: 13px; font-weight: 700; flex: none; position: relative; }
.ph-island { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 96px; height: 26px; background: #111; border-radius: 20px; }
.ph-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.ph-sig i { width: 3px; background: #111; border-radius: 1px; } .ph-sig i:nth-child(1) { height: 5px; } .ph-sig i:nth-child(2) { height: 7px; } .ph-sig i:nth-child(3) { height: 9px; }
.ph-sig b { width: 20px; height: 10px; border: 1.5px solid #111; border-radius: 3px; margin-left: 4px; position: relative; } .ph-sig b::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #111; border-radius: 1px; }
.ph-bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 8px; padding: 6px 16px 10px; text-align: center; font-size: 15px; flex: none; }
.ph-net .net { width: 22px; height: 22px; border-radius: 6px; } .ph-net .net svg { width: 13px; height: 13px; }
.ph-prof { display: flex; align-items: center; gap: 12px; padding: 4px 14px 8px; flex: none; }
.ph-av { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; flex: none; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.ph-av img { width: 100%; height: 100%; object-fit: cover; }
.ph-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ph-stats { gap: 4px; } .ph-stats div { display: grid; min-width: 0; } .ph-stats b { font-size: 16px; } .ph-stats span { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ph-name { padding: 0 16px 10px; display: grid; font-size: 13px; flex: none; } .ph-name span { color: var(--muted); font-size: 12px; }
.ph-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); flex: none; }
.ph-tabs span { display: grid; place-items: center; height: 38px; color: var(--faint); border-bottom: 2px solid transparent; }
.ph-tabs span.on { color: var(--ink); border-bottom-color: var(--ink); }
.ph-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 5px; background: rgba(0,0,0,.75); }
.ph-scroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 22px; scrollbar-width: none; }
.ph-scroll::-webkit-scrollbar { display: none; }
.phone .gr-grid { max-height: none; overflow: visible; }
.gr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-height: 640px; overflow: auto; }
.gr-tile { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: #111; overflow: hidden; display: block; transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.gr-tile img, .gr-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gr-tile.s-programado::after, .gr-tile.s-fallido::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); }
.gr-tile.s-fallido { outline: 3px solid var(--red); outline-offset: -3px; }
.gr-badge { position: absolute; top: 6px; left: 6px; z-index: 1; background: rgba(18, 19, 22, .72); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.gr-tile.s-publicado .gr-badge { background: var(--ok); }
.gr-title { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; color: #fff; font-size: 11px; font-weight: 600; text-align: left; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-tile.can-move { cursor: grab; touch-action: pan-y; }
.gr-tile.ghost { opacity: .3; }
.gr-tile.drop-over { box-shadow: inset 0 0 0 3px var(--blue); transform: scale(.96); }
.gr-tile.drop-no { box-shadow: inset 0 0 0 3px var(--red); }
.gr-fly { border-radius: 8px; }
@media (max-width: 900px) { .gr-wrap { grid-template-columns: 1fr; } .gr-accs { position: static; grid-auto-flow: column; overflow-x: auto; } .gr-accs p { display: none; } }
.cal-head .seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; margin: 0; }
.cal-head .seg button { height: 30px; padding: 0 12px; }
.gr-acc > :first-child { flex: none; width: auto; max-width: 28px; }

/* ---------- entrada suave al cambiar de pestaña ---------- */
main.page.enter > *, main.page.enter > * > .card, main.page.enter > * > section { animation: acm-up .38s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes acm-up { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { main.page.enter > *, main.page.enter > * > .card, main.page.enter > * > section { animation: none; } }

/* ---------- mejores horarios ---------- */
.card.best { margin-top: 16px; }
.best-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 12px; }
.best-net { display: grid; gap: 6px; align-content: start; }
.best-row { display: grid; grid-template-columns: 62px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }
.best-row .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.best-row .bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.best-row .bar i { display: block; height: 100%; background: #c9c6bf; border-radius: inherit; transform-origin: left; animation: best-grow .6s cubic-bezier(.2, .8, .2, 1) both; }
.best-row.top .bar i { background: var(--blue); }
.best-row.top .t, .best-row.top .l { color: var(--blue); font-weight: 700; }
.best-row .l { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes best-grow { from { transform: scaleX(0); } }

/* ---------- lo que mejor les funcionó (outliers) ---------- */
.kn-out { display: grid; gap: 8px; }
.kn-o { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background .15s; border-radius: 8px; }
a.kn-o[href]:hover { background: var(--line-2); }
.kn-o > span:last-child { display: grid; gap: 2px; min-width: 0; }
.kn-score { align-self: start; text-align: center; font-weight: 800; font-size: 15px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, #fff); border-radius: 9px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.kn-ot { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal-mvday { margin-left: auto; border: 0; background: transparent; color: var(--faint); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.cal-day:hover .cal-mvday, .cal-mvday:focus-visible { opacity: 1; }
.cal-mvday:hover { background: var(--line-2); color: var(--ink); }
@media (hover: none) { .cal-mvday { opacity: 1; } }

/* ---------- rendimiento y tablero del resumen ---------- */
.perf, .pl { display: grid; gap: 14px; }
.card-head .perf-seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; margin: 0; grid-template-columns: none; }
.perf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perf-k { display: grid; gap: 2px; padding: 14px; background: var(--bg); border-radius: 12px; }
.perf-k b { font-size: 26px; }
.dl { font-size: 12px; font-weight: 700; }
.dl.up { color: var(--ok); } .dl.down { color: var(--red); }
.perf-spark { width: 100%; height: 90px; display: block; }
.perf-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: perf-draw 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes perf-draw { to { stroke-dashoffset: 0; } }
.perf-h { font-size: 15px; font-weight: 700; }
.perf-best { display: grid; gap: 6px; }
.perf-row { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .15s; }
.perf-row:hover { background: var(--line-2); }
.perf-row img, .perf-row video { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; background: #111; }
.perf-row .rk { font-weight: 800; color: var(--faint); text-align: center; }
.perf-row .tt, .perf-row .vv { display: grid; min-width: 0; } .perf-row .vv { text-align: right; }
.perf-row .tt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pl-col { background: var(--bg); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.pl-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.pl-h b { background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.pl-col.s-aprobar.has .pl-h b { background: var(--blue); color: #fff; }
.pl-col.s-problema.has .pl-h b { background: var(--red); color: #fff; }
.pl-card { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pl-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(18, 19, 22, .1); }
.pl-card img, .pl-card video, .pl-ph { width: 34px; height: 46px; object-fit: cover; border-radius: 5px; background: #111; display: grid; place-items: center; color: #fff; }
.pl-card > span:last-child { display: grid; min-width: 0; font-size: 12.5px; }
.pl-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-more { padding: 2px 4px; }
@media (max-width: 700px) { .perf-kpis { grid-template-columns: 1fr 1fr; } .perf-k b { font-size: 22px; } }

.perf-row .tt .net { width: 16px; height: 16px; display: inline-grid; vertical-align: -3px; }
.perf-row .tt .net svg { width: 16px; height: 16px; }

/* ---------- lista de publicaciones ---------- */
.lq-bar { display: flex; gap: 8px; padding: 14px 20px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.lq-bar .input { height: 38px; width: auto; font-size: 14px; padding: 0 12px; }
.lq-bar select.input { padding-right: 30px; }
.lq-bar #lq-q { flex: 1; min-width: 200px; }
.lq-wrap { overflow-x: auto; }
.lq { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lq th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); }
.lq td { padding: 9px 20px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lq td:nth-child(2) { white-space: normal; }
.lq tr[data-pid] { cursor: pointer; transition: background .12s; }
.lq tr[data-pid]:hover, .lq tr[data-pid]:focus-visible { background: var(--line-2); }
.lq-acc { display: inline-flex; align-items: center; gap: 8px; }
.lq .net { width: 22px; height: 22px; border-radius: 6px; }
.lq .net svg { width: 13px; height: 13px; }

/* ---------- buscador global ---------- */
dialog.pal { width: min(620px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(18, 19, 22, .35); margin-top: 12vh; animation: pal-in .16s ease; }
dialog.pal::backdrop { background: rgba(18, 19, 22, .35); backdrop-filter: blur(2px); }
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; border: 0; outline: 0; font-size: 16px; color: var(--ink); background: transparent; }
kbd { font: 600 11px var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); background: var(--bg); }
.pal-res { max-height: 52vh; overflow: auto; padding: 6px; }
.pal-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 10px 10px 4px; }
.pal-it { display: grid; padding: 8px 10px; border-radius: 9px; color: inherit; text-decoration: none; }
.pal-it.on, .pal-it:hover { background: var(--line-2); }
.side .pal-btn { border: 0; background: transparent; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.side .pal-btn kbd { margin-left: auto; background: transparent; border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .55); }
.side .item .pin { margin-left: auto; border: 0; background: transparent; color: rgba(255, 255, 255, .35); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; opacity: 0; transition: opacity .15s, color .15s; }
.side .item:hover .pin, .side .item .pin:focus-visible, .side .item.pinned .pin { opacity: 1; }
.side .item.pinned .pin { color: #ffb48f; }
.side .item.pinned .pin svg { fill: currentColor; }
.side .item .count + .pin { margin-left: 4px; }
@media (hover: none) { .side .item .pin { opacity: 1; } }

/* comentarios en un segundo exacto */
.tc { display: grid; gap: 6px; }
.tc-bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.tc-bar i { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface); cursor: pointer; transition: transform .15s; animation: tc-pop .25s ease-out; }
.tc-bar i:hover { transform: scale(1.3); }
@keyframes tc-pop { from { transform: scale(0); } to { transform: scale(1); } }
.tc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.tc-list li { display: flex; gap: 6px; align-items: baseline; }
.tc-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tc-t { font: inherit; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green); background: none; border: 0; padding: 0; cursor: pointer; }
.tc-x { background: none; border: 0; color: inherit; opacity: .45; cursor: pointer; padding: 0 2px; }
.tc-x:hover { opacity: 1; }
.tc-add { display: flex; gap: 6px; }
.tc-add .input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; }
.ref-form { display: grid; gap: 6px; margin: 8px 0 10px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ref-list li { display: flex; gap: 8px; align-items: flex-start; animation: tc-pop .2s ease-out; }
.ref-b { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.ref-b a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* comentarios y respuestas automáticas */
.ar-form { display: grid; gap: 8px; margin: 10px 0 14px; }
.ar-list, .ib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ar-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.ar-b { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.ib-list li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.ib-list li p { overflow-wrap: anywhere; }
.ib-list .chip { justify-self: start; }
.switch { position: relative; flex: none; width: 38px; height: 22px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: var(--line); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---- pasada visual (12/11): pastillas de métricas, miniaturas, deltas, horarios, comentarios, pestañas ---- */
.mps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: inherit; }
.perf-row .vv .mps { justify-content: flex-end; }
.mp { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp b { font-size: 10.5px; font-weight: 700; }
.mp-views { background: #e5eeff; color: #2346b8; }
.mp-likes { background: #ffe4ea; color: #b4183f; }
.mp-comments { background: #fff0db; color: #9a5300; }
.mp-shares { background: #ddf6ea; color: #0b7046; }
.mp-rate { background: var(--line-2); color: var(--muted); }
.dl { display: inline-flex; align-items: center; gap: 3px; justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dl.up { color: #0b7046; background: #ddf6ea; } .dl.down { color: #b4183f; background: #ffe4ea; }
.cal-ev .th { position: relative; flex: none; width: 15px; height: 20px; border-radius: 3px; overflow: hidden; background: #0d0d0f; }
.cal-ev .th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cal-ev .th .nd { position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; box-shadow: 0 0 0 1.5px #fff; }
.best-net { --nc: var(--green); }
.best-net.n-instagram { --nc: #d6249f; } .best-net.n-facebook { --nc: #1877f2; } .best-net.n-tiktok { --nc: #111; } .best-net.n-youtube { --nc: #ff0000; }
.best-row .bar i { background: var(--nc) !important; opacity: .45; }
.best-row.top .bar i { opacity: 1; }
.best-row .l { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.best-row .l.up { color: #0b7046; } .best-row .l.down { color: #b4183f; }
.tc-list li { align-items: flex-start; }
.tc-list .tc-av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--ink); }
.tc-list .tc-c { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tc-t { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; font-size: 11.5px; background: color-mix(in srgb, var(--green) 14%, transparent); }
.tabs { position: relative; }
.tabs.more-r { mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tabs.more-l { mask-image: linear-gradient(90deg, transparent, #000 48px); }
.tabs.more-l.more-r { mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.cal-nav { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); flex: none; }
.cal-tb { border: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-grid; place-items: center; min-width: 36px; }
.cal-tb + .cal-tb { border-left: 1px solid var(--line); }
.cal-tb:hover { background: var(--line-2); }
.cal-seg { height: 36px; flex-wrap: nowrap; align-items: stretch; }
.cal-seg button { height: auto; }
.cal-sync { height: 36px; font-size: 13.5px; gap: 6px; padding: 0 14px; }
.cal-head { gap: 10px; min-height: 72px; }
.cal-ev .net { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.cal-ev .net svg { width: 10px; height: 10px; }
.cal-ev { height: 24px; padding: 0 6px; gap: 6px; }
.cal-dn.empty { display: none; }
.cal.week .cal-dn { order: 99; min-height: 0; padding: 0; justify-content: center; }
.cal.week .cal-day { min-height: 420px; padding: 8px; gap: 8px; }
.cal-ev.wk { height: auto; padding: 6px; align-items: stretch; gap: 8px; border-radius: 10px; }
.wk-th { width: 34px; flex: none; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.08); }
.wk-th img, .wk-th video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wk-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; justify-content: center; }
.wk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cal-ev.wk .r { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.25; }
.wk-who { font-size: 11.5px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-card.kn-pub { padding: 12px 16px; gap: 4px; }
.kn-card.kn-pub h3 { font-size: 14px; }
.kn-card.kn-pub .kn-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.kn-card.kn-pub .kn-top .chip { font-size: 11.5px; }
.cal-head .cal-nav { margin-left: auto; }
.pub-estilo { grid-column: 1 / -1; font-size: 13px; }
.pub-estilo summary { cursor: pointer; font-weight: 600; margin: 2px 0 6px; }
.pub-dim { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 4px 0; }
.pub-dim > span { width: 88px; color: var(--muted, #6b6b6b); }
.pub-dim label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
@media (max-width: 640px) { .pub-row { grid-template-columns: 1fr auto; } .pub-row select { grid-column: 1; } .pub-row textarea { grid-column: 1 / -1; } .pub-row .icon-btn { grid-column: 2; } }
