:root {
  --bg: #F8F3ED;
  --bg-2: #F4ECDE;
  --surface: #FFFFFF;
  --surface-soft: #FAF5EE;
  --surface-2: #EDE4D4;
  --ink-1: #1E140A;
  --ink-2: #4A3929;
  --ink-3: #5C4633;  /* WCAG AA on paper */
  --ink-4: #7B5F47;  /* WCAG AA on paper */
  --ink-5: #9F8868;
  --accent: #C65D3F;
  --accent-soft: rgba(198,93,63,0.08);
  --accent-strong: rgba(198,93,63,0.18);
  --shadow-1: 0 1px 2px rgba(42,31,20,0.04);
  --shadow-2: 0 2px 8px rgba(42,31,20,0.06);
  --shadow-3: 0 8px 24px rgba(42,31,20,0.10);
  --rule: rgba(42,31,20,0.08);
  --rule-strong: rgba(42,31,20,0.14);
  --serif: 'EB Garamond', Georgia, serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --header-h: 56px;
  --nav-h: 64px;
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 64px;
  --safe-top: env(safe-area-inset-top);
  --safe-bot: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body { color: var(--ink-1); font-family: var(--sans); font-size: 15px; line-height: 1.5; font-weight: 400; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(42,31,20,0.08); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(42,31,20,0.18); }

/* ───────────────────────────────────────────
   APP SHELL
─────────────────────────────────────────── */
.shell {
  height: 100vh;           /* fallback navegadores viejos */
  height: 100dvh;          /* iOS Safari: respeta la barra inferior del navegador (nav no queda escondido) */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: calc(var(--header-h) + var(--safe-top)) 1fr calc(var(--nav-h) + var(--safe-bot));
  grid-template-areas: "topbar" "main" "bottomnav";
}

/* ── TOPBAR (mobile) ── */
.topbar {
  grid-area: topbar;
  padding-top: var(--safe-top);
  background: rgba(248,243,237,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--rule);
  display: flex; align-items: center;
  padding-left: 20px; padding-right: 12px; gap: 8px;
  z-index: 50;
}
.brand {
  font-family: var(--serif); font-size: 24px;
  color: var(--ink-1);
  letter-spacing: -0.01em; line-height: 1;
  font-weight: 500;
}
.brand em { color: var(--accent); font-style: italic; font-weight: 500; }
.client-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 6px 12px 6px 10px;
  background: var(--surface); border-radius: 100px;
  border: 0.5px solid var(--rule); cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--ink-1);
  transition: all 0.15s;
}
.client-chip:hover { background: var(--surface-soft); }
.client-chip:active { transform: scale(0.97); }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.client-chip svg { width: 12px; height: 12px; color: var(--ink-4); }
.spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border: none; background: transparent;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: all 0.15s;
}
.icon-btn:hover { background: var(--surface-soft); color: var(--ink-1); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }

/* ── SIDEBAR (desktop) ── */
.sidebar { display: none; }

/* ── MAIN ── */
.main {
  grid-area: main; position: relative;
  overflow: hidden;
}
.view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: none; }
.view.is-active { display: block; }
.view.is-iframe { overflow: hidden; position: absolute; inset: 0; }
.embed {
  width: 100%; height: 100%;
  border: none; display: block;
  background: var(--bg);
  min-width: 0; max-width: 100%;
  overflow: hidden;
}

.iframe-open {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 5px 10px 5px 12px;
  font-size: 11px; font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow-1); text-decoration: none;
  font-family: var(--sans);
  line-height: 1.4;
  width: auto !important;
  height: auto !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.view.is-iframe:hover .iframe-open { opacity: 0.9; pointer-events: auto; }
.iframe-open:hover { opacity: 1 !important; box-shadow: var(--shadow-2); }
.iframe-open:active { transform: scale(0.96); }
.iframe-open:focus { opacity: 1; pointer-events: auto; }
.iframe-open svg { width: 10px; height: 10px; stroke-width: 2; flex-shrink: 0; }

/* ── BOTTOM NAV (mobile) ── */
.bottomnav {
  grid-area: bottomnav;
  padding-bottom: var(--safe-bot);
  background: rgba(248,243,237,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--rule);
  display: flex; z-index: 50;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: transparent; padding: 0;
  color: var(--ink-5); transition: color 0.15s;
}
.nav-btn.is-active { color: var(--accent); }
.nav-icon { width: 24px; height: 24px; stroke-width: 1.6; }
.nav-label { font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }

/* ───────────────────────────────────────────
   INICIO
─────────────────────────────────────────── */
.inicio {
  padding: 28px 20px 32px;
  max-width: 100%;
}
.hero {
  font-family: var(--serif); font-size: 32px;
  font-style: italic; color: var(--ink-1);
  line-height: 1.05; letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.hero em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 18px; letter-spacing: 0.01em;
  text-transform: capitalize;
}
.label-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 12px;
}
.focus-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 22px; margin-bottom: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer; transition: all 0.2s;
}
.focus-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.focus-card:active { transform: scale(0.99); }
.focus-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.focus-title {
  font-family: var(--serif); font-size: 24px;
  font-style: italic; line-height: 1.2;
  color: var(--ink-1); margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.focus-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-4); }
.focus-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.focus-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.connect-banner {
  background: var(--accent-soft); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
}
.connect-banner:hover { border-color: rgba(198,93,63,0.25); }
.connect-banner .b-icon { font-size: 18px; }
.connect-banner .b-text { flex: 1; }
.connect-banner .b-title { font-size: 13px; font-weight: 600; color: var(--ink-1); }
.connect-banner .b-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.connect-banner svg { width: 14px; height: 14px; color: var(--accent); }

/* ── PIPELINE (Inicio) ── */
.pipeline-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pipeline-head .label-eyebrow { margin-bottom: 0; }
.pipeline-refresh { width: 32px; height: 32px; }
.pipeline-refresh svg { width: 14px; height: 14px; }
.pipeline-refresh.spinning svg { animation: spin 0.9s linear infinite; }

.pipeline {
  margin-bottom: 20px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 2px;
}
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}
.piece-date-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 2px;
}
.piece-date-label.today { color: var(--accent); }
/* keep legacy class for backward compat */
.pipeline-day {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-4); margin: 16px 0 8px;
}
.pipeline-day.today { color: var(--accent); }
.pipeline-day:first-child { margin-top: 0; }

.piece-card {
  background: var(--surface); border-radius: var(--r);
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.piece-card:hover { border-color: var(--rule); box-shadow: var(--shadow-2); }
.piece-card.today { border-left: 3px solid var(--accent); }

.piece-title {
  font-family: var(--serif); font-size: 15px;
  font-style: italic; color: var(--ink-1); line-height: 1.3;
  letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-4);
}
.piece-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 100px;
  background: var(--surface-soft);
}
.piece-meta-chip.format { color: var(--ink-2); font-weight: 500; }
.piece-meta-chip.status-drafting, .piece-meta-chip.status-en-producción { background: rgba(11,110,153,0.10); color: #0B6E99; }
.piece-meta-chip.status-editing, .piece-meta-chip.status-en-revisión { background: rgba(11,110,153,0.10); color: #0B6E99; }
.piece-meta-chip.status-good-to-go, .piece-meta-chip.status-programado { background: rgba(217,115,13,0.12); color: #D9730D; }
.piece-meta-chip.status-scheduled { background: rgba(217,115,13,0.12); color: #D9730D; }
.piece-meta-chip.status-publicado, .piece-meta-chip.status-published { background: rgba(15,123,108,0.12); color: #0F7B6C; }

.piece-actions { display: flex; gap: 6px; }
.piece-btn {
  flex: 1; padding: 8px 10px;
  border: none; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  text-decoration: none;
  transition: all 0.15s;
}
.piece-btn.primary { background: var(--ink-1); color: var(--surface-soft); }
.piece-btn.primary:hover { transform: translateY(-1px); }
.piece-btn.primary:active { transform: scale(0.97); }
.piece-btn.secondary {
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--rule);
}
.piece-btn.secondary:hover { background: var(--surface-soft); }
.piece-btn svg { width: 11px; height: 11px; stroke-width: 2; }

.pipeline-empty {
  background: var(--surface); border-radius: var(--r);
  padding: 28px 20px; text-align: center;
  border: 1px dashed var(--rule-strong);
}
.pipeline-empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.pipeline-empty-text { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-3); margin-bottom: 4px; }
.pipeline-empty-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 14px; }
.pipeline-empty .canva-btn { background: var(--ink-1); }

.pipeline-error {
  background: rgba(192,57,43,0.05); border-radius: var(--r);
  padding: 16px 18px; border-left: 3px solid #C0392B;
  color: var(--ink-2); font-size: 13px;
}

/* Quick row (replaces big actions grid) */
.quick-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.quick-btn {
  flex: 1; min-width: 140px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.quick-btn:hover { background: var(--surface-soft); border-color: var(--rule-strong); }
.quick-btn.primary { background: var(--ink-1); color: var(--surface-soft); border-color: var(--ink-1); }
.quick-btn.primary:hover { background: var(--ink-2); }
.quick-btn svg { width: 14px; height: 14px; stroke-width: 1.8; flex-shrink: 0; }

.actions-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.action {
  background: var(--surface); border: none;
  border-radius: var(--r-lg); padding: 24px 20px 22px;
  text-align: left; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 132px; transition: all 0.2s;
}
.action:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.action:active { transform: scale(0.98); }
.action.primary { background: var(--ink-1); color: var(--surface-soft); }
.action.primary .action-sub { color: rgba(244,236,222,0.6); }
.action-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.action.primary .action-icon { background: rgba(198,93,63,0.25); color: white; }
.action-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.action-title { font-size: 16px; font-weight: 600; color: inherit; letter-spacing: -0.01em; }
.action-sub { font-size: 12px; color: var(--ink-4); line-height: 1.3; }

/* ───────────────────────────────────────────
   CREAR — mobile (single column)
─────────────────────────────────────────── */
.crear-wrap { height: 100%; }
.crear-grid {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}
.crear-input {
  padding: 28px 20px 40px;
  overflow-y: auto;
}
.crear-output {
  display: none;
}

.crear-title {
  font-family: var(--serif); font-size: 32px;
  font-style: italic; color: var(--ink-1);
  letter-spacing: -0.015em; line-height: 1.1;
  margin-bottom: 4px;
}
.crear-for { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.crear-for strong { color: var(--accent); font-weight: 600; }
.step-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 10px;
}
.types-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.type-chip, .aspect-chip {
  padding: 8px 14px; border: 1px solid var(--rule);
  border-radius: 100px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all 0.15s; cursor: pointer; font-family: inherit;
}
.type-chip:hover, .aspect-chip:hover { border-color: var(--rule-strong); }
.type-chip.is-active, .aspect-chip.is-active { background: var(--ink-1); color: white; border-color: var(--ink-1); }
.type-chip:active, .aspect-chip:active { transform: scale(0.96); }

.brief-area {
  width: 100%; min-height: 140px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface); padding: 16px 18px;
  font-size: 15px; color: var(--ink-1); line-height: 1.5;
  outline: none; resize: vertical; -webkit-appearance: none;
  transition: all 0.15s; margin-bottom: 8px;
  font-family: inherit;
}
.brief-area:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(74,57,41,0.06); }
.brief-area::placeholder { color: var(--ink-5); }
.brief-hint { font-size: 11px; color: var(--ink-5); margin-bottom: 22px; padding-left: 4px; }

.toggles-row { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tog {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rule); border-radius: 100px;
  background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  transition: all 0.15s;
}
.tog.is-on {
  background: var(--accent-soft); color: var(--accent);
  border-color: rgba(198,93,63,0.3);
}
.tog svg { width: 12px; height: 12px; }

.gen-btn {
  width: 100%; padding: 16px;
  background: var(--ink-1); color: var(--surface-soft);
  border: none; border-radius: var(--r);
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  transition: all 0.15s; box-shadow: var(--shadow-2);
}
.gen-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.gen-btn:active { transform: scale(0.98); }
.gen-btn:disabled { opacity: 0.6; cursor: wait; }
.gen-btn .arrow { display: inline-block; margin-left: 6px; }

/* ───────────────────────────────────────────
   OUTPUT SECTIONS
─────────────────────────────────────────── */
.output-empty {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--ink-4); padding: 40px;
  text-align: center;
}
.output-empty-icon { font-size: 48px; opacity: 0.4; }
.output-empty-text { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-3); max-width: 320px; }

.gen-section { margin-bottom: 24px; }
.gen-section-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.gen-section-label .badge {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 6px; border-radius: 4px;
  font-size: 9px; letter-spacing: 0.06em;
}
.copy-card {
  background: var(--surface); border-radius: var(--r);
  padding: 18px 20px;
  font-size: 15px; color: var(--ink-1); line-height: 1.6;
  white-space: pre-wrap; margin-bottom: 10px;
  box-shadow: var(--shadow-1); min-height: 80px;
}
.copy-card.loading {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-style: italic; font-family: var(--serif);
  gap: 8px; min-height: 100px;
}
.copy-card.error { border-left: 3px solid #C0392B; color: #C0392B; }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.image-card {
  background: var(--surface-soft); border-radius: var(--r);
  overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--shadow-1);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.image-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-card.loading { background: var(--surface-soft); color: var(--ink-4); font-style: italic; font-family: var(--serif); gap: 8px; }
.image-card.error { background: rgba(192,57,43,0.06); color: #C0392B; padding: 20px; text-align: center; font-size: 13px; }

.video-card {
  background: var(--surface-soft); border-radius: var(--r);
  overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--shadow-1);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  position: relative;
  max-height: 70vh;
}
.video-card[data-aspect="9:16"] { aspect-ratio: 9/16; max-width: 360px; margin-left: auto; margin-right: auto; }
.video-card[data-aspect="1:1"] { aspect-ratio: 1/1; max-width: 480px; margin-left: auto; margin-right: auto; }
.video-card[data-aspect="4:5"] { aspect-ratio: 4/5; max-width: 480px; margin-left: auto; margin-right: auto; }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card.loading { color: var(--ink-4); font-style: italic; font-family: var(--serif); gap: 12px; padding: 20px; text-align: center; }
.video-card.loading .v-progress { font-size: 12px; color: var(--ink-3); font-family: var(--sans); font-style: normal; }
.video-card.error { background: rgba(192,57,43,0.06); color: #C0392B; padding: 20px; text-align: center; font-size: 13px; }

.btn-row { display: flex; gap: 8px; }
.btn-secondary {
  flex: 1; padding: 12px;
  background: var(--surface); color: var(--ink-1);
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s; text-align: center;
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; gap: 5px;
}
.btn-secondary:hover { border-color: var(--rule-strong); background: var(--surface-soft); }
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary svg { width: 12px; height: 12px; }

.visual-tools { display: grid; grid-template-columns: 1fr; gap: 8px; }
.visual-tool {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface);
  border-radius: var(--r); cursor: pointer;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1);
  transition: all 0.15s; border: none;
  text-align: left; width: 100%; font-family: inherit;
}
.visual-tool:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.visual-tool:active { transform: scale(0.99); }
.vt-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; background: var(--surface-soft);
}
.vt-info { flex: 1; min-width: 0; }
.vt-name { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.vt-desc { font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.vt-arrow { width: 14px; height: 14px; color: var(--ink-5); }

/* ───────────────────────────────────────────
   SHEETS / DRAWERS
─────────────────────────────────────────── */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30,20,10,0.45);
  display: none; align-items: flex-end;
  animation: fadeIn 0.2s;
}
.sheet-wrap.is-open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); } to { transform: translateY(0); } }
@keyframes slideRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.sheet {
  width: 100%; background: var(--bg);
  border-radius: 24px 24px 0 0;
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: slideUp 0.25s ease-out;
  padding-bottom: calc(20px + var(--safe-bot));
}
.sheet-pull { width: 38px; height: 5px; background: var(--surface-2); border-radius: 3px; margin: 10px auto 4px; }
.sheet-head { padding: 18px 22px 14px; border-bottom: 0.5px solid var(--rule); }
.sheet-title {
  font-family: var(--serif); font-size: 26px;
  font-style: italic; color: var(--ink-1);
  letter-spacing: -0.015em; line-height: 1.1;
}
.sheet-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.sheet-body { padding: 18px 22px 22px; }

.client-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--surface);
  border-radius: var(--r); margin-bottom: 10px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.15s;
}
.client-option:hover { border-color: var(--rule-strong); }
.client-option.is-active { border-color: var(--accent); }
.client-option:active { transform: scale(0.99); }
.client-swatch {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--serif); font-size: 14px;
  font-style: italic; font-weight: 500; flex-shrink: 0;
}
.client-info { flex: 1; min-width: 0; }
.client-name { font-size: 15px; font-weight: 600; color: var(--ink-1); }
.client-meta { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.client-check { width: 22px; height: 22px; color: var(--accent); opacity: 0; }
.client-option.is-active .client-check { opacity: 1; }

.settings-section { margin-bottom: 24px; }
.settings-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px;
}
.settings-input {
  width: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); font-size: 14px;
  color: var(--ink-1); outline: none;
  -webkit-appearance: none; transition: all 0.15s;
}
.settings-input:focus { border-color: var(--ink-2); }
.settings-help { font-size: 11px; color: var(--ink-4); margin-top: 6px; padding-left: 4px; line-height: 1.4; }
.settings-help a { color: var(--accent); text-decoration: none; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--surface);
  border-radius: var(--r-sm); margin-bottom: 8px;
}
.toggle-text { font-size: 14px; color: var(--ink-1); }
.toggle-status { font-size: 12px; font-weight: 500; }
.toggle-status.ok { color: #2A8C5C; }
.toggle-status.off { color: var(--ink-5); }
.save-btn {
  width: 100%; padding: 14px;
  background: var(--ink-1); color: var(--surface-soft);
  border: none; border-radius: var(--r);
  font-size: 15px; font-weight: 600; margin-top: 12px;
}
.save-btn:active { transform: scale(0.99); }

/* Style picker (Open Design + RCV) */
.style-picker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.style-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: 100px;
  background: var(--surface); font-size: 12px;
  font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.style-chip:hover { border-color: var(--rule-strong); }
.style-chip.is-active { background: var(--ink-1); color: white; border-color: var(--ink-1); }
.style-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.style-current {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--accent); border-radius: 100px;
  background: var(--accent-soft);
  font-size: 12px; font-weight: 500; color: var(--ink-1);
}
.style-current .style-dot { background: var(--accent); }
.style-clear {
  background: var(--ink-3); color: white;
  border: none; width: 20px; height: 20px;
  border-radius: 50%; font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0;
}

/* Style browser sheet */
.style-cats { display: flex; flex-direction: column; gap: 20px; }
.style-cat-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px;
}
.style-options { display: grid; gap: 8px; }
.style-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border: 1.5px solid transparent; border-radius: var(--r);
  cursor: pointer; transition: all 0.15s; text-align: left;
  font-family: inherit; width: 100%;
}
.style-option:hover { border-color: var(--rule-strong); }
.style-option.is-active { border-color: var(--accent); background: var(--accent-soft); }
.style-option-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; background: var(--ink-4); }
.style-option-info { flex: 1; min-width: 0; }
.style-option-name { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.style-option-desc { font-size: 11px; color: var(--ink-4); margin-top: 2px; line-height: 1.4; }

/* ── INSPIRACIÓN ── */
.insp-wrap { padding: 28px 20px 32px; max-width: 100%; }
.insp-head { margin-bottom: 22px; position: sticky; top: 0; background: var(--bg); padding-top: 4px; padding-bottom: 14px; z-index: 5; }
.insp-title {
  font-family: var(--serif); font-size: 38px;
  font-style: italic; color: var(--ink-1);
  letter-spacing: -0.015em; line-height: 1.1;
  margin-bottom: 2px;
}
.insp-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 14px; }

.insp-subnav {
  display: flex; gap: 4px; margin-bottom: 14px;
  border-bottom: 0.5px solid var(--rule); padding-bottom: 0;
  overflow-x: auto; scrollbar-width: none;
}
.insp-subnav::-webkit-scrollbar { display: none; }
.insp-subnav-btn {
  flex-shrink: 0; padding: 8px 14px;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-4); cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all 0.15s;
  margin-bottom: -1px;
}
.insp-subnav-btn:hover { color: var(--ink-2); }
.insp-subnav-btn.is-active {
  color: var(--ink-1); font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Prompt cards */
.insp-prompt-card {
  background: var(--surface); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow-1);
  border: 1px solid transparent; transition: all 0.15s;
}
.insp-prompt-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--rule); }
.insp-prompt-name { font-size: 14px; font-weight: 600; color: var(--ink-1); margin-bottom: 6px; }
.insp-prompt-preview {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 12px;
}
.insp-prompt-actions { display: flex; gap: 6px; }
.insp-prompt-actions button {
  flex: 1; padding: 8px 10px;
  background: var(--surface-soft); border: 1px solid var(--rule);
  border-radius: var(--r-sm); font-size: 11px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.insp-prompt-actions button:hover { border-color: var(--rule-strong); }
.insp-prompt-actions button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.insp-prompt-actions svg { width: 12px; height: 12px; }

/* Skill cards */
.insp-skill-card {
  background: var(--surface); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--shadow-1);
  border: 1px solid transparent; transition: all 0.15s;
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; text-align: left; font-family: inherit; width: 100%;
}
.insp-skill-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--rule); }
.insp-skill-emoji {
  font-size: 28px; line-height: 1; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-soft); border-radius: 12px;
}
.insp-skill-info { flex: 1; min-width: 0; }
.insp-skill-name { font-size: 14px; font-weight: 600; color: var(--ink-1); margin-bottom: 2px; }
.insp-skill-meta {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-5); margin-bottom: 6px;
}
.insp-skill-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.insp-controls { display: flex; flex-direction: column; gap: 10px; }
.insp-search {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--rule); border-radius: 100px;
  background: var(--surface); font-size: 14px;
  color: var(--ink-1); outline: none;
  -webkit-appearance: none; transition: border-color 0.15s;
}
.insp-search:focus { border-color: var(--ink-2); }
.insp-cats {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
}
.insp-cats::-webkit-scrollbar { display: none; }
.insp-cat-chip {
  flex-shrink: 0; padding: 6px 12px;
  border: 1px solid var(--rule); border-radius: 100px;
  background: var(--surface); font-size: 12px;
  font-weight: 500; color: var(--ink-3); cursor: pointer;
  white-space: nowrap; transition: all 0.15s;
}
.insp-cat-chip:hover { border-color: var(--rule-strong); }
.insp-cat-chip.is-active { background: var(--ink-1); color: white; border-color: var(--ink-1); }

.insp-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
.insp-card {
  background: var(--surface); border-radius: var(--r);
  padding: 16px 18px; cursor: pointer;
  box-shadow: var(--shadow-1);
  border: 1px solid transparent;
  transition: all 0.15s;
  text-align: left; font-family: inherit;
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.insp-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--rule); }
.insp-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.insp-card-name {
  font-family: var(--serif); font-size: 18px;
  font-style: italic; color: var(--ink-1); line-height: 1.2;
  letter-spacing: -0.005em;
}
.insp-card-cat {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); white-space: nowrap;
  background: var(--surface-soft); padding: 4px 8px;
  border-radius: 4px;
}
.insp-card-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.insp-card-colors { display: flex; gap: 4px; flex-wrap: wrap; }
.insp-color-swatch {
  width: 22px; height: 22px; border-radius: 5px;
  border: 1px solid var(--rule);
}
.insp-loading {
  text-align: center; padding: 48px 20px;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-4); font-size: 16px;
}
.insp-empty {
  text-align: center; padding: 48px 20px;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-4); font-size: 16px;
}

/* Detail sheet */
.detail-colors {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}
.detail-color {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface);
  border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--rule);
  transition: all 0.15s;
}
.detail-color:hover { border-color: var(--rule-strong); }
.detail-color-chip { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--rule); }
.detail-color-name { font-size: 12px; font-weight: 600; color: var(--ink-1); }
.detail-color-hex { font-size: 10px; color: var(--ink-4); font-family: 'Courier New', monospace; }
.detail-fonts {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.detail-font {
  padding: 6px 12px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
}

/* Custom styles */
.style-option-custom { border-left: 3px solid var(--accent); padding-left: 13px !important; }
.style-option-actions {
  display: flex; gap: 4px;
  margin-left: auto;
}
.style-icon-btn {
  width: 28px; height: 28px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); padding: 0;
}
.style-icon-btn:hover { color: var(--ink-1); border-color: var(--rule-strong); }
.style-icon-btn svg { width: 12px; height: 12px; }
.style-save-card {
  background: var(--accent-soft); border-radius: var(--r);
  padding: 16px; margin-bottom: 10px;
  border: 1px dashed rgba(198,93,63,0.4);
}
.style-save-card-title { font-size: 13px; font-weight: 600; color: var(--ink-1); margin-bottom: 4px; }
.style-save-card-sub { font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.style-save-form { display: flex; flex-direction: column; gap: 8px; }
.style-save-form input, .style-save-form textarea, .style-save-form select {
  width: 100%; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); font-size: 13px;
  color: var(--ink-1); outline: none; font-family: inherit;
  -webkit-appearance: none;
}
.style-save-form textarea { resize: vertical; min-height: 80px; }
.style-save-actions { display: flex; gap: 8px; }
.style-save-actions button {
  flex: 1; padding: 10px;
  border: none; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.style-save-actions .save { background: var(--accent); color: white; }
.style-save-actions .cancel { background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule); }

/* ── WELCOME SCREEN ── */
.welcome-wrap {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--safe-top));
  padding-bottom: calc(24px + var(--safe-bot));
}
.welcome-card {
  max-width: 420px; width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-3);
  text-align: center;
}
.welcome-logo { width: 96px; height: 96px; margin: 0 auto 16px; display: block; }
.welcome-title {
  font-family: var(--serif); font-size: 32px;
  color: var(--ink-1); letter-spacing: -0.015em;
  line-height: 1.1; margin-bottom: 10px;
  font-weight: 500;
}
.welcome-title em { color: var(--accent); font-style: italic; }
.welcome-sub {
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
  margin-bottom: 24px;
}
.welcome-input {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--r-sm); font-size: 15px;
  color: var(--ink-1); outline: none;
  -webkit-appearance: none; margin-bottom: 12px;
  font-family: inherit;
}
.welcome-input:focus { border-color: var(--ink-2); }
.welcome-btn {
  width: 100%; padding: 14px;
  background: var(--ink-1); color: var(--surface-soft);
  border: none; border-radius: var(--r);
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.welcome-btn:hover { background: var(--ink-2); }
.welcome-btn:disabled { opacity: 0.7; cursor: wait; }
.welcome-help { font-size: 11px; color: var(--ink-4); margin-top: 12px; }
.welcome-skip {
  margin-top: 18px; background: none; border: none;
  color: var(--ink-4); font-size: 12px; cursor: pointer;
  font-family: inherit; text-decoration: underline;
}
.welcome-skip:hover { color: var(--ink-2); }

/* Canva integration */
.canva-empty {
  background: var(--surface);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
}
.canva-empty-text { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.canva-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #00C4CC; color: white;
  border: none; border-radius: var(--r-sm);
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: all 0.15s;
}
.canva-btn:hover { background: #00B0B6; transform: translateY(-1px); }
.canva-btn:active { transform: scale(0.97); }
.canva-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.canva-btn.full { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
.canva-btn .spinner { border-color: rgba(255,255,255,0.3); border-top-color: white; }
.canva-templates {
  display: grid; gap: 8px; margin-bottom: 12px;
  max-height: 280px; overflow-y: auto;
}
.canva-template {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm); cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.canva-template:hover { border-color: var(--rule-strong); }
.canva-template.is-active { border-color: #00C4CC; background: rgba(0,196,204,0.04); }
.canva-template-thumb {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--surface-soft); flex-shrink: 0;
  object-fit: cover;
}
.canva-template-info { flex: 1; min-width: 0; }
.canva-template-title { font-size: 13px; font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canva-template-meta { font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.canva-status-card {
  background: var(--surface); border-radius: var(--r);
  padding: 16px; margin-top: 10px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-1);
}
.canva-status-text { flex: 1; font-size: 13px; color: var(--ink-2); }
.canva-result-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink-1); color: var(--surface-soft);
  padding: 8px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.canva-result-link:hover { transform: translateY(-1px); }
.canva-result-link svg { width: 12px; height: 12px; }

/* Audit result tabs */
.audit-tab {
  flex-shrink: 0; padding: 8px 14px;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-4); cursor: pointer; font-family: inherit;
  white-space: nowrap;
  margin-bottom: -1px;
}
.audit-tab:hover { color: var(--ink-2); }
.audit-tab.is-active {
  color: var(--ink-1); font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Skip-to-content */
.skip-link {
  position: absolute; top: 0; left: 0;
  padding: 10px 16px;
  background: var(--ink-1); color: var(--surface-soft);
  text-decoration: none; font-size: 13px; font-weight: 600;
  z-index: 9999; border-radius: 0 0 8px 0;
  transform: translateY(-100%);
  transition: transform 0.15s;
}
.skip-link:focus { transform: translateY(0); }

/* Visible focus ring on keyboard nav */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skeleton loaders */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-soft) 25%, var(--surface-2) 50%, var(--surface-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r);
}
.skel-line { height: 12px; border-radius: 6px; }
.skel-line.lg { height: 22px; }
.skel-line.md { height: 16px; }
.skel-card {
  background: var(--surface); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow-1);
  margin-bottom: 8px;
}
.skel-card .skeleton { margin-bottom: 8px; }
.skel-card .skeleton:last-child { margin-bottom: 0; }

.toast {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bot) + 20px);
  left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink-1); color: var(--surface-soft);
  padding: 12px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-3);
  opacity: 0; transition: all 0.3s;
  pointer-events: none; z-index: 200;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ───────────────────────────────────────────
   TABLET — 700px+
─────────────────────────────────────────── */
/* Tablet — compact sidebar (icons only) for narrow windows on desktop */
@media (min-width: 768px) and (max-width: 1023px) {
  .shell {
    grid-template-columns: var(--sidebar-collapsed-w) 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "sidebar main";
  }
  .topbar, .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column;
    grid-area: sidebar;
    background: var(--bg-2);
    border-right: 0.5px solid var(--rule);
    padding: 24px 8px 14px;
    overflow-y: auto;
    position: relative;
    min-width: 0;
  }
  .sidebar-brand { padding: 0; justify-content: center; }
  .sidebar-brand span { display: none; }
  .sidebar-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
  .sidebar-section-label,
  .sidebar-client-info,
  .sidebar-client svg:not(.sidebar-client-dot),
  .sidebar-nav-btn span:not(.sidebar-client-dot),
  .sidebar-settings-btn span { display: none; }
  .sidebar-nav {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 8px;
  }
  .sidebar-nav-btn {
    display: flex; align-items: center;
    padding: 12px 0;
    border: none; background: transparent;
    border-radius: 8px;
    font-size: 0; font-weight: 500;
    color: var(--ink-3); cursor: pointer;
    justify-content: center; transition: all 0.12s;
    width: 100%; gap: 0;
  }
  .sidebar-nav-btn:hover { background: var(--surface); color: var(--ink-1); }
  .sidebar-nav-btn.is-active {
    background: var(--surface);
    color: var(--ink-1);
    font-weight: 600;
    box-shadow: var(--shadow-1);
  }
  .sidebar-nav-btn.is-active .sidebar-nav-icon { color: var(--accent); }
  .sidebar-nav-icon { width: 18px; height: 18px; stroke-width: 1.8; color: var(--ink-4); flex-shrink: 0; }
  .sidebar-client {
    padding: 12px 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center;
    justify-content: center;
    transition: all 0.15s;
    border: none;
  }
  .sidebar-client:hover { background: var(--surface); }
  .sidebar-client-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 0.5px solid var(--rule);
  }
  .sidebar-settings-btn {
    width: 100%;
    display: flex; align-items: center;
    padding: 10px 0;
    border: none; background: transparent;
    border-radius: 8px;
    color: var(--ink-3); cursor: pointer;
    justify-content: center; transition: all 0.12s;
  }
  .sidebar-settings-btn:hover { background: var(--surface); color: var(--ink-1); }
  .sidebar-settings-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
  .sidebar-collapse-btn { display: none; }
}

@media (min-width: 700px) and (max-width: 767px) {
  body { font-size: 16px; }
  .topbar { padding-left: 32px; padding-right: 24px; }
  .brand { font-size: 26px; }
  .inicio { max-width: 760px; margin: 0 auto; padding: 40px 32px; }
  .crear-input { max-width: 760px; margin: 0 auto; padding: 40px 32px; }
  .hero { font-size: 52px; }
  .crear-title { font-size: 42px; }
  .actions-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .action { min-height: 160px; padding: 28px 22px 26px; }
  .focus-card { padding: 28px; }
  .focus-title { font-size: 28px; }
  .visual-tools { grid-template-columns: 1fr 1fr; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet {
    max-width: 600px; margin: 0 auto;
    border-radius: 24px; max-height: 84vh;
  }
  .copy-card { font-size: 16px; padding: 22px 26px; }
}

/* ───────────────────────────────────────────
   DESKTOP — 1024px+
   SIDEBAR + MAIN, NO BOTTOM NAV
─────────────────────────────────────────── */
@media (min-width: 1024px) {
  body { font-size: 15px; }

  .shell {
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "sidebar main";
  }

  .topbar { display: none; }
  .bottomnav { display: none; }

  /* SIDEBAR */
  .sidebar {
    grid-area: sidebar;
    background: var(--bg-2);
    border-right: 0.5px solid var(--rule);
    display: flex; flex-direction: column;
    padding: 24px 14px 14px;
    overflow-y: auto;
    position: relative;
    transition: width 0.2s ease;
  }
  .sidebar-collapse-btn {
    position: absolute; top: 28px; right: -14px;
    width: 28px; height: 28px;
    background: var(--surface); border: 1px solid var(--rule-strong);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-2); z-index: 20;
    box-shadow: 0 2px 6px rgba(42,31,20,0.12);
    transition: all 0.15s;
  }
  .sidebar-collapse-btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: scale(1.08); }
  .sidebar-collapse-btn svg { width: 14px; height: 14px; stroke-width: 2.4; transition: transform 0.2s; }

  /* Collapsed state */
  .shell.is-collapsed { grid-template-columns: var(--sidebar-collapsed-w) 1fr; }
  .shell.is-collapsed .sidebar { padding: 24px 8px 14px; }
  .shell.is-collapsed .sidebar-brand,
  .shell.is-collapsed .sidebar-section-label,
  .shell.is-collapsed .sidebar-client-info,
  .shell.is-collapsed .sidebar-client svg:not(.sidebar-client-dot),
  .shell.is-collapsed .sidebar-nav-btn span:not(.sidebar-client-dot),
  .shell.is-collapsed .sidebar-settings-btn span { display: none; }
  .shell.is-collapsed .sidebar-nav-btn,
  .shell.is-collapsed .sidebar-settings-btn { justify-content: center; padding: 12px 0; }
  .shell.is-collapsed .sidebar-client { justify-content: center; padding: 10px 0; }
  .shell.is-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
  .shell.is-collapsed .sidebar-nav-btn { font-size: 0; }
  .shell.is-collapsed .sidebar-nav-icon { margin: 0; }
  .sidebar-brand {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink-1);
    letter-spacing: -0.015em;
    line-height: 1;
    padding: 0 6px 22px;
    font-weight: 500;
    display: flex; align-items: center; gap: 10px;
  }
  .sidebar-brand em { color: var(--accent); font-style: italic; font-weight: 500; }
  .sidebar-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
  .shell.is-collapsed .sidebar-brand { padding: 0; justify-content: center; }
  .shell.is-collapsed .sidebar-brand span { display: none; }
  .shell.is-collapsed .sidebar-logo { width: 40px; height: 40px; }

  .sidebar-section-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-5);
    padding: 0 10px 8px;
    margin-top: 8px;
  }

  .sidebar-client {
    margin-bottom: 4px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 12px;
    border: 0.5px solid var(--rule);
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.15s;
  }
  .sidebar-client:hover { background: var(--surface-soft); border-color: var(--rule-strong); }
  .sidebar-client-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  .sidebar-client-info { flex: 1; min-width: 0; }
  .sidebar-client-name { font-size: 13px; font-weight: 600; color: var(--ink-1); line-height: 1.2; }
  .sidebar-client-meta { font-size: 10px; color: var(--ink-4); margin-top: 1px; }
  .sidebar-client svg { width: 14px; height: 14px; color: var(--ink-4); flex-shrink: 0; }

  .sidebar-nav {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 8px;
  }
  .sidebar-nav-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border: none; background: transparent;
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--ink-3); cursor: pointer;
    text-align: left; transition: all 0.12s;
    min-width: 0; overflow: hidden;
  }
  .sidebar-nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .sidebar { min-width: 0; }
  .sidebar-brand, .sidebar-client-name, .sidebar-client-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-nav-btn:hover { background: var(--surface); color: var(--ink-1); }
  .sidebar-nav-btn.is-active {
    background: var(--surface);
    color: var(--ink-1);
    font-weight: 600;
    box-shadow: var(--shadow-1);
  }
  .sidebar-nav-btn.is-active .sidebar-nav-icon { color: var(--accent); }
  .sidebar-nav-icon { width: 18px; height: 18px; stroke-width: 1.8; color: var(--ink-4); flex-shrink: 0; }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 0.5px solid var(--rule);
  }
  .sidebar-settings-btn {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border: none; background: transparent;
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--ink-3); cursor: pointer;
    text-align: left; transition: all 0.12s;
  }
  .sidebar-settings-btn:hover { background: var(--surface); color: var(--ink-1); }
  .sidebar-settings-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }

  /* MAIN — desktop */
  .inicio {
    max-width: none;
    margin: 0;
    padding: 40px clamp(40px, 4vw, 72px) 48px;
  }
  /* Compact hero — leaves room for content */
  .hero {
    font-size: clamp(38px, 3.4vw, 56px);
    line-height: 1.05;
  }
  .hero-sub { font-size: 13px; margin-bottom: 28px; }
  .label-eyebrow { margin-bottom: 10px; }

  /* Pipeline — each day has its own grid that fills available width */
  .pipeline-head { margin-bottom: 14px; }
  .pipeline { display: block; }
  .pipeline-day { margin: 22px 0 8px; }
  .pipeline-day:first-child { margin-top: 0; }
  .pipeline-day-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 14px;
    margin-bottom: 0;
  }
  .piece-card {
    margin-bottom: 0;
    padding: 22px 24px;
    min-width: 0;
  }
  .piece-title { font-size: 20px; }

  .quick-row { gap: 12px; margin-top: 28px; }
  .quick-btn { padding: 14px 20px; font-size: 14px; max-width: 280px; }

  .focus-card { padding: 28px; }
  .focus-title { font-size: 26px; }

  /* CREAR — desktop split pane (wider output) */
  .crear-wrap { height: 100%; }
  .crear-grid {
    grid-template-columns: 400px 1fr;
    height: 100%;
  }
  .crear-input {
    padding: 44px 36px 56px;
    border-right: 0.5px solid var(--rule);
    background: var(--bg);
    max-width: none;
    margin: 0;
  }
  .crear-title { font-size: 36px; }
  .crear-output {
    display: block;
    padding: 44px 56px 56px;
    background: var(--bg-2);
    overflow-y: auto;
  }
  /* Output uses two columns when both copy + image present */
  .crear-output #outputContent {
    max-width: 920px;
    margin: 0 auto;
  }
  .crear-output-header { margin-bottom: 28px; }
  .crear-output-title {
    font-family: var(--serif); font-size: 30px;
    font-style: italic; color: var(--ink-1);
    letter-spacing: -0.015em; line-height: 1.1;
    margin-bottom: 4px;
  }
  .crear-output-sub { font-size: 13px; color: var(--ink-3); }

  /* Bigger image + video previews */
  .image-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .video-card { max-width: 720px; margin-left: auto; margin-right: auto; }

  .visual-tools { grid-template-columns: 1fr 1fr; }
  .copy-card { font-size: 15px; padding: 24px 28px; max-width: 720px; }
  .copy-card { line-height: 1.65; }

  /* DRAWERS — right side on desktop */
  .sheet-wrap {
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(30,20,10,0.35);
  }
  .sheet {
    width: 420px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0.5px solid var(--rule);
    box-shadow: var(--shadow-3);
    animation: slideRight 0.22s ease-out;
    padding-bottom: 24px;
  }
  .sheet-pull { display: none; }

  /* Iframes on desktop */
  .iframe-open { top: 20px; right: 20px; }

  /* Crear on desktop hides type-row scroll */
  .types-row { gap: 8px; }
}

/* ───────────────────────────────────────────
   WIDE — 1440px+
─────────────────────────────────────────── */
@media (min-width: 1440px) {
  /* Cards más amplias en pantallas grandes */
  .pipeline-day-row { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
  .quick-row .quick-btn { font-size: 15px; padding: 16px 24px; }
  .crear-grid { grid-template-columns: 440px 1fr; }
  .crear-input { padding: 56px 44px 64px; }
  .crear-output { padding: 56px 72px 64px; }
  .crear-output #outputContent { max-width: 1100px; }
  .image-card { max-width: 680px; }
  .video-card { max-width: 880px; }
  .copy-card { max-width: 880px; }
}

@media (min-width: 1800px) {
  .crear-output #outputContent { max-width: 1280px; }
  .image-card { max-width: 760px; }
  .video-card { max-width: 1000px; }
  .copy-card { max-width: 960px; }
}

/* ── Clientes: Pipeline chips, Conversión, Métricas, Herramientas ── */
.cli-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex-wrap: wrap; }
.cli-chips::-webkit-scrollbar { display: none; }
.cli-chip {
  flex-shrink: 0; padding: 6px 12px;
  border: 1px solid var(--rule); border-radius: 100px;
  background: var(--surface); font-size: 12px; font-weight: 500;
  color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.cli-chip:hover { border-color: var(--rule-strong); }
.cli-chip.is-active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.cli-chip .cli-count { opacity: 0.6; margin-left: 5px; font-variant-numeric: tabular-nums; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi-card {
  background: var(--surface); border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--shadow-1); border: 1px solid var(--rule);
}
.kpi-card .kpi-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.kpi-card .kpi-value { font-family: var(--serif); font-size: 34px; color: var(--ink-1); line-height: 1.05; margin: 6px 0 2px; }
.kpi-card .kpi-sub { font-size: 11px; color: var(--ink-3); }

.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.chart-box { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-1); border: 1px solid var(--rule); }
.chart-box h4 { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-1); margin: 0 0 12px; font-weight: normal; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-label { flex: 0 0 130px; font-size: 11px; color: var(--ink-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 18px; background: var(--surface-soft); border-radius: 5px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 5px; min-width: 2px; transition: width 0.4s; }
.bar-num { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 26px; }
.chart-empty { font-size: 12px; color: var(--ink-4); font-style: italic; padding: 8px 0; }

.conv-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 8px; flex-wrap: wrap;
}
.conv-row-name { font-weight: 600; color: var(--ink-1); font-size: 14px; }
.conv-row-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.conv-row-actions { display: flex; gap: 8px; }
.conv-row-actions a { font-size: 12px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.conv-row-actions a:hover { text-decoration: underline; }
.cli-section-title { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-1); margin: 24px 0 4px; }
.cli-section-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; }
.tool-card.primary { border-color: var(--accent); border-width: 1.5px; }
.tool-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); }
.tool-card h3 { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-1); margin: 0; font-weight: normal; }
.tool-card p { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0; }
.tool-card .tool-use { background: var(--surface-soft); border-radius: 6px; padding: 8px 10px; font-size: 11px; }
.tool-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.tool-flow { padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.tool-flow li { margin-bottom: 6px; }

/* ── Inicio ejecutivo (Hub) ── */
.exec-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.exec-kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-1); }
.exec-kpi .ek-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.exec-kpi .ek-value { font-family: var(--serif); font-size: 28px; color: var(--ink-1); line-height: 1.1; margin: 5px 0 2px; }
.exec-kpi .ek-sub { font-size: 11px; color: var(--ink-3); }
.exec-kpi.alert { border-color: #D9730D; }
.exec-kpi.alert .ek-value { color: #D9730D; }
.exec-kpi.good .ek-value { color: #0F7B6C; }
.exec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .exec-cols { grid-template-columns: 1fr; } }
.exec-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-1); }
.exec-card h4 { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-1); margin: 0 0 10px; font-weight: normal; display: flex; justify-content: space-between; align-items: baseline; }
.exec-card h4 .ec-count { font-size: 11px; font-style: normal; color: var(--ink-4); }
.exec-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.exec-row:last-child { border-bottom: none; }
.exec-row a { text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.exec-row .er-name { font-size: 13px; font-weight: 600; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exec-row .er-meta { font-size: 11px; color: var(--ink-3); }
.exec-row .er-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.er-tag.warn { background: #FBE3D0; color: #9A4D08; }
.er-tag.danger { background: #F6D5D3; color: #A8302A; }
.er-tag.ok { background: #D6EBDF; color: #1B6B43; }
.exec-empty { font-size: 12px; color: var(--ink-4); font-style: italic; padding: 6px 0; }

/* ── INSPIRACIÓN (nuevo tab RCV) ── */
.rcvinsp-wrap { padding: 28px 32px 48px; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.rcvinsp-section { display: flex; flex-direction: column; gap: 16px; }
.rcvinsp-section-head { display: flex; flex-direction: column; gap: 4px; }
.rcvinsp-section-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--ink-1); }
.rcvinsp-section-title svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.rcvinsp-section-sub { font-size: 12px; color: var(--ink-4); padding-left: 26px; }
.rcvinsp-search-row { display: flex; gap: 8px; max-width: 860px; }
.rcvinsp-input { flex: 1; padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink-1); font-family: inherit; outline: none; transition: border 0.15s; }
.rcvinsp-input:focus { border-color: var(--accent); }
.rcvinsp-btn-primary { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--accent); color: white; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; font-family: inherit; }
.rcvinsp-btn-primary:hover { opacity: 0.88; }
.rcvinsp-btn-primary svg { width: 14px; height: 14px; }
.rcvinsp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.rcvinsp-btn-secondary { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: transparent; color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.15s; font-family: inherit; flex-shrink: 0; }
.rcvinsp-btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); }
.rcvinsp-btn-secondary svg { width: 14px; height: 14px; }
.rcvinsp-questions-out { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rcvinsp-q-group { background: var(--surface); border-radius: 14px; overflow: hidden; border: 0.5px solid var(--rule); }
.rcvinsp-q-group-title { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.rcvinsp-q-group-title svg { width: 14px; height: 14px; color: var(--accent); }
.rcvinsp-q-list { display: flex; flex-direction: column; }
.rcvinsp-q-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 14px; color: var(--ink-2); border-top: 0.5px solid var(--rule); cursor: pointer; transition: background 0.12s; }
.rcvinsp-q-item:hover { background: var(--bg); color: var(--ink-1); }
.rcvinsp-q-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rcvinsp-q-copy { padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; font-size: 11px; font-weight: 500; background: transparent; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: all 0.12s; }
.rcvinsp-q-copy:hover { background: var(--accent); color: white; border-color: var(--accent); }
.rcvinsp-loading { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-4); padding: 20px 0; }

/* Reddit tendencias */
.rcvinsp-reddit-tabs { display: flex; gap: 6px; flex-wrap: wrap; max-width: 860px; }
.rcvinsp-rtab { padding: 6px 14px; border: 1px solid var(--rule-strong); border-radius: 100px; background: transparent; font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: all 0.12s; }
.rcvinsp-rtab:hover { border-color: var(--ink-3); color: var(--ink-1); }
.rcvinsp-rtab.is-active { background: var(--ink-1); color: white; border-color: var(--ink-1); }
.rcvinsp-reddit-out { display: flex; flex-direction: column; gap: 8px; min-height: 80px; max-width: 860px; }
.rcvinsp-reddit-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 12px; border: 0.5px solid var(--rule); transition: all 0.12s; text-decoration: none; }
.rcvinsp-reddit-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-1); }
.rcvinsp-reddit-votes { font-size: 11px; font-weight: 700; color: var(--accent); min-width: 40px; text-align: center; padding-top: 2px; }
.rcvinsp-reddit-body { flex: 1; min-width: 0; }
.rcvinsp-reddit-title { font-size: 14px; font-weight: 600; color: var(--ink-1); line-height: 1.4; margin-bottom: 4px; }
.rcvinsp-reddit-meta { font-size: 11px; color: var(--ink-4); }
.rcvinsp-reddit-arrow { color: var(--ink-5); flex-shrink: 0; margin-top: 2px; }
.rcvinsp-reddit-arrow svg { width: 14px; height: 14px; }

/* Cuentas */
.rcvinsp-accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rcvinsp-account-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border-radius: 14px; border: 0.5px solid var(--rule); transition: all 0.15s; position: relative; }
.rcvinsp-account-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-1); }
.rcvinsp-account-head { display: flex; align-items: center; gap: 10px; }
.rcvinsp-account-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rcvinsp-account-info { flex: 1; min-width: 0; }
.rcvinsp-account-name { font-size: 13px; font-weight: 700; color: var(--ink-1); overflow-wrap: break-word; word-break: break-word; line-height: 1.3; }
.rcvinsp-account-handle { font-size: 11px; color: var(--ink-4); overflow-wrap: break-word; word-break: break-all; }
.rcvinsp-account-platform { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 100px; background: var(--bg-2); color: var(--ink-4); align-self: flex-start; }
.rcvinsp-account-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.rcvinsp-account-tag { font-size: 10px; padding: 2px 8px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rcvinsp-account-why { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.rcvinsp-account-link { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 2px; }
.rcvinsp-account-link svg { width: 12px; height: 12px; }
.rcvinsp-account-delete { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border: none; background: transparent; color: var(--ink-5); cursor: pointer; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.rcvinsp-account-card:hover .rcvinsp-account-delete { display: flex; }
.rcvinsp-account-delete:hover { background: #F6D5D3; color: #A8302A; }
@media (hover: none) { .rcvinsp-account-delete { display: flex; background: var(--surface-2, #F4ECDE); color: var(--ink-4); } }
.rcvinsp-add-card { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: transparent; border: 1.5px dashed var(--rule-strong); border-radius: 14px; color: var(--ink-4); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.rcvinsp-add-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Modal agregar cuenta */
.rcvinsp-modal-overlay { position: fixed; inset: 0; background: rgba(42,31,20,0.4); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.rcvinsp-modal-overlay.is-open { display: flex; }
.rcvinsp-modal { background: var(--bg); border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(42,31,20,0.25); display: flex; flex-direction: column; gap: 16px; }
.rcvinsp-modal-title { font-size: 18px; font-weight: 700; color: var(--ink-1); }
.rcvinsp-modal-field { display: flex; flex-direction: column; gap: 5px; }
.rcvinsp-modal-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.rcvinsp-modal-input { padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink-1); font-family: inherit; outline: none; transition: border 0.15s; }
.rcvinsp-modal-input:focus { border-color: var(--accent); }
.rcvinsp-modal-row { display: flex; gap: 8px; }
.rcvinsp-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.rcvinsp-modal-cancel { padding: 10px 16px; background: transparent; border: 1px solid var(--rule-strong); border-radius: 10px; font-size: 14px; color: var(--ink-3); cursor: pointer; font-family: inherit; }
.rcvinsp-modal-save { padding: 10px 20px; background: var(--accent); color: white; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* Responsive — Inspiración tab */
@media (max-width: 767px) {
  .rcvinsp-wrap { padding: 20px 14px 40px; gap: 36px; }
  .rcvinsp-search-row { flex-direction: column; }
  .rcvinsp-btn-primary { width: 100%; justify-content: center; }
  .rcvinsp-accounts-grid { grid-template-columns: 1fr; }
  .rcvinsp-modal { padding: 20px 16px; }
  .rcvinsp-modal-row { flex-direction: column; }
  .rcvinsp-section-head > div[style] { flex-direction: column; gap: 10px; }
  .rcvinsp-btn-secondary { width: 100%; justify-content: center; }
  #rcvInspAnalysisBody > div:last-child { flex-direction: column; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rcvinsp-wrap { padding: 24px 18px 44px; gap: 40px; }
  .rcvinsp-accounts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Panel análisis */
.rcvinsp-analysis-section { background: var(--surface); border-radius: 12px; padding: 14px 16px; border: 0.5px solid var(--rule); }
.rcvinsp-analysis-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.rcvinsp-analysis-label span { font-size: 14px; }
.rcvinsp-analysis-item { font-size: 13px; color: var(--ink-2); line-height: 1.5; padding: 6px 0; border-top: 0.5px solid var(--rule); display: flex; gap: 8px; }
.rcvinsp-analysis-item:first-of-type { border-top: none; }
.rcvinsp-analysis-bullet { color: var(--accent); flex-shrink: 0; font-weight: 700; }
.rcvinsp-analysis-copy-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; background: var(--accent); color: white; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; width: 100%; justify-content: center; transition: opacity 0.15s; }
.rcvinsp-analysis-copy-btn:hover { opacity: 0.88; }

/* ── PLANIFICADOR ───────────────────────────────── */
.plan-wrap { padding: 28px 32px 60px; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.plan-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-page-title { font-size: 22px; font-weight: 800; color: var(--ink-1); font-family: var(--serif); }

/* Create form */
.plan-create { background: var(--surface); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.plan-field { display: flex; flex-direction: column; gap: 8px; }
.plan-label { font-size: 11px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .06em; }
.plan-type-row { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-type-btn { padding: 9px 18px; border: 1.5px solid var(--rule-strong); border-radius: 10px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; font-family: inherit; }
.plan-type-btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.plan-input { padding: 10px 14px; border: 1.5px solid var(--rule-strong); border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--ink-1); font-family: inherit; outline: none; transition: border-color .15s; width: 100%; }
.plan-input:focus { border-color: var(--accent); }
.plan-textarea { min-height: 80px; resize: vertical; }
.plan-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.plan-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1.5px solid var(--rule-strong); border-radius: 20px; background: var(--bg); font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .12s; user-select: none; }
.plan-chip.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Plan list */
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-card { background: var(--surface); border-radius: 13px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: box-shadow .15s; border: 1.5px solid var(--rule); flex-wrap: wrap; }
.plan-card:hover { box-shadow: 0 4px 16px rgba(42,31,20,.10); border-color: var(--accent); }
.plan-card-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.plan-card-name { font-size: 15px; font-weight: 700; color: var(--ink-1); flex: 1; min-width: 120px; }
.plan-card-meta { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.plan-pbar { width: 70px; height: 5px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.plan-pbar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.plan-card-del { background: none; border: none; color: var(--ink-5); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 18px; line-height: 1; transition: color .12s; flex-shrink: 0; }
.plan-card-del:hover { color: #c0392b; background: rgba(192,57,43,.08); }

/* Detail header */
.plan-back { background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; transition: all .12s; font-family: inherit; }
.plan-back:hover { background: var(--bg-2); color: var(--ink-1); }
.plan-detail-name { font-size: 19px; font-weight: 800; font-family: var(--serif); color: var(--ink-1); flex: 1; min-width: 0; padding: 2px 6px; border-radius: 6px; border: 1.5px solid transparent; outline: none; background: transparent; cursor: pointer; }
.plan-detail-name:hover { border-color: var(--rule-strong); }
.plan-detail-name:focus { border-color: var(--accent); background: var(--surface); }
.plan-export-row { display: flex; gap: 8px; flex-shrink: 0; }
.plan-export-btn { padding: 7px 13px; border: 1.5px solid var(--rule-strong); border-radius: 8px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .12s; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.plan-export-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Stats row */
.plan-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.plan-stat { background: var(--surface); border-radius: 10px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--rule); transition: all .15s; }
.plan-stat-filter { cursor: pointer; }
.plan-stat-filter:hover { border-color: var(--accent); }
.plan-stat-n { font-size: 22px; font-weight: 800; color: var(--ink-1); line-height: 1; }
.plan-stat-l { font-size: 11px; color: var(--ink-4); }

/* Table */
.plan-table-wrap { overflow-x: auto; border-radius: 13px; border: 1.5px solid var(--rule); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th { background: var(--bg-2); padding: 9px 11px; text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); white-space: nowrap; border-bottom: 1.5px solid var(--rule); }
.plan-table td { padding: 9px 11px; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink-2); }
.plan-table tr:last-child td { border-bottom: none; }
.plan-table tr:hover td { background: rgba(198,93,63,.03); }
.plan-cell-edit { cursor: pointer; border-radius: 5px; transition: background .12s; }
.plan-cell-edit:hover { background: var(--accent-soft); color: var(--accent); }
.plan-cell-input { width: 100%; border: none; border-bottom: 1.5px solid var(--accent); background: transparent; font-size: 13px; font-family: inherit; color: var(--ink-1); outline: none; padding: 1px 0; min-width: 80px; }
.plan-cell-select { border: none; border-bottom: 1.5px solid var(--accent); background: transparent; font-size: 13px; font-family: inherit; color: var(--ink-1); outline: none; cursor: pointer; }
.plan-pilar { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pf { background: rgba(76,114,176,.13); color: #4C72B0; }
.pn { background: rgba(91,155,103,.13); color: #5B9B67; }
.pr { background: rgba(198,93,63,.13); color: #C65D3F; }
.pi { background: rgba(142,106,176,.13); color: #8E6AB0; }
.plan-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; border: none; cursor: pointer; transition: all .12s; font-family: inherit; white-space: nowrap; }
.ps-pendiente { background: var(--bg-2); color: var(--ink-4); }
.ps-proceso { background: rgba(255,193,7,.15); color: #c49a00; }
.ps-listo { background: rgba(91,155,103,.15); color: #5B9B67; }
.ps-programado { background: rgba(76,114,176,.15); color: #4C72B0; }
.plan-row-crear { padding: 5px 11px; background: var(--accent); color: white; border: none; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity .12s; font-family: inherit; }
.plan-row-crear:hover { opacity: .85; }
.plan-row-del { background: none; border: none; color: var(--ink-5); cursor: pointer; font-size: 17px; padding: 2px 6px; border-radius: 4px; line-height: 1; transition: color .12s; }
.plan-row-del:hover { color: #c0392b; }
.plan-day-cell { font-size: 11px; font-weight: 700; color: var(--ink-4); white-space: nowrap; line-height: 1.5; }

/* Inicio hub */
.inicio-hub { background: var(--surface); border-radius: 16px; padding: 20px 24px; border: 1.5px solid var(--rule); display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.hub-plan-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.hub-plan-row:last-child { border-bottom: none; }
.hub-plan-day { font-size: 11px; font-weight: 700; color: var(--ink-4); min-width: 55px; white-space: nowrap; }
.hub-plan-tema { font-size: 13px; color: var(--ink-1); flex: 1; }
.hub-plan-pilar { font-size: 11px; font-weight: 600; }
.hub-plan-fmt { font-size: 11px; color: var(--ink-4); }

@media (max-width: 767px) {
  .plan-wrap { padding: 18px 14px 48px; gap: 20px; }
  .plan-stats { gap: 8px; }
  .plan-stat { padding: 8px 12px; }
  .plan-stat-n { font-size: 18px; }
}

/* ───────────────────────────────────────────
   CALENDARIO (Notion, por cliente)
─────────────────────────────────────────── */
.cal-wrap { padding: 28px 32px 60px; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cal-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-4); font-size: 13px; padding: 40px 4px; }
.cal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.cal-title { font-size: 22px; font-weight: 800; color: var(--ink-1); font-family: var(--serif); }
.cal-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-btn { background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 9px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-1); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; font-family: inherit; }
.cal-btn:hover { border-color: var(--accent); }
.cal-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.cal-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.cal-stat { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 12px; padding: 12px 18px; min-width: 84px; }
.cal-stat-warn { border-color: var(--accent); background: var(--accent-soft); }
.cal-stat-n { font-size: 22px; font-weight: 800; color: var(--ink-1); line-height: 1; }
.cal-stat-l { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }

.cal-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-viewtoggle { display: inline-flex; background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 9px; overflow: hidden; }
.cal-vt { background: transparent; border: none; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--ink-4); cursor: pointer; font-family: inherit; }
.cal-vt.is-active { background: var(--accent); color: #fff; }
.cal-monthnav { display: inline-flex; align-items: center; gap: 8px; }
.cal-monthlabel { font-size: 14px; font-weight: 700; color: var(--ink-1); min-width: 130px; text-align: center; }
.cal-filters { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.cal-select { background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 9px; padding: 7px 12px; font-size: 13px; color: var(--ink-1); font-family: inherit; cursor: pointer; outline: none; }

/* Lista / agenda */
.cal-daygroup { margin-bottom: 18px; }
.cal-daylabel { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.cal-backlog .cal-daylabel { color: var(--accent); }
.cal-daypieces { display: flex; flex-direction: column; gap: 6px; }
.cal-piece { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 10px; padding: 11px 14px; display: flex; align-items: center; gap: 11px; cursor: pointer; transition: all .12s; }
.cal-piece:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.cal-piece-icon { font-size: 16px; flex-shrink: 0; }
.cal-piece-main { flex: 1; min-width: 0; }
.cal-piece-title { font-size: 13px; font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-piece-meta { font-size: 11px; color: var(--ink-4); margin-top: 2px; display: flex; gap: 5px; }
.cal-piece-status { font-size: 10px; font-weight: 700; color: var(--ink-3); background: var(--bg); border: 0.5px solid var(--rule); border-radius: 20px; padding: 3px 9px; white-space: nowrap; flex-shrink: 0; }
.cal-piece-link { color: var(--ink-4); text-decoration: none; font-size: 14px; flex-shrink: 0; padding: 0 2px; }
.cal-piece-link:hover { color: var(--accent); }

/* Grilla de mes */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); text-align: center; padding: 4px 0; }
.cal-cell { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 9px; min-height: 92px; padding: 6px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cal-cell-empty { background: transparent; border: none; }
.cal-cell-today { border-color: var(--accent); border-width: 1.5px; }
.cal-cell-day { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cal-cell-today .cal-cell-day { color: var(--accent); }
.cal-cell-pieces { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.cal-chip { background: var(--accent-soft); color: var(--ink-1); border-left: 2px solid var(--accent); border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 600; line-height: 1.25; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip:hover { background: var(--accent); color: #fff; }
.cal-outnote { font-size: 12px; color: var(--ink-4); margin-top: 14px; text-align: center; }

/* Empty / error */
.cal-empty { text-align: center; padding: 56px 20px; color: var(--ink-4); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cal-empty-icon { font-size: 40px; }
.cal-empty-title { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.cal-empty-sub { font-size: 13px; max-width: 380px; }

/* Inicio — enlace al calendario completo */
.pipeline-seeall { display: block; width: 100%; margin-top: 14px; background: transparent; border: 1px dashed var(--rule-strong); border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; font-family: inherit; transition: all .15s; }
.pipeline-seeall:hover { background: var(--accent-soft); border-color: var(--accent); }

@media (max-width: 1023px) {
  .cal-wrap { padding: 18px 14px 48px; gap: 16px; }
  .cal-filters { margin-left: 0; width: 100%; }
  .cal-select { flex: 1; }
  .cal-grid { gap: 4px; }
  .cal-cell { min-height: 76px; padding: 4px; }
  .cal-stat { padding: 9px 13px; min-width: 70px; }
  .cal-stat-n { font-size: 18px; }
}

/* ───────────────────────────────────────────
   FEED (cuadrícula visual estilo Instagram)
─────────────────────────────────────────── */
.feed-wrap { padding: 28px 32px 60px; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.feed-sub { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.feed-cell { position: relative; aspect-ratio: 1 / 1; background: var(--surface); border: 0.5px solid var(--rule); border-radius: 4px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.feed-cell:hover { box-shadow: var(--shadow-2); }
.feed-cell.empty { color: var(--ink-5); font-size: 28px; font-weight: 300; border-style: dashed; cursor: default; }
.feed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; background: linear-gradient(180deg, rgba(42,31,20,0.04), rgba(42,31,20,0.12)); transition: background .15s; }
.feed-cell.has-img .feed-ov { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55)); opacity: 0; justify-content: flex-end; align-items: flex-start; }
.feed-cell.has-img:hover .feed-ov { opacity: 1; }
.feed-ov-icon { font-size: 20px; }
.feed-cell.has-img .feed-ov-icon { display: none; }
.feed-ov-lbl { font-size: 11px; font-weight: 600; color: var(--ink-2); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-cell.has-img .feed-ov-lbl { color: #fff; text-align: left; }
.feed-date { position: absolute; top: 6px; right: 6px; background: rgba(248,243,237,0.9); color: var(--ink-3); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 20px; letter-spacing: 0.02em; }

@media (max-width: 1023px) {
  .feed-wrap { padding: 18px 14px 48px; gap: 16px; }
  .feed-grid { gap: 3px; }
}

/* ───────────────────────────────────────────
   REPURPOSING (de una pieza a todos los formatos)
─────────────────────────────────────────── */
.rp-wrap { padding: 28px 32px 60px; max-width: 1400px; margin: 0 auto; }
.rp-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.rp-config { display: flex; flex-direction: column; }
.rp-config .page-h { font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--ink-1); margin-bottom: 2px; }
.rp-config .page-sub { font-size: 13px; color: var(--ink-4); margin-bottom: 16px; }
.rp-config .sec-card { margin-bottom: 10px; }
.sec-card { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 14px; padding: 16px; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--rule-strong); background: transparent; font-size: 12px; font-weight: 500; color: var(--ink-4); cursor: pointer; font-family: inherit; transition: all .15s; }
.pchip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.mode-row { display: flex; border-bottom: .5px solid var(--rule); margin-bottom: 12px; }
.mode-tab { padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--ink-4); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -.5px; cursor: pointer; font-family: inherit; transition: all .15s; }
.mode-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.rp-ta, .rp-in { width: 100%; padding: 11px 13px; border: 1.5px solid var(--rule-strong); border-radius: 10px; font-size: 14px; color: var(--ink-1); background: var(--bg); outline: none; font-family: inherit; box-sizing: border-box; transition: border-color .15s; }
.rp-ta { resize: vertical; min-height: 100px; line-height: 1.6; }
.rp-ta:focus, .rp-in:focus { border-color: var(--accent); }
.rp-extract-btn { padding: 11px 16px; background: var(--ink-1); color: var(--bg); border: none; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.rp-ok { font-size: 12px; color: #5C6B3C; margin: 0 0 8px; }
.rp-hint { font-size: 12px; color: var(--ink-4); margin: 0 0 6px; }
.rp-img-lbl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ink-1); color: var(--bg); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rp-img-rm { padding: 8px 14px; background: transparent; border: 1px solid var(--rule-strong); border-radius: 10px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.out-row { display: flex; flex-wrap: wrap; gap: 8px; }
.out-opt { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 10px; border: 1.5px solid var(--rule-strong); background: var(--bg); cursor: pointer; transition: all .15s; }
.out-opt.on { border-color: #5C6B3C; background: rgba(92,107,60,.1); }
.out-chk { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--ink-4); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; transition: all .15s; }
.out-opt.on .out-chk { background: #5C6B3C; border-color: #5C6B3C; color: #fff; }
.out-info { min-width: 0; }
.out-lbl { font-size: 13px; font-weight: 600; color: var(--ink-1); }
.out-sub { font-size: 11px; color: var(--ink-4); }
.out-icon { margin-left: auto; font-size: 15px; }
.rp-err { display: none; background: var(--accent-soft); border: 1px solid rgba(198,93,63,.25); border-radius: 10px; padding: 10px 13px; font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.gen-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 8px; transition: opacity .15s; }
.gen-btn:disabled { opacity: .45; cursor: not-allowed; }
.gen-btn:not(:disabled):active { opacity: .82; }
.gen-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.rp-tabs { display: flex; border-bottom: .5px solid var(--rule); margin-bottom: 20px; }
.rp-tab { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--ink-4); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -.5px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; transition: all .15s; }
.rp-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.rp-tab-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.rp-work-empty { text-align: center; padding: 56px 20px; }
.rp-work-empty-icon { font-size: 44px; opacity: .35; margin-bottom: 14px; }
.rp-work-empty-txt { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.rp-work-empty-sub { font-size: 13px; color: var(--ink-4); line-height: 1.5; max-width: 320px; margin: 0 auto; }
.banco-h { font-family: var(--serif); font-size: 18px; font-weight: 800; color: var(--ink-1); margin-bottom: 4px; }
.banco-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 14px; }
.banco-filters { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; flex-wrap: nowrap; }
.banco-filters::-webkit-scrollbar { display: none; }
.bchip { flex-shrink: 0; padding: 5px 12px; border-radius: 99px; border: none; font-size: 12px; font-weight: 500; color: var(--ink-4); background: var(--bg); cursor: pointer; font-family: inherit; transition: all .15s; }
.bchip.on { background: var(--ink-1); color: var(--bg); }
.banco-card { background: var(--surface); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; transition: all .15s; }
.banco-card:hover { border-color: rgba(198,93,63,.2); box-shadow: var(--shadow-2); }
.banco-card-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 5px; }
.banco-rank { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 2px 6px; flex-shrink: 0; margin-top: 2px; }
.banco-plat { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); background: var(--bg); border-radius: 5px; padding: 2px 7px; flex-shrink: 0; margin-top: 2px; }
.banco-title { font-size: 13px; font-weight: 600; color: var(--ink-1); flex: 1; line-height: 1.4; }
.banco-note { font-size: 11px; color: var(--ink-4); margin-bottom: 8px; }
.banco-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.banco-formats { font-size: 11px; color: #5C6B3C; font-weight: 500; }
.banco-use { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: none; border-radius: 7px; padding: 5px 10px; cursor: pointer; font-family: inherit; flex-shrink: 0; transition: all .15s; }
.banco-use:hover { background: var(--accent); color: #fff; }
.sess-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sess-hdr-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); }
.sess-clear { font-size: 11px; font-weight: 500; color: var(--ink-4); background: var(--bg); border: none; border-radius: 7px; padding: 4px 10px; cursor: pointer; font-family: inherit; }
.sess-card { background: var(--surface); border: .5px solid var(--rule); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.sess-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: var(--bg); border-bottom: .5px solid var(--rule); }
.sess-date { font-size: 11px; color: var(--ink-4); flex: 1; }
.sess-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--accent); border-radius: 99px; padding: 2px 8px; }
.sess-del { font-size: 13px; color: var(--ink-4); background: none; border: none; border-radius: 6px; padding: 2px 6px; line-height: 1; cursor: pointer; }
.sess-del:hover { background: var(--rule); }
.sess-fmt { border-bottom: .5px solid var(--rule); }
.sess-fmt:last-child { border-bottom: none; }
.sess-fmt-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; }
.sess-fmt-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.sess-actions { display: flex; align-items: center; gap: 6px; }
.copy-btn { font-size: 12px; font-weight: 500; color: var(--ink-4); background: var(--bg); border: none; border-radius: 7px; padding: 4px 9px; cursor: pointer; font-family: inherit; }
.notion-btn { font-size: 11px; font-weight: 600; color: #fff; background: #2d2d2d; border: none; border-radius: 7px; padding: 4px 9px; cursor: pointer; font-family: inherit; }
.notion-btn:hover { background: #111; }
.notion-saved-link { font-size: 11px; font-weight: 600; color: #5C6B3C; text-decoration: none; background: var(--bg); border-radius: 7px; padding: 4px 9px; border: 1px solid #5C6B3C; }
.result-pre { font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; margin: 0; padding: 0 13px 13px; font-family: inherit; }

@media (max-width: 1023px) {
  .rp-wrap { padding: 18px 14px 48px; }
  .rp-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* Botones flotantes de la vista Analíticas (fallback abrir externo) */
#dataControls { display: none; }
.data-fab { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--ink-1); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-2); font-family: inherit; }
.data-fab:hover { border-color: var(--accent); color: var(--accent); }

/* ───────────────────────────────────────────
   YOUTUBE ANALYTICS (panel nativo en Analíticas)
─────────────────────────────────────────── */
.yt-panel { position: absolute; inset: 0; overflow-y: auto; background: var(--bg); padding: 24px 28px 60px; }
.yt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.yt-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.yt-range { background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit; }
.yt-range.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.yt-customwrap { display: inline-flex; align-items: center; gap: 6px; }
.yt-date { background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--ink-1); font-family: inherit; }
.yt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.yt-card { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.yt-card-n { font-size: 28px; font-weight: 800; color: var(--ink-1); line-height: 1; font-family: var(--serif); }
.yt-card-l { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-top: 8px; }
.yt-card-s { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.yt-top { margin-top: 8px; }
.yt-toprow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 0.5px solid var(--rule); border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; }
.yt-toprank { font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 6px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yt-topname { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-topviews { font-size: 12px; color: var(--ink-4); white-space: nowrap; flex-shrink: 0; }
.yt-range-note { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 16px; }
@media (max-width: 1023px) { .yt-panel { padding: 16px 14px 48px; } }

/* YouTube dashboard — tabs, comparativa, gráfico */
.yt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 0.5px solid var(--rule); padding-bottom: 12px; }
.yt-tab { background: transparent; border: 0.5px solid var(--rule-strong); border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit; }
.yt-tab.on { background: var(--ink-1); color: var(--bg); border-color: var(--ink-1); }
.yt-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.yt-delta { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.yt-delta small { font-weight: 500; opacity: 0.8; }
.yt-delta.up { color: #3C7A4E; background: rgba(92,107,60,0.12); }
.yt-delta.down { color: #A8302A; background: rgba(168,48,42,0.10); }
.yt-delta.flat { color: var(--ink-4); background: var(--bg); }
.yt-chart-wrap { background: var(--surface); border: 0.5px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.yt-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.yt-metric-toggle { display: inline-flex; gap: 4px; }
.yt-mbtn { background: var(--bg); border: 0.5px solid var(--rule-strong); border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--ink-4); cursor: pointer; font-family: inherit; }
.yt-mbtn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.yt-chart { width: 100%; height: 150px; display: block; }
a.yt-toprow { text-decoration: none; color: inherit; transition: border-color .12s; }
a.yt-toprow:hover { border-color: var(--accent); }

/* Toggle Dashboard / Reporte + bloques del reporte */
.yt-sectoggle { display: inline-flex; gap: 4px; background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.yt-sec { background: transparent; border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink-4); cursor: pointer; font-family: inherit; }
.yt-sec.on { background: var(--accent); color: #fff; }
.rep-block { margin-bottom: 20px; }
.rep-block .yt-cards { margin-bottom: 10px; }

/* Dashboard de decisiones (#10) */
.gd-sec { margin-bottom: 26px; }
.gd-sec-head { margin-bottom: 12px; }
.gd-sec-sub { font-size: 12px; color: var(--ink-4); margin-top: 3px; }
.gd-chart { width: 100%; height: auto; display: block; }
.gd-bars { display: flex; flex-direction: column; gap: 9px; }
.gd-bar-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; }
.gd-bar-lbl { font-size: 13px; font-weight: 600; color: var(--ink-1); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-bar-track { background: var(--accent-soft); border-radius: 99px; height: 14px; overflow: hidden; }
.gd-bar-fill { height: 100%; border-radius: 99px; min-width: 3px; transition: width .3s ease; }
.gd-bar-val { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.gd-matrix { display: flex; flex-direction: column; gap: 4px; }
.gd-mx-row { display: grid; grid-template-columns: 120px repeat(3, 1fr); gap: 4px; }
.gd-mx-cell { padding: 9px 6px; text-align: center; font-size: 13px; font-weight: 600; border-radius: 8px; color: var(--ink-1); }
.gd-mx-head .gd-mx-cell { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); padding: 4px 6px; }
.gd-mx-lbl { text-align: left; display: flex; align-items: center; gap: 7px; background: transparent; }
.gd-mx-v { font-family: var(--serif); }
.gd-mx-v.best { outline: 2px solid var(--accent); outline-offset: -2px; }
.gd-mx-v.best::after { content: ' ✦'; color: var(--accent); font-size: 10px; }
.gd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.gd-actions { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.gd-actions li { font-size: 14px; line-height: 1.5; color: var(--ink-1); }
/* Centro de decisiones (Escalar/Corregir/Pausar/Probar) */
.gd-dec-panel { margin-bottom: 28px; }
.gd-dec-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gd-dec-title { font-size: 21px; font-weight: 800; color: var(--ink-1); font-family: var(--serif); line-height: 1.1; margin-top: 2px; }
.gd-dec-cta { font-size: 14px; line-height: 1.5; color: var(--ink-3); background: var(--surface); border: 0.5px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
.gd-dec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.gd-dec-col { background: var(--surface); border: 0.5px solid var(--rule); border-top: 3px solid var(--dec); border-radius: 14px; padding: 14px 16px; }
.gd-dec-h { font-size: 13px; font-weight: 800; color: var(--dec); margin-bottom: 10px; letter-spacing: 0.01em; }
.gd-dec-item { border-top: 0.5px solid var(--rule); padding-top: 11px; margin-top: 11px; }
.gd-dec-item:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.gd-dec-t { font-size: 14px; font-weight: 700; color: var(--ink-1); line-height: 1.3; }
.gd-dec-ev { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.gd-dec-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.gd-dec-imp { font-size: 11px; font-weight: 700; color: #3C7A4E; background: rgba(92,107,60,0.12); padding: 2px 8px; border-radius: 20px; }
.gd-dec-step { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 8px; line-height: 1.45; }
.gd-dec-empty { font-size: 12.5px; color: var(--ink-4); font-style: italic; }
/* Conectar Mailchimp (inline) */
.gd-mc-connect { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 0.5px solid var(--rule); border-radius: 14px; padding: 16px 18px; max-width: 520px; }
.gd-mc-input { padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--ink-1); font-family: inherit; outline: none; }
.gd-mc-input:focus { border-color: var(--accent); }
.gd-mc-connect .cal-btn { align-self: flex-start; }
@media (max-width: 640px) {
  .gd-bar-row { grid-template-columns: 78px 1fr auto; gap: 8px; }
  .gd-mx-row { grid-template-columns: 84px repeat(3, 1fr); }
  .gd-mx-cell { font-size: 12px; padding: 8px 3px; }
}

/* Instagram grid (Apify, clientes) */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.ig-card { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--surface); border: 0.5px solid var(--rule); text-decoration: none; display: block; }
.ig-card:hover { box-shadow: var(--shadow-2); }
.ig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 8px; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6)); }
.ig-stats { font-size: 11px; font-weight: 700; color: #fff; }
.ig-cap { font-size: 10px; color: rgba(255,255,255,0.9); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023px) { .ig-grid { gap: 4px; } }
