/* ============================================================
   LinkedIn Content Plan — Styles
   Design system: Data-dense editorial dashboard, LinkedIn blue
   ============================================================ */
:root {
  --lcp-blue: #0a66c2;
  --lcp-blue-dark: #004182;
  --lcp-blue-light: #e7f3ff;
  --lcp-accent: #f43f5e;
  --lcp-card-bg: #ffffff;
  --lcp-hover: #f8fafc;
  --lcp-border: #e2e8f0;
  --lcp-text: #0f172a;
  --lcp-text-strong: #0b1220;
  --lcp-muted: #64748b;
  --lcp-muted-soft: #475569;
  --lcp-surface-soft: #f4f6f9;
  --lcp-surface-softer: #fafafa;
  --lcp-danger-text: #dc2626;
  --lcp-danger-text-dark: #b42318;
  --lcp-danger-text-darker: #991b1b;
  --lcp-danger-bg: #fef2f2;
  --lcp-danger-border: #ef4444;
  --lcp-warn-bg: #fef3c7;
  --lcp-warn-border: #fbbf24;
  --lcp-chip-bg: #f1f5f9;
  --lcp-hover-darker: #eef2f7;
  --lcp-success-text: #166534;
  --lcp-info-bg: #ecfeff;
  --lcp-info-text: #0e7490;
}

.lcp-tab { display: none; }
.lcp-tab.active { display: block; }

/* ── KPI cards ── */
.lcp-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }

/* Dashboard editorial — narrative hero + KPI strip + lists */
.lcp-dash-hero {
  padding: .25rem 0 1.1rem; margin-bottom: 1.25rem;
  border-bottom: 2px solid #0b1220; max-width: 920px;
}
.lcp-dash-headline {
  font-family: 'Poppins', sans-serif; font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.3;
  color: #0b1220; margin: 0 0 .75rem; letter-spacing: -.02em;
}
.lcp-dash-bignum {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  color: var(--lcp-blue); letter-spacing: -.03em;
  font-size: 1.4em; font-variant-numeric: tabular-nums;
}
.lcp-dash-meta {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  color: #475569; letter-spacing: .04em;
}
.lcp-dash-meta-dot { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }

/* KPI strip anti-card */
.lcp-dash-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--lcp-border);
  border-bottom: 1px solid var(--lcp-border);
  margin-bottom: 1.5rem;
}
@media (max-width: 780px) { .lcp-dash-strip { grid-template-columns: repeat(2, 1fr); } }
.lcp-dash-kpi {
  padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .35rem;
  position: relative;
}
.lcp-dash-kpi + .lcp-dash-kpi { border-left: 1px solid var(--lcp-border); }
@media (max-width: 780px) {
  .lcp-dash-kpi + .lcp-dash-kpi { border-left: none; }
  .lcp-dash-kpi:nth-child(odd) { border-right: 1px solid var(--lcp-border); }
  .lcp-dash-kpi:nth-child(n+3) { border-top: 1px solid var(--lcp-border); }
}
.lcp-dash-kpi-label {
  font-size: .65rem; color: #64748b; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
}
.lcp-dash-kpi-value {
  font-family: 'JetBrains Mono', monospace; font-size: 1.6rem;
  font-weight: 700; color: #0b1220; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.lcp-dash-kpi-value.ok { color: #16a34a; }
.lcp-dash-kpi-value.warn { color: #d97706; }
.lcp-dash-kpi-value.critical { color: var(--lcp-accent); }
.lcp-dash-kpi-hint {
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: #64748b; letter-spacing: .03em; font-variant-numeric: tabular-nums;
}

/* Dash split — upcoming + recent */
.lcp-dash-split {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--lcp-border);
  border-radius: 10px; overflow: hidden;
}
@media (max-width: 960px) { .lcp-dash-split { grid-template-columns: 1fr; } }
.lcp-dash-col { padding: 1rem 1.15rem 1.1rem; }
.lcp-dash-col + .lcp-dash-col { border-left: 1px solid var(--lcp-border); background: #f8fafc; }
@media (max-width: 960px) { .lcp-dash-col + .lcp-dash-col { border-left: none; border-top: 1px solid var(--lcp-border); } }
.lcp-dash-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; padding-bottom: .55rem; border-bottom: 1px solid var(--lcp-border); }

/* Editorial list item per post upcoming/recent */
.lcp-dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lcp-dash-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .85rem;
  align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--lcp-border);
  cursor: pointer; transition: padding-left .16s, background .16s;
}
.lcp-dash-item:last-child { border-bottom: none; }
.lcp-dash-item:hover { padding-left: .5rem; background: rgba(10,102,194,.04); }
.lcp-dash-item-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px; padding: .3rem .4rem;
  background: var(--lcp-blue-light); border-radius: 5px;
}
.lcp-dash-item-date .day { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; font-weight: 700; color: var(--lcp-blue-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-dash-item-date .month { font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 700; text-transform: uppercase; color: var(--lcp-blue-dark); letter-spacing: .06em; }
.lcp-dash-item-date.published { background: rgba(22,163,74,.12); }
.lcp-dash-item-date.published .day, .lcp-dash-item-date.published .month { color: #15803d; }
.lcp-dash-item-hook { font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500; color: #0b1220; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.005em; }
.lcp-dash-item-time { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: #64748b; font-variant-numeric: tabular-nums; }
/* CLAUDE.md §1.6.1 — empty state card bianca con border */
.lcp-dash-item-empty { background: #fff; border: 1px solid var(--lcp-border); border-radius: 10px; color: #64748b; font-size: .85rem; padding: 2rem 1.5rem; text-align: center; }
.lcp-dash-item-empty a { color: var(--lcp-blue); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.lcp-dash-item-empty a:hover { border-bottom-color: var(--lcp-blue); }

.lcp-dash-cta-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
  border: 1px solid #fde68a; border-radius: 10px;
}
.lcp-dash-cta-banner-ico { color: #b45309; flex: 0 0 auto; line-height: 0; }
.lcp-dash-cta-banner-body { flex: 1; min-width: 0; }
.lcp-dash-cta-banner-body strong { display: block; font-family: 'Poppins', sans-serif; color: #78350f; font-size: .92rem; font-weight: 600; }
.lcp-dash-cta-banner-body p { margin: .2rem 0 0; font-size: .82rem; color: #92400e; line-height: 1.45; }
.lcp-kpi-card { background: var(--lcp-card-bg); border: 1px solid var(--lcp-border); border-radius: 10px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; transition: box-shadow .15s, border-color .15s; }
.lcp-kpi-card:hover { box-shadow: 0 3px 10px rgba(15,23,42,.06); border-color: #cbd5e1; }
.lcp-kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--lcp-text); line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-kpi-label { font-size: .74rem; color: var(--lcp-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.lcp-kpi-hint { font-size: .72rem; color: var(--lcp-muted); }

/* ── Toolbar ── */
.lcp-toolbar { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; padding: .65rem .75rem; background: #f8fafc; border: 1px solid var(--lcp-border); border-radius: 8px; margin-bottom: 1rem; }
.lcp-btn { cursor: pointer; border: 1px solid var(--lcp-border); background: #fff; padding: .45rem .85rem; font-size: .82rem; border-radius: 6px; font-family: inherit; color: var(--lcp-text); transition: all .12s; display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.lcp-btn:hover { background: var(--lcp-hover); border-color: #94a3b8; }
.lcp-btn-primary { background: var(--lcp-blue); color: #fff; border-color: var(--lcp-blue); }
.lcp-btn-primary:hover { background: var(--lcp-blue-dark); border-color: var(--lcp-blue-dark); color: #fff; }
/* Ghost button: background chiaro esplicito per requisito UI §1.2 */
.lcp-btn-ghost { background: var(--lcp-hover); border-color: var(--lcp-border); color: var(--lcp-text); }
.lcp-btn-ghost:hover { background: #eef2f7; border-color: #cbd5e1; }
.lcp-btn-danger { color: var(--lcp-accent); border-color: #fecaca; }
.lcp-btn-danger:hover { background: #fef2f2; border-color: var(--lcp-accent); }
.lcp-btn-success { background: #16a34a; color: #fff; border-color: #16a34a; }
.lcp-btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }
/* Warning ambra — usato per azioni di "rollback" (es. sposta in Approvati) */
.lcp-btn-warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.lcp-btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }
/* Stato: post già schedulato su Buffer — viola Buffer-brand (#8b5cf6) distinto da draft/approved */
.lcp-btn-buffer {
  background: #8b5cf6; color: #fff; border-color: #8b5cf6;
  position: relative;
}
.lcp-btn-buffer:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.lcp-btn-buffer svg { color: #fff; }
.lcp-btn-buffer::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #c4b5fd; margin-right: .2rem;
  box-shadow: 0 0 0 0 rgba(196,181,253,.7);
  animation: lcp-btn-buf-pulse 2.2s ease-in-out infinite;
}
@keyframes lcp-btn-buf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,181,253,.7); }
  50% { box-shadow: 0 0 0 5px rgba(196,181,253,0); }
}
.lcp-btn-icon { padding: .35rem; width: 32px; min-width: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; margin-left: auto; }
.lcp-btn-icon svg { width: 16px; height: 16px; display: block; }
.lcp-btn-icon.lcp-btn-danger { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.lcp-btn-icon.lcp-btn-danger:hover { background: var(--lcp-accent); color: #fff; border-color: var(--lcp-accent); }
/* Modal XL: più larga per accogliere editor post con colonne */
.lcp-modal-xl .modal { max-width: 1200px; width: 95vw; }
.lcp-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Sub-tabs ── */
.lcp-subtabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--lcp-border); margin-bottom: 1.2rem; }
.lcp-subtab { padding: .6rem 1.1rem; border: none; background: transparent; cursor: pointer; font-size: .85rem; color: var(--lcp-muted); font-family: inherit; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.lcp-subtab:hover { color: var(--lcp-text); }
.lcp-subtab.active { color: var(--lcp-blue); border-color: var(--lcp-blue); }

/* ── Configuratore: top-tabs (5 macro-aree) ── */
.lcp-cfg-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .35rem;
  background: #f1f5f9;
  border: 1px solid var(--lcp-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.lcp-cfg-tab {
  flex: 1 1 auto; min-width: 140px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600;
  color: var(--lcp-muted);
  border-radius: 8px;
  transition: background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.lcp-cfg-tab:hover { background: rgba(255, 255, 255, .65); color: var(--lcp-text); }
.lcp-cfg-tab.active {
  background: #ffffff;
  color: var(--lcp-blue);
  border-color: var(--lcp-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.lcp-cfg-tab-label { letter-spacing: .01em; }

/* Sub-tabs interni (sotto la top-tab attiva) */
.lcp-cfg-section-head {
  margin: 0 0 1rem;
}
.lcp-cfg-section-title {
  margin: 0 0 .15rem;
  font-size: 1.05rem; font-weight: 600;
  color: var(--lcp-text);
}
.lcp-cfg-section-desc {
  margin: 0;
  font-size: .82rem;
  color: var(--lcp-muted);
}
.lcp-cfg-subtabs {
  display: flex; flex-wrap: wrap; gap: .25rem;
  border-bottom: 1px solid var(--lcp-border);
  margin-bottom: 1.2rem;
}
.lcp-cfg-subtab {
  padding: .55rem 1rem;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 500;
  color: var(--lcp-muted);
  border-bottom: 2px solid transparent;
  border-top-left-radius: 8px; border-top-right-radius: 8px;
  margin-bottom: -1px;
  transition: color .12s, background .12s, border-color .12s;
}
.lcp-cfg-subtab:hover { color: var(--lcp-text); background: #eef2f7; }
.lcp-cfg-subtab.active {
  color: var(--lcp-blue);
  border-bottom-color: var(--lcp-blue);
  background: #ffffff;
}

@media (max-width: 720px) {
  .lcp-cfg-tabs { padding: .25rem; gap: .25rem; }
  .lcp-cfg-tab { min-width: 0; flex: 1 1 calc(50% - .25rem); font-size: .76rem; padding: .55rem .55rem; }
  .lcp-cfg-subtab { font-size: .76rem; padding: .5rem .8rem; }
}

/* ── Card base ── */
.lcp-card { background: var(--lcp-card-bg); border: 1px solid var(--lcp-border); border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.lcp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.lcp-card-title { font-size: .95rem; font-weight: 600; color: var(--lcp-text); margin: 0; }
.lcp-card-body { font-size: .85rem; color: var(--lcp-text); }

/* ── Post grid ──
 * Cap upper bound: una card non deve mai diventare più grande del layout "3 post per riga".
 * Con <3 post: cards a dimensione "3-post" (max ~420px), spazio rimanente vuoto a destra.
 * Con 3 post: layout naturale 33% per card.
 * Con >3 post: cards più piccole (auto-fill aggiunge tracce, ognuna minmax 260→420 cap).
 */
.lcp-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); gap: 1rem; justify-content: start; }
.lcp-post-grid > .lcp-post-card { width: 100%; max-width: 420px; }
@media (min-width: 1400px) { .lcp-post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); } }
.lcp-post-card { background: #fff; border: 1px solid var(--lcp-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s, transform .15s; cursor: pointer; }
.lcp-post-card:hover { box-shadow: 0 4px 14px rgba(15,23,42,.08); border-color: #cbd5e1; transform: translateY(-1px); }
.lcp-post-card-image { aspect-ratio: 1.91; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); position: relative; overflow: hidden; }
.lcp-post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.lcp-post-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lcp-muted); font-size: .78rem; }
.lcp-post-card-body { padding: .85rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.lcp-post-card-hook { font-weight: 600; font-size: .88rem; color: var(--lcp-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-post-card-meta { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .72rem; color: var(--lcp-muted); }
.lcp-post-card-actions { display: flex; gap: .3rem; padding: .55rem .8rem; border-top: 1px solid var(--lcp-border); background: #fafbfc; }
.lcp-post-card-actions .lcp-btn { flex: 1; padding: .3rem .5rem; font-size: .74rem; justify-content: center; }
.lcp-post-card-actions .lcp-btn-icon { flex: 0 0 32px; width: 32px; padding: .3rem; }

/* ── Status badges ── */
.lcp-status { font-size: .68rem; padding: 2px 8px; border-radius: 10px; font-weight: 500; letter-spacing: .2px; white-space: nowrap; }
.lcp-status.unscheduled { background: #fae8ff; color: #86198f; }
.lcp-status.draft { background: #f1f5f9; color: #475569; }
.lcp-status.approved { background: #fef3c7; color: #92400e; }
.lcp-status.scheduled { background: #dbeafe; color: #1d4ed8; }
.lcp-status.published { background: #dcfce7; color: #166534; }
.lcp-status.failed { background: #fee2e2; color: #991b1b; }
.lcp-category { font-size: .68rem; padding: 2px 8px; border-radius: 10px; background: var(--lcp-blue-light); color: var(--lcp-blue-dark); font-weight: 500; }

/* ── Calendar ── */
.lcp-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--lcp-border); border: 1px solid var(--lcp-border); border-radius: 8px; overflow: hidden; }
.lcp-cal-dayname { background: #f1f5f9; text-align: center; padding: .5rem 0; font-size: .72rem; font-weight: 600; color: var(--lcp-muted); text-transform: uppercase; letter-spacing: .3px; }
.lcp-cal-cell { background: #fff; min-height: 90px; padding: .4rem; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.lcp-cal-cell.other-month { background: #fafbfc; opacity: .55; }
.lcp-cal-cell.today { background: var(--lcp-blue-light); }
.lcp-cal-day-num { font-size: .72rem; font-weight: 600; color: var(--lcp-muted); }
.lcp-cal-post { font-size: .7rem; padding: 2px 5px; border-radius: 3px; background: var(--lcp-blue-light); color: var(--lcp-blue-dark); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.lcp-cal-post:hover { background: var(--lcp-blue); color: #fff; }
.lcp-cal-post.published { background: #dcfce7; color: #166534; }
.lcp-cal-post.draft { background: #f1f5f9; color: #475569; }

/* ── Form fields ── */
.lcp-field { margin-bottom: 1rem; }
.lcp-label { display: block; font-size: .78rem; font-weight: 600; color: var(--lcp-text); margin-bottom: .35rem; }
.lcp-label-opt { font-weight: 400; color: var(--lcp-muted); font-size: .72rem; margin-left: .3rem; }
.lcp-input, .lcp-select, .lcp-textarea { width: 100%; padding: .55rem .75rem; border: 1px solid var(--lcp-border); border-radius: 6px; font-size: .85rem; font-family: inherit; color: var(--lcp-text); background: #fff; box-sizing: border-box; transition: border-color .12s, box-shadow .12s; }
.lcp-input:focus, .lcp-select:focus, .lcp-textarea:focus { outline: none; border-color: var(--lcp-blue); box-shadow: 0 0 0 3px rgba(10,102,194,.12); }
.lcp-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.lcp-help { font-size: .72rem; color: var(--lcp-muted); margin-top: .3rem; line-height: 1.4; }
.lcp-error { color: var(--lcp-accent); font-size: .78rem; margin-top: .3rem; }

/* ── Chips editor ── */
.lcp-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; border: 1px solid var(--lcp-border); border-radius: 6px; background: #fff; min-height: 42px; }
.lcp-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--lcp-blue-light); color: var(--lcp-blue-dark); font-size: .75rem; padding: 2px 6px 2px 10px; border-radius: 12px; font-weight: 500; }
/* CLAUDE.md §1.2 — ogni button con background esplicito: usa colore della chip stessa */
.lcp-chip button { background: var(--lcp-blue-light); border: none; color: var(--lcp-blue-dark); cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 3px; font-family: inherit; border-radius: 2px; }
.lcp-chip button:hover { background: var(--lcp-blue); color: #fff; }
.lcp-chips input { border: none; outline: none; flex: 1; min-width: 120px; font-size: .82rem; font-family: inherit; background: #fff; }

/* ── Admin API keys card ── */
.lcp-api-key-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--lcp-border); }
.lcp-api-key-row:last-child { border-bottom: none; }
.lcp-api-key-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lcp-api-key-status.ok { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.2); }
.lcp-api-key-status.fail { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }
.lcp-api-key-status.untested { background: #94a3b8; }
.lcp-api-key-name { font-weight: 600; font-size: .88rem; min-width: 140px; }
.lcp-api-key-hint { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--lcp-muted); flex: 1; }
.lcp-api-key-actions { display: flex; gap: .3rem; }

/* ── Models table ── */
.lcp-models-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lcp-models-table th, .lcp-models-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--lcp-border); vertical-align: middle; }
.lcp-models-table th { background: #f8fafc; font-weight: 600; color: var(--lcp-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .3px; }
.lcp-models-table tr:hover { background: var(--lcp-hover); }
.lcp-models-table code { font-size: .78rem; background: #f1f5f9; padding: 1px 6px; border-radius: 3px; font-family: ui-monospace, monospace; }
.lcp-models-table input[type=checkbox] { accent-color: var(--lcp-blue); cursor: pointer; }
.lcp-models-table input[type=radio] { accent-color: var(--lcp-blue); cursor: pointer; }

/* ── Dashboard upcoming list ── */
.lcp-upcoming-list { display: flex; flex-direction: column; gap: .5rem; }
.lcp-upcoming-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .75rem; border: 1px solid var(--lcp-border); border-radius: 6px; background: #fff; transition: border-color .12s; cursor: pointer; }
.lcp-upcoming-item:hover { border-color: var(--lcp-blue); }
.lcp-upcoming-date { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: .3rem .5rem; background: var(--lcp-blue-light); border-radius: 5px; }
.lcp-upcoming-date .day { font-size: 1.1rem; font-weight: 700; color: var(--lcp-blue-dark); line-height: 1; }
.lcp-upcoming-date .month { font-size: .65rem; text-transform: uppercase; color: var(--lcp-blue-dark); font-weight: 600; }
.lcp-upcoming-hook { flex: 1; font-size: .84rem; color: var(--lcp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lcp-upcoming-time { font-size: .75rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; }

/* ── Post editor modal ── */
.lcp-post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.2rem; }
.lcp-post-editor-main { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.lcp-post-editor-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.lcp-post-editor textarea, .lcp-post-editor input { max-width: 100%; box-sizing: border-box; }
.lcp-char-count { font-size: .72rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; }
.lcp-char-count.near { color: #b45309; font-weight: 600; }
.lcp-image-preview { min-height: 200px; max-height: 520px; background: linear-gradient(135deg,#f1f5f9,#e2e8f0); border-radius: 8px; overflow: hidden; border: 1px solid var(--lcp-border); position: relative; display: flex; align-items: center; justify-content: center; }
.lcp-image-preview img { max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; display: block; }
/* CLAUDE.md §1.6.1 — empty state card bianca esplicita */
.lcp-image-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--lcp-muted); font-size: .82rem; border: 1px solid var(--lcp-border); border-radius: 8px; padding: 2rem; }
.lcp-image-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.lcp-image-actions .lcp-btn { flex: 1; min-width: 110px; padding: .35rem .55rem; font-size: .74rem; justify-content: center; }
.lcp-image-versions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
.lcp-image-version { width: 48px; height: 48px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; overflow: hidden; background: #f1f5f9; }
.lcp-image-version img { width: 100%; height: 100%; object-fit: cover; }
.lcp-image-version.current { border-color: var(--lcp-blue); }
.lcp-image-version:hover { border-color: #94a3b8; }

/* ── LinkedIn preview ── */
.lcp-li-preview { background: #fff; border: 1px solid var(--lcp-border); border-radius: 8px; padding: 1rem; max-width: 550px; }
.lcp-li-preview-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.lcp-li-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lcp-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.lcp-li-author { font-weight: 600; font-size: .9rem; color: var(--lcp-text); }
.lcp-li-role { font-size: .75rem; color: var(--lcp-muted); }
.lcp-li-content { font-size: .88rem; line-height: 1.55; color: var(--lcp-text); word-wrap: break-word; }
.lcp-li-para { margin: 0 0 .7rem; white-space: pre-wrap; }
.lcp-li-para:last-child { margin-bottom: 0; }
.lcp-li-more { color: var(--lcp-muted); cursor: pointer; font-weight: 500; }
.lcp-li-more:hover { color: var(--lcp-blue); text-decoration: underline; }
/* Tab anteprima (feed vs completo) */
.lcp-li-preview-tabs { display: inline-flex; gap: 2px; background: #f1f5f9; border-radius: 6px; padding: 2px; }
.lcp-li-preview-tab { border: none; background: transparent; font-size: .72rem; padding: .25rem .6rem; border-radius: 4px; cursor: pointer; color: var(--lcp-muted); font-family: inherit; }
.lcp-li-preview-tab.active { background: #fff; color: var(--lcp-blue); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lcp-li-preview-tab:hover:not(.active) { color: var(--lcp-text); }
/* Footer preview con reazioni e meta */
.lcp-li-footer { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; margin-top: .75rem; border-top: 1px solid #e2e8f0; font-size: .7rem; color: var(--lcp-muted); }
.lcp-li-reactions { display: flex; align-items: center; gap: .15rem; }
.lcp-li-react { font-size: .85rem; }
.lcp-li-react-count { margin-left: .25rem; font-weight: 500; }
/* Icona immagine cliccabile (cursor pointer) nella modale */
.lcp-image-preview img, .lcp-li-image img { cursor: zoom-in; }
/* Lightbox full-screen */
.lcp-lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.92); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lcp-lightbox-img-wrap { overflow: auto; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lcp-lightbox-img-wrap img { display: block; max-width: none; max-height: none; transition: transform .15s ease; transform-origin: center; }
.lcp-lightbox-toolbar { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; background: rgba(0,0,0,.5); border-radius: 8px; padding: .4rem; cursor: default; }
.lcp-lightbox-toolbar button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.lcp-lightbox-toolbar button:hover { background: rgba(255,255,255,.25); }
.lcp-lightbox-zoom-label { color: #fff; font-size: .8rem; padding: 0 .6rem; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.lcp-li-image { margin: .75rem -1rem 0; background: #f1f5f9; display: flex; justify-content: center; }
.lcp-li-image img { max-width: 100%; width: auto; height: auto; display: block; max-height: 520px; object-fit: contain; }
.lcp-li-hashtags a { color: var(--lcp-blue); text-decoration: none; font-weight: 500; }

/* ── Empty state ── */
/* CLAUDE.md §1.6.1 — empty state card bianca esplicita (ex fafbfc/dashed) */
.lcp-empty { padding: 2.5rem 1.5rem; text-align: center; background: #fff; border: 1px solid var(--lcp-border); border-radius: 12px; color: var(--lcp-text); }
/* Variante compatta per contesti ristretti (dentro card già esistente): card bianca + padding ridotto */
.lcp-empty-compact { padding: 1.25rem 1rem; text-align: center; background: #fff; border: 1px solid var(--lcp-border); border-radius: 8px; color: var(--lcp-muted); font-size: .85rem; margin: 0; }
.lcp-empty h3 { margin: 0 0 .5rem; color: var(--lcp-text); font-size: 1rem; font-weight: 600; }
.lcp-empty p { max-width: 460px; margin: 0 auto 1.1rem; font-size: .85rem; line-height: 1.5; }

/* ── Loading skeleton ── */
.lcp-skel { background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; border-radius: 4px; animation: lcpShim 1.2s infinite linear; height: 14px; }
@keyframes lcpShim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Filter chips ── */
.lcp-filter-row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.lcp-filter-btn { padding: .35rem .75rem; border: 1px solid var(--lcp-border); background: #fff; border-radius: 15px; font-size: .75rem; cursor: pointer; font-family: inherit; color: var(--lcp-muted); transition: all .12s; }
.lcp-filter-btn:hover { border-color: var(--lcp-blue); color: var(--lcp-blue); }
.lcp-filter-btn.active { background: var(--lcp-blue); border-color: var(--lcp-blue); color: #fff; }

/* ── Modal sizing ── */
.lcp-modal-xl .modal { max-width: 900px; width: 92vw; }
.lcp-modal-lg .modal { max-width: 640px; width: 92vw; }

/* ── Calendar drag & drop ── */
.lcp-cal-cell.drag-over { background: var(--lcp-blue-light); outline: 2px dashed var(--lcp-blue); outline-offset: -2px; }
.lcp-cal-post[draggable="true"] { cursor: grab; }
.lcp-cal-post[draggable="true"]:active { cursor: grabbing; }

/* ===================================================================
   ANALYTICS v2 — Daily Briefing (editorial data-report)
   Hero narrative headline · Single hero chart · Weekly heatmap ·
   Ranked topics as report chapters · Palette app-native
   =================================================================== */
:root {
  --anx2-ink: #0b1220;              /* inchiostro più profondo per contrasto */
  --anx2-hl: var(--lcp-blue);
  --anx2-mute: #475569;              /* muted più scuro per leggibilità su bianco */
  --anx2-line: #e2e8f0;
  --anx2-line-strong: #cbd5e1;       /* linee editoriali più marcate */
  --anx2-bg: #fff;
  --anx2-bg-subtle: #f8fafc;
  --anx2-hl-fade: var(--lcp-blue-light);
}

/* Wrapper bianco con elevazione — padding compatto */
#lcp-analytics-content {
  background: var(--anx2-bg);
  border: 1px solid var(--anx2-line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 12px 32px -16px rgba(15,23,42,.08);
  margin-top: .5rem;
}
@media (max-width: 720px) {
  #lcp-analytics-content { padding: 1rem .9rem 1.25rem; border-radius: 10px; }
}

.lcp-anx2-skeleton { display: flex; flex-direction: column; gap: 1.5rem; }
.lcp-anx2-skel-hero { height: 140px; background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: lcp-anx-shimmer 1.4s linear infinite; border-radius: 8px; }
.lcp-anx2-skel-chart { height: 240px; background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: lcp-anx-shimmer 1.4s linear infinite; border-radius: 8px; }

/* HERO narrativo — anchor memorabile */
.lcp-anx2-hero {
  padding: .25rem 0 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--anx2-ink);
  max-width: 920px;
}
.lcp-anx2-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'JetBrains Mono', monospace; font-size: .66rem;
  font-weight: 600; color: var(--anx2-hl); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .6rem;
}
.lcp-anx2-kicker-line { width: 32px; height: 2px; background: var(--anx2-hl); }
.lcp-anx2-headline {
  font-family: 'Poppins', sans-serif; font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.3;
  color: var(--anx2-ink); margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
.lcp-anx2-bignum {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 1.4em; color: var(--anx2-hl); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; display: inline-block;
  padding: 0 .12em; line-height: 1;
}
.lcp-anx2-bignum-sm { font-size: 1.1em; }

.lcp-anx2-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; font-size: .78rem; color: var(--anx2-mute); }
.lcp-anx2-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .55rem; border-radius: 999px; font-weight: 500;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
}
.lcp-anx2-pill.up { background: rgba(22,163,74,.08); color: #15803d; }
.lcp-anx2-pill.down { background: rgba(244,63,94,.08); color: var(--lcp-accent); }
.lcp-anx2-pill.flat { background: #f1f5f9; color: var(--anx2-mute); }
.lcp-anx2-pill-divider { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.lcp-anx2-pill-text strong { color: var(--anx2-ink); font-weight: 600; }

/* HERO chart — single full-width anchor, inset su fondo subtle per staccarlo */
.lcp-anx2-chart-hero {
  margin-bottom: 1.25rem;
  background: var(--anx2-bg-subtle);
  border: 1px solid var(--anx2-line);
  border-radius: 10px;
  padding: 1rem 1.15rem .75rem;
}
.lcp-anx2-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.lcp-anx2-section-title { font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--anx2-ink); margin: 0; position: relative; padding-left: 14px; }
.lcp-anx2-section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 14px; background: var(--anx2-hl); border-radius: 2px; }
.lcp-anx2-section-sub { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--anx2-mute); font-variant-numeric: tabular-nums; }
.lcp-anx2-legend { display: inline-flex; align-items: center; gap: 1rem; font-size: .72rem; color: var(--anx2-mute); }
.lcp-anx2-legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.lcp-anx2-legend-swatch { width: 14px; height: 10px; background: var(--anx2-hl); border-radius: 2px; }
.lcp-anx2-legend-line { background: transparent; border-top: 2px dashed var(--anx2-hl); opacity: .5; height: 2px; }
.lcp-anx2-svg { width: 100%; height: auto; display: block; }
.lcp-anx2-line-draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: lcp-anx2-draw 1.4s cubic-bezier(.4,.2,.2,1) forwards .25s; }
@keyframes lcp-anx2-draw { to { stroke-dashoffset: 0; } }
.lcp-anx2-pt { opacity: 0; transform-origin: center; transform: scale(0); }
.lcp-anx2-ready .lcp-anx2-pt { animation: lcp-anx2-pt-in .4s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(.8s + var(--idx, 0) * 80ms); }
.lcp-anx2-pt-group { --idx: 0; }
.lcp-anx2-pt-group:nth-child(1) { --idx: 0; } .lcp-anx2-pt-group:nth-child(2) { --idx: 1; }
.lcp-anx2-pt-group:nth-child(3) { --idx: 2; } .lcp-anx2-pt-group:nth-child(4) { --idx: 3; }
.lcp-anx2-pt-group:nth-child(5) { --idx: 4; } .lcp-anx2-pt-group:nth-child(6) { --idx: 5; }
.lcp-anx2-pt-label { opacity: 0; transition: opacity .2s; }
.lcp-anx2-pt-group:hover .lcp-anx2-pt-label { opacity: 1; }
@keyframes lcp-anx2-pt-in { to { opacity: 1; transform: scale(1); } }

/* Split: heatmap + ranking — contenitori bianchi con divider centrale */
.lcp-anx2-split-main {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--anx2-line);
  border-radius: 10px;
  overflow: hidden;
}
.lcp-anx2-heatmap-block, .lcp-anx2-ranking-block { padding: 1rem 1.15rem; }
.lcp-anx2-ranking-block { border-left: 1px solid var(--anx2-line); background: var(--anx2-bg-subtle); }
@media (max-width: 960px) {
  .lcp-anx2-ranking-block { border-left: none; border-top: 1px solid var(--anx2-line); }
}
@media (max-width: 960px) { .lcp-anx2-split-main { grid-template-columns: 1fr; gap: 2rem; } }

/* Heatmap ritmo settimanale */
.lcp-anx2-heatmap { display: grid; grid-template-columns: 40px 1fr; gap: .3rem .6rem; }
.lcp-anx2-heatmap-ylabels { display: flex; flex-direction: column; gap: 2px; }
.lcp-anx2-heatmap-ylabels span { flex: 1; display: flex; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--anx2-mute); letter-spacing: .04em; text-transform: uppercase; min-height: 32px; }
.lcp-anx2-heatmap-grid { display: flex; flex-direction: column; gap: 2px; }
.lcp-anx2-heatmap-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.lcp-anx2-heatmap-cell {
  min-height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: .75rem;
  font-weight: 700; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--anx2-hl) calc(var(--intensity) * 100%), #e6edf5);
  color: var(--anx2-ink);
  transform: scale(0); opacity: 0;
  transition: transform .3s cubic-bezier(.3,1.5,.5,1);
  transition-delay: calc(var(--idx, 0) * 15ms);
}
.lcp-anx2-ready .lcp-anx2-heatmap-cell { transform: scale(1); opacity: 1; }
.lcp-anx2-heatmap-cell[data-val="0"] { color: transparent; }
.lcp-anx2-heatmap-cell[style*="intensity:0."] { color: var(--anx2-ink); }
.lcp-anx2-heatmap-xlabels { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: .4rem; }
/* Heatmap 12 settimane (hero): celle più compatte, xlabels su 12 colonne */
.lcp-anx2-heatmap-12w .lcp-anx2-heatmap-cell { min-height: 28px; font-size: .7rem; }
.lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels { grid-template-columns: repeat(12, 1fr); }
.lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels span { font-size: .55rem; letter-spacing: 0; }
@media (max-width: 700px) {
  .lcp-anx2-heatmap-12w .lcp-anx2-heatmap-cell { min-height: 22px; font-size: .62rem; }
  .lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels span { display: none; }
  .lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels span:first-child,
  .lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels span:nth-child(6),
  .lcp-anx2-heatmap-12w .lcp-anx2-heatmap-xlabels span:last-child { display: block; }
}
/* Heatmap block in modalità hero (full-width card standalone) */
.lcp-anx2-heatmap-block.is-hero {
  background: #fff;
  border: 1px solid var(--anx2-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.lcp-anx2-ranking-block {
  /* Quando usato fuori dallo split (come card standalone) assume look coerente */
}
.lcp-anx2-split-main + .lcp-anx2-ranking-block,
section.lcp-anx2-ranking-block:not(.lcp-anx2-split-main > *) {
  background: #fff;
  border: 1px solid var(--anx2-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   OBIETTIVO SETTIMANALE — card hero con progress + mini timeline
   ============================================================ */
.lcp-anx2-week-goal {
  background: #fff;
  border: 1px solid var(--anx2-line);
  border-radius: 10px;
  padding: 1.25rem 1.35rem 1.1rem;
  margin-bottom: 1.25rem;
}
.lcp-anx2-week-goal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; margin-bottom: 1rem;
}
.lcp-anx2-week-goal-metric {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1;
}
.lcp-anx2-week-goal-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.1rem; font-weight: 700;
  color: var(--lcp-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.lcp-anx2-week-goal-num strong { color: var(--lcp-blue); font-weight: 800; }
.lcp-anx2-week-goal-sep { margin: 0 .15rem; color: #cbd5e1; font-weight: 400; }
.lcp-anx2-week-goal-lbl {
  font-size: .7rem; color: var(--lcp-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: .3rem; font-weight: 600;
}
.lcp-anx2-week-progress { margin-bottom: 1.1rem; }
.lcp-anx2-week-progress-track {
  position: relative;
  height: 8px; background: #f1f5f9;
  border-radius: 6px; overflow: hidden;
  margin-bottom: .5rem;
}
.lcp-anx2-week-progress-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  border-radius: 6px;
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.lcp-anx2-week-progress-fill.done { background: linear-gradient(90deg, var(--lcp-blue) 0%, #16a34a 100%); z-index: 2; }
.lcp-anx2-week-progress-fill.planned { background: #dbeafe; z-index: 1; }
.lcp-anx2-week-progress-hint {
  margin: 0; font-size: .78rem; color: var(--lcp-muted);
}
.lcp-anx2-week-progress-hint strong { color: var(--lcp-text); font-weight: 600; }

.lcp-anx2-week-days {
  list-style: none; margin: 0 0 .85rem; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
}
.lcp-anx2-week-day {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--anx2-line);
  border-radius: 8px;
  padding: .65rem .35rem .55rem;
  text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.lcp-anx2-week-day.is-today { border-color: var(--lcp-blue); box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.12); }
.lcp-anx2-week-day.is-future { opacity: .85; }
.lcp-anx2-week-day-name {
  display: block;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lcp-muted); font-weight: 600; margin-bottom: .2rem;
}
.lcp-anx2-week-day-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem; font-weight: 700;
  color: var(--lcp-text); font-variant-numeric: tabular-nums;
  line-height: 1; margin-bottom: .45rem;
}
.lcp-anx2-week-day-dot {
  display: block; width: 8px; height: 8px;
  border-radius: 50%; background: #e2e8f0;
  margin: 0 auto;
}
.lcp-anx2-week-day.published .lcp-anx2-week-day-dot { background: #16a34a; }
.lcp-anx2-week-day.scheduled .lcp-anx2-week-day-dot { background: #f59e0b; }
.lcp-anx2-week-day.approved .lcp-anx2-week-day-dot { background: #0ea5e9; }
.lcp-anx2-week-day.draft .lcp-anx2-week-day-dot { background: #94a3b8; }
.lcp-anx2-week-day.published { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.3); }
.lcp-anx2-week-day.scheduled { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); }
.lcp-anx2-week-day.approved  { background: rgba(14, 165, 233, 0.08); border-color: rgba(14, 165, 233, 0.3); }
.lcp-anx2-week-day-count {
  position: absolute; top: 4px; right: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: .6rem;
  font-weight: 700; color: #fff;
  background: var(--lcp-blue-dark);
  border-radius: 10px; padding: 1px 5px;
  line-height: 1.2;
}
.lcp-anx2-week-legend {
  display: flex; flex-wrap: wrap; gap: .9rem;
  padding-top: .6rem; border-top: 1px solid var(--anx2-line);
  font-size: .72rem; color: var(--lcp-muted);
}
.lcp-anx2-week-leg-item { display: inline-flex; align-items: center; gap: .35rem; }
.lcp-anx2-week-leg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lcp-anx2-week-leg-dot.published { background: #16a34a; }
.lcp-anx2-week-leg-dot.scheduled { background: #f59e0b; }
.lcp-anx2-week-leg-dot.approved  { background: #0ea5e9; }
.lcp-anx2-week-leg-dot.draft     { background: #94a3b8; }

@media (max-width: 700px) {
  .lcp-anx2-week-goal-head { flex-direction: column; gap: .5rem; }
  .lcp-anx2-week-goal-metric { align-items: flex-start; }
  .lcp-anx2-week-days { gap: .25rem; }
  .lcp-anx2-week-day { padding: .5rem .2rem .4rem; }
  .lcp-anx2-week-day-num { font-size: .95rem; }
  .lcp-anx2-week-day-count { font-size: .5rem; padding: 0 3px; }
}
.lcp-anx2-heatmap-xlabels span { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--anx2-mute); letter-spacing: .04em; }

/* Ranking argomenti — numeri come capitoli */
.lcp-anx2-ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.lcp-anx2-rank-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--anx2-line);
  opacity: 0; transform: translateY(6px);
  animation: lcp-anx2-row-in .5s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms + .2s);
}
.lcp-anx2-rank-row:last-child { border-bottom: none; }
.lcp-anx2-rank-num {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.7rem; color: var(--anx2-hl); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  opacity: .85;
}
.lcp-anx2-rank-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.lcp-anx2-rank-label { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; color: var(--anx2-ink); letter-spacing: -.01em; text-transform: capitalize; }
.lcp-anx2-rank-meta { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--anx2-mute); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lcp-anx2-rank-count { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 600; color: var(--anx2-mute); font-variant-numeric: tabular-nums; }
@keyframes lcp-anx2-row-in { to { opacity: 1; transform: none; } }

/* Crop tool — pill radio per scelta aspect ratio */
.lcp-crop-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; font-size: .78rem; font-weight: 500;
  background: #f1f5f9; color: #475569;
  border: 1px solid var(--lcp-border, #e2e8f0); border-radius: 999px;
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
  user-select: none;
}
.lcp-crop-pill:hover { background: #e2e8f0; color: var(--lcp-text, #0f172a); }
.lcp-crop-pill input[type="radio"] { margin: 0; width: 14px; height: 14px; accent-color: var(--lcp-blue, #0a66c2); cursor: pointer; }
.lcp-crop-pill:has(input[type="radio"]:checked) {
  background: var(--lcp-blue, #0a66c2); color: #fff; border-color: var(--lcp-blue, #0a66c2);
}
.lcp-crop-pill:has(input[type="radio"]:checked) input[type="radio"] { accent-color: #fff; }

/* Banner Estensione LinkedIn (Analytics — empty state CTA) */
.lcp-ext-banner {
  margin: 0 0 1rem; padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.lcp-ext-banner[data-variant="danger"] { border-left-color: #dc2626; }
.lcp-ext-banner-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #fef3c7; color: #b45309;
  border-radius: 10px;
}
.lcp-ext-banner[data-variant="danger"] .lcp-ext-banner-icon { background: #fee2e2; color: #b91c1c; }
.lcp-ext-banner-body { flex: 1; min-width: 0; }
.lcp-ext-banner-title {
  margin: 0 0 .25rem; font-size: .95rem; font-weight: 600;
  color: var(--text, #0f172a);
}
.lcp-ext-banner-desc {
  margin: 0; font-size: .82rem; line-height: 1.45;
  color: var(--muted, #64748b);
}
.lcp-ext-banner-cta { flex-shrink: 0; }
@media (max-width: 720px) {
  .lcp-ext-banner { flex-direction: column; align-items: flex-start; }
  .lcp-ext-banner-cta { width: 100%; }
  .lcp-ext-banner-cta .lcp-btn { width: 100%; }
}

/* Engagement — strip con wrapper bianco */
.lcp-anx2-engage {
  margin-bottom: 1.25rem; padding: 1rem 1.15rem;
  background: #fff; border: 1px solid var(--anx2-line); border-radius: 10px;
}
.lcp-anx2-engage-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: .75rem -1.15rem 1rem; padding: .9rem 0;
  border-top: 1px solid var(--anx2-line); border-bottom: 1px solid var(--anx2-line);
  background: var(--anx2-bg-subtle);
}
.lcp-anx2-engage-metric { padding: 0 1.15rem; }
.lcp-anx2-engage-metric + .lcp-anx2-engage-metric { border-left: 1px solid var(--anx2-line); }
.lcp-anx2-engage-metric { display: flex; flex-direction: column; gap: .4rem; }
.lcp-anx2-engage-ic { color: var(--anx2-mute); line-height: 0; }
.lcp-anx2-engage-num { font-family: 'JetBrains Mono', monospace; font-size: 1.75rem; font-weight: 700; color: var(--anx2-ink); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-anx2-engage-lbl { font-size: .68rem; color: var(--anx2-mute); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.lcp-anx2-note { padding: .75rem 1rem; background: var(--anx2-hl-fade); border-left: 2px solid var(--anx2-hl); font-size: .78rem; color: var(--lcp-blue-dark); margin: 0 0 1rem; }
.lcp-anx2-empty { color: var(--anx2-mute); font-size: .85rem; font-style: italic; }

.lcp-anx2-post-list { list-style: none; margin: 0; padding: 0; }
.lcp-anx2-post-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.25rem; align-items: center; padding: .85rem 0;
  border-bottom: 1px solid var(--anx2-line); cursor: pointer;
  transition: padding-left .2s, background .15s;
  opacity: 0; transform: translateY(4px);
  animation: lcp-anx2-row-in .4s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms + .3s);
}
.lcp-anx2-post-row:hover { padding-left: .75rem; background: var(--lcp-hover); }
.lcp-anx2-post-num { font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 600; color: var(--anx2-mute); letter-spacing: .06em; font-variant-numeric: tabular-nums; padding-top: 2px; }
.lcp-anx2-post-body { min-width: 0; }
.lcp-anx2-post-hook { font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 500; color: var(--anx2-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-anx2-post-meta { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--anx2-mute); margin-top: .25rem; letter-spacing: .04em; }
.lcp-anx2-post-metrics { display: flex; gap: 1rem; flex: 0 0 auto; }
.lcp-anx2-post-metrics span { display: inline-flex; align-items: center; gap: .3rem; font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--anx2-mute); font-variant-numeric: tabular-nums; }
.lcp-anx2-post-metrics svg { color: var(--anx2-mute); }
/* Bottone icona "Apri su LinkedIn" nelle card post (libreria, dashboard).
   Stile coerente con il logo brand LinkedIn (#0a66c2) per riconoscibilità. */
.lcp-btn.lcp-btn-linkedin {
  background: #fff;
  color: #0a66c2;
  border: 1px solid #b3d4f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.lcp-btn.lcp-btn-linkedin:hover {
  background: #e7f0fa;
  border-color: #0a66c2;
  color: #084d8e;
}
.lcp-btn.lcp-btn-linkedin svg { color: #0a66c2; }

/* Tag inline 'Senza URN' nella hook line del post (Reazioni raccolte).
   Indica visivamente i post per cui le metriche non possono essere
   sincronizzate (URN LinkedIn non collegato). */
.lcp-post-urn-tag {
  display: inline-flex;
  align-items: center;
  margin-left: .4rem;
  padding: 1px 7px;
  background: #fef3c7;
  color: #854d0e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  cursor: help;
}
/* Hover sulla riga senza URN: colore di sfondo leggermente caldo per
   distinguere dai post 'sani' nella lista. */
.lcp-anx2-post-row.lcp-no-urn { background: #fffbeb40; }
.lcp-anx2-post-row.lcp-no-urn:hover { background: #fef3c7; }

/* Footer strip: budget + hashtags — contenitore bianco con split */
.lcp-anx2-footer-strip {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 0;
  background: #fff; border: 1px solid var(--anx2-line); border-radius: 10px;
  overflow: hidden;
}
.lcp-anx2-budget-side { padding: 1rem 1.15rem; background: var(--anx2-bg-subtle); border-right: 1px solid var(--anx2-line); }
.lcp-anx2-hash-side { padding: 1rem 1.15rem; }
@media (max-width: 860px) {
  .lcp-anx2-budget-side { border-right: none; border-bottom: 1px solid var(--anx2-line); }
}
@media (max-width: 860px) { .lcp-anx2-footer-strip { grid-template-columns: 1fr; } }
.lcp-anx2-footer-kicker { display: block; font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 600; color: var(--anx2-mute); letter-spacing: .15em; text-transform: uppercase; margin-bottom: .75rem; }
.lcp-anx2-budget-main { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.lcp-anx2-budget-used { font-family: 'JetBrains Mono', monospace; font-size: 1.75rem; font-weight: 700; color: var(--anx2-ink); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-anx2-budget-of { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--anx2-mute); font-variant-numeric: tabular-nums; }
.lcp-anx2-budget-bar { height: 4px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.lcp-anx2-budget-bar span { display: block; height: 100%; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1) .2s; border-radius: 2px; }
.lcp-anx2-ready .lcp-anx2-budget-bar span { width: var(--target-w); }
.lcp-anx2-budget-bar.ok span { background: var(--anx-published); }
.lcp-anx2-budget-bar.warn span { background: #f59e0b; }
.lcp-anx2-budget-bar.critical span { background: var(--lcp-accent); }
.lcp-anx2-budget-foot { display: block; font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--anx2-mute); margin-top: .5rem; font-variant-numeric: tabular-nums; }

.lcp-anx2-hashtags { display: flex; flex-wrap: wrap; gap: .4rem; }
.lcp-anx2-hash {
  display: inline-flex; align-items: baseline; gap: .3rem;
  padding: .3rem .6rem .3rem .7rem; background: var(--anx2-hl-fade);
  border-radius: 999px; font-size: .78rem; color: var(--lcp-blue-dark);
  font-weight: 500;
  opacity: 0; transform: translateY(4px);
  animation: lcp-anx2-row-in .4s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 30ms + .4s);
  transition: background .15s;
}
.lcp-anx2-hash:hover { background: var(--anx2-hl); color: #fff; }
.lcp-anx2-hash em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; color: var(--anx2-hl); background: #fff; padding: 1px 6px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.lcp-anx2-hash:hover em { color: var(--anx2-hl); }

/* ===================================================================
   ANALYTICS v1 (vecchio) — rimosso, mantenuto solo anti-card overuse
   (fallback selectors legacy) */
.lcp-anx-skel-strip, .lcp-anx-skel-row { background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: lcp-anx-shimmer 1.4s linear infinite; border-radius: 8px; }
.lcp-anx-skel-strip { height: 76px; }
.lcp-anx-skel-row { height: 160px; }
@keyframes lcp-anx-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes lcp-anx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); } 50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); } }

/* ===================================================================
   ANALYTICS — Dashboard Cockpit (density 4, motion 6, variance 8)
   Anti-card overuse · Mono per i numeri · SVG outline 1.5px
   =================================================================== */
:root {
  --anx-draft: #94a3b8;
  --anx-approved: #0ea5e9;
  --anx-scheduled: #8b5cf6;
  --anx-published: #16a34a;
}

/* Skeleton proporzionato */
.lcp-anx-skeleton { display: flex; flex-direction: column; gap: 1.5rem; }
.lcp-anx-skel-strip { height: 76px; background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: lcp-anx-shimmer 1.4s linear infinite; border-radius: 8px; }
.lcp-anx-skel-row { height: 160px; background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: lcp-anx-shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes lcp-anx-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* KPI strip — niente card-boxes, divider verticali */
.lcp-anx-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 2rem; border-top: 1px solid var(--lcp-border); border-bottom: 1px solid var(--lcp-border); }
.lcp-anx-kpi { padding: 1.1rem 1.25rem; position: relative; display: flex; flex-direction: column; gap: .4rem; }
.lcp-anx-kpi + .lcp-anx-kpi { border-left: 1px solid var(--lcp-border); }
.lcp-anx-kpi-label { font-size: .68rem; font-weight: 600; color: var(--lcp-muted); letter-spacing: .1em; text-transform: uppercase; }
.lcp-anx-kpi-value { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 1.5rem; font-weight: 600; color: var(--lcp-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.lcp-anx-kpi-value[data-trend="up"] { color: #16a34a; }

/* Block (logic-group con header, senza wrapper card) */
.lcp-anx-block { padding-top: 1.75rem; margin-bottom: 2rem; border-top: 1px solid var(--lcp-border); }
.lcp-anx-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.lcp-anx-block-title { font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lcp-text); margin: 0; }
.lcp-anx-block-sub { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; }
.lcp-anx-block-actions { display: flex; gap: .4rem; }
/* CLAUDE.md §1.6.1 — card bianca, no italic (antipattern §1.6.1) */
.lcp-anx-empty { background: #fff; border: 1px solid var(--lcp-border); border-radius: 10px; padding: 2rem 1.5rem; text-align: center; color: var(--lcp-muted); font-size: .85rem; }
.lcp-anx-note { padding: .6rem .8rem; background: var(--lcp-blue-light); border-left: 2px solid var(--lcp-blue); font-size: .75rem; color: var(--lcp-blue-dark); margin: 0 0 1rem; }

/* Dots status (colori unificati via var) */
.lcp-anx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.lcp-anx-dot.status-draft { background: var(--anx-draft); }
.lcp-anx-dot.status-approved { background: var(--anx-approved); }
.lcp-anx-dot.status-scheduled { background: var(--anx-scheduled); }
.lcp-anx-dot.status-published { background: var(--anx-published); animation: lcp-anx-pulse 2.4s ease-in-out infinite; }
@keyframes lcp-anx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); } 50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); } }

/* Pipeline stacked bar (ANCHOR visivo) */
.lcp-anx-pipeline { display: flex; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; background: #f1f5f9; margin-bottom: 1rem; }
.lcp-anx-pipe-seg { height: 100%; width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1) .15s; }
.lcp-anx-ready .lcp-anx-pipe-seg { width: var(--target-w); }
.lcp-anx-pipe-seg.status-draft { background: var(--anx-draft); }
.lcp-anx-pipe-seg.status-approved { background: var(--anx-approved); }
.lcp-anx-pipe-seg.status-scheduled { background: var(--anx-scheduled); }
.lcp-anx-pipe-seg.status-published { background: var(--anx-published); }
.lcp-anx-pipe-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: .25rem 0 1rem; border-bottom: 1px dashed var(--lcp-border); }
.lcp-anx-pipe-legend-item { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; }
.lcp-anx-pipe-legend-label { color: var(--lcp-muted); }
.lcp-anx-pipe-legend-count { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--lcp-text); font-variant-numeric: tabular-nums; }

/* Publishing mode inline */
.lcp-anx-publishing { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.lcp-anx-pub-item { display: inline-flex; flex-direction: column; gap: .1rem; }
.lcp-anx-pub-val { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 600; color: var(--lcp-blue); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-anx-pub-lbl { font-size: .7rem; color: var(--lcp-muted); letter-spacing: .02em; }
.lcp-anx-pub-sep { width: 1px; height: 32px; background: var(--lcp-border); }
.lcp-anx-pub-mode { margin-left: auto; font-size: .75rem; color: var(--lcp-muted); }
.lcp-anx-pub-mode strong { color: var(--lcp-text); font-weight: 600; }

/* Chart timeline (asymmetric grid 8fr, barre animate) */
.lcp-anx-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 1.25rem; align-items: end; padding-top: 1rem; min-height: 170px; }
.lcp-anx-bar-col { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.lcp-anx-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.lcp-anx-bar { position: relative; width: 14px; height: 0; border-radius: 2px 2px 0 0; transition: height .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--idx) * 60ms); overflow: hidden; }
.lcp-anx-ready .lcp-anx-bar { height: var(--target-h); }
.lcp-anx-bar em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--lcp-muted); opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.lcp-anx-bar:hover em { opacity: 1; }
.lcp-anx-bar-created { background: var(--lcp-blue-light); box-shadow: inset 0 0 0 1.5px var(--lcp-blue); }
.lcp-anx-bar-published { background: var(--anx-published); }
.lcp-anx-bar-label { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--lcp-muted); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.lcp-anx-legend-inline { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; color: var(--lcp-muted); }

/* Split blocks 2fr 1fr */
.lcp-anx-split { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .lcp-anx-split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Categorie list (no boxes) */
.lcp-anx-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lcp-anx-cat-row { display: grid; grid-template-columns: 1fr 3fr auto; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--lcp-border); opacity: 0; transform: translateY(4px); animation: lcp-anx-row-in .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--idx, 0) * 50ms); }
.lcp-anx-cat-row:last-child { border-bottom: none; }
.lcp-anx-cat-name { font-size: .82rem; color: var(--lcp-text); font-weight: 500; text-transform: capitalize; }
.lcp-anx-cat-bar { display: block; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.lcp-anx-cat-bar span { display: block; height: 100%; width: 0; background: var(--lcp-blue); transition: width .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--idx, 0) * 50ms + 150ms); border-radius: 3px; }
.lcp-anx-ready .lcp-anx-cat-bar span { width: var(--target-w); }
.lcp-anx-cat-count { font-family: 'JetBrains Mono', monospace; font-size: .82rem; font-weight: 600; color: var(--lcp-text); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
@keyframes lcp-anx-row-in { to { opacity: 1; transform: none; } }

/* Budget AI (no card) */
.lcp-anx-budget { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .75rem; }
.lcp-anx-budget-val { font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 600; color: var(--lcp-text); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-anx-budget-cap { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; }
.lcp-anx-budget-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.lcp-anx-budget-bar span { display: block; height: 100%; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1) .2s; border-radius: 4px; }
.lcp-anx-ready .lcp-anx-budget-bar span { width: var(--target-w); }
.lcp-anx-budget-bar.ok span { background: var(--anx-published); }
.lcp-anx-budget-bar.warn span { background: #f59e0b; }
.lcp-anx-budget-bar.critical span { background: var(--lcp-accent); }
.lcp-anx-budget-meta { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .72rem; color: var(--lcp-muted); font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* Hashtags kinetic-ish — strip orizzontale con wrap, nessun card */
.lcp-anx-hashtags { display: flex; flex-wrap: wrap; gap: .4rem; }
.lcp-anx-hash { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem .3rem .7rem; background: #fff; border: 1px solid var(--lcp-border); border-radius: 999px; font-size: .78rem; opacity: 0; transform: translateY(4px); animation: lcp-anx-row-in .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--idx, 0) * 35ms); transition: border-color .15s, box-shadow .15s; }
.lcp-anx-hash:hover { border-color: var(--lcp-blue); box-shadow: 0 2px 8px -3px rgba(10,102,194,.25); }
.lcp-anx-hash-tag { color: var(--lcp-blue); font-weight: 600; }
.lcp-anx-hash-count { font-family: 'JetBrains Mono', monospace; font-size: .65rem; font-weight: 600; background: var(--lcp-blue); color: #fff; padding: 1px 7px; border-radius: 10px; font-variant-numeric: tabular-nums; }

/* Engagement totali — strip con divider, niente card */
.lcp-anx-engage-totals { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lcp-border); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.lcp-anx-engage-cell { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; position: relative; }
.lcp-anx-engage-cell + .lcp-anx-engage-cell { border-left: 1px solid var(--lcp-border); }
.lcp-anx-engage-ic { color: var(--lcp-muted); margin-bottom: .15rem; line-height: 0; }
.lcp-anx-engage-num { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 600; color: var(--lcp-text); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lcp-anx-engage-lbl { font-size: .68rem; color: var(--lcp-muted); letter-spacing: .06em; text-transform: uppercase; }

/* Lista post engagement — rows con divider (no card) */
.lcp-anx-post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lcp-border); }
.lcp-anx-post-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--lcp-border); cursor: pointer; transition: padding-left .2s; opacity: 0; transform: translateY(4px); animation: lcp-anx-row-in .4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--idx, 0) * 40ms); }
.lcp-anx-post-row:hover { padding-left: .5rem; background: var(--lcp-hover); }
.lcp-anx-post-body { flex: 1; min-width: 0; }
.lcp-anx-post-hook { font-size: .88rem; color: var(--lcp-text); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-anx-post-meta { font-size: .7rem; color: var(--lcp-muted); margin-top: .25rem; }
.lcp-anx-post-metrics { display: flex; gap: 1rem; flex: 0 0 auto; }
.lcp-anx-metric { display: inline-flex; align-items: center; gap: .3rem; font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; }
.lcp-anx-metric svg { color: var(--lcp-muted); }

/* ===================================================================
   LIBRERIA POST — Operational Editorial (palette & type app-native)
   =================================================================== */
.lcp-posts-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lcp-posts-count { font-size: .78rem; color: var(--lcp-muted); }
.lcp-posts-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.lcp-posts-filters .lcp-filter-btn { display: inline-flex; align-items: center; gap: .35rem; }
.lcp-filter-count { font-family: 'JetBrains Mono', monospace; font-size: .68rem; padding: 1px 6px; border-radius: 8px; background: rgba(15,23,42,.06); color: var(--lcp-muted); font-weight: 500; min-width: 18px; text-align: center; }
.lcp-filter-btn.active .lcp-filter-count { background: rgba(255,255,255,.25); color: #fff; }
.lcp-filter-btn.status-unscheduled::before,
.lcp-filter-btn.status-draft::before,
.lcp-filter-btn.status-approved::before,
.lcp-filter-btn.status-scheduled::before,
.lcp-filter-btn.status-published::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px;
}
.lcp-filter-btn.status-unscheduled::before { background: #c026d3; }
.lcp-filter-btn.status-draft::before { background: #94a3b8; }
.lcp-filter-btn.status-approved::before { background: #0ea5e9; }
.lcp-filter-btn.status-scheduled::before { background: #8b5cf6; }
.lcp-filter-btn.status-published::before { background: #16a34a; }

/* Bulk action bar — barra dedicata, non compete con i filtri */
.lcp-bulk-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; background: var(--lcp-blue-light); border: 1px solid var(--lcp-blue); border-radius: 8px; margin-bottom: 1rem; }
.lcp-bulk-bar-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lcp-blue-dark); margin-right: .25rem; }

/* Date-stamp mono — anchor tipografico coerente tra grid/timeline */
.lcp-date-stamp { display: inline-flex; align-items: baseline; gap: .3rem; font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .04em; color: var(--lcp-muted); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lcp-date-stamp-dow { color: var(--lcp-blue); font-weight: 600; }
.lcp-date-stamp-day { font-weight: 700; color: var(--lcp-text); font-size: .78rem; }
.lcp-date-stamp-mon { color: var(--lcp-muted); }
.lcp-date-stamp-sep { color: #cbd5e1; }
.lcp-date-stamp-time { font-weight: 500; color: var(--lcp-text); }
.lcp-date-stamp-empty{ color: #cbd5e1; letter-spacing: .1em; font-weight: 600; }

/* Card post — hierarchy refinement */
.lcp-post-card { display: flex; flex-direction: column; background: var(--lcp-card-bg); border: 1px solid var(--lcp-border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lcp-post-card:hover { border-color: var(--lcp-blue); box-shadow: 0 6px 18px -8px rgba(10,102,194,.25); transform: translateY(-1px); }
.lcp-post-card-image { position: relative; }
.lcp-post-card-status-overlay { position: absolute; top: .55rem; left: .55rem; padding: .2rem .55rem; font-size: .65rem; font-weight: 600; letter-spacing: .03em; border-radius: 10px; backdrop-filter: blur(4px); }

/* Checkbox selezione post (per Quality Check massivo) */
.lcp-post-card-select {
  position: absolute; top: .5rem; right: .5rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s;
  z-index: 2;
}
.lcp-post-card-select:hover { background: #fff; border-color: var(--lcp-blue, #0a66c2); transform: scale(1.05); }
.lcp-post-card-select input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--lcp-blue, #0a66c2); margin: 0; }
.lcp-post-card.is-selected { border-color: var(--lcp-blue, #0a66c2); box-shadow: 0 0 0 2px rgba(10, 102, 194, .15); }
.lcp-post-card.is-selected .lcp-post-card-select { background: var(--lcp-blue, #0a66c2); border-color: var(--lcp-blue, #0a66c2); }
.lcp-post-card.is-selected .lcp-post-card-select input[type="checkbox"] { accent-color: #fff; }
.lcp-post-card-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lcp-post-card-hook { font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--lcp-text); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; border-top: 1px dashed var(--lcp-border); }
.lcp-post-card-count { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--lcp-muted); letter-spacing: .02em; }

/* Griglia raggruppata per settimana — header editoriale + separatore */
.lcp-weekly-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.lcp-week-row { display: flex; flex-direction: column; gap: .75rem; }
.lcp-week-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0 0 .55rem;
  border-bottom: 1px solid var(--lcp-border);
  position: relative;
}
.lcp-week-head::before {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 36px; height: 2px; background: var(--lcp-blue);
}
.lcp-week-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  font-weight: 700; color: #0b1220; letter-spacing: .12em;
  text-transform: uppercase;
}
.lcp-week-meta {
  font-family: 'JetBrains Mono', monospace; font-size: .66rem;
  color: #64748b; letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
/* Dentro la week row: layout responsive con WRAP — niente scroll orizzontale.
 * Auto-fill di colonne min 240px max 1fr: con 1-2 post fa righe singole, con
 * 3+ post va a capo. Su desktop ampi entrano 4-5 post per riga, su tablet 2-3,
 * su mobile 1 per riga. */
.lcp-week-row .lcp-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: .4rem;
}
.lcp-week-row .lcp-post-grid > .lcp-post-card {
  width: 100%;
  min-width: 0;
}

/* Timeline vista libreria post */
.lcp-timeline { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 1rem; position: relative; }
.lcp-timeline-week { position: relative; }
.lcp-timeline-week-label { font-family: 'Poppins', sans-serif; font-size: .7rem; font-weight: 700; color: var(--lcp-muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; padding-bottom: .45rem; border-bottom: 1px solid var(--lcp-border); display: flex; align-items: center; gap: .5rem; }
.lcp-timeline-week-label::after { content: ''; flex: 1; }
.lcp-timeline-items { display: flex; flex-direction: column; gap: .5rem; position: relative; padding-left: 1rem; }
.lcp-timeline-items::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; background: var(--lcp-border); }
.lcp-timeline-item { display: flex; align-items: flex-start; gap: 1rem; padding: .8rem 1rem; background: var(--lcp-card-bg); border: 1px solid var(--lcp-border); border-radius: 8px; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; position: relative; }
.lcp-timeline-item:hover { border-color: var(--lcp-blue); box-shadow: 0 4px 10px -4px rgba(10,102,194,.2); transform: translateX(2px); }
.lcp-timeline-dot { position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; border: 2px solid var(--lcp-card-bg); box-sizing: content-box; }
.lcp-timeline-item.unscheduled .lcp-timeline-dot { background: #c026d3; }
.lcp-timeline-item.draft .lcp-timeline-dot { background: #94a3b8; }
.lcp-timeline-item.approved .lcp-timeline-dot { background: #0ea5e9; }
.lcp-timeline-item.scheduled .lcp-timeline-dot { background: #8b5cf6; }
.lcp-timeline-item.published .lcp-timeline-dot { background: #16a34a; }
.lcp-timeline-time { flex: 0 0 auto; min-width: 120px; }
.lcp-timeline-body { flex: 1; min-width: 0; }
.lcp-timeline-hook { font-family: 'Poppins', sans-serif; font-size: .9rem; color: var(--lcp-text); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .35rem; }
.lcp-timeline-meta { display: flex; gap: .4rem; font-size: .7rem; }

/* Post pubblicati o pseudo-pubblicati nel calendario: cursore default (non trascinabile) */
.lcp-cal-post.is-frozen { cursor: pointer; opacity: .85; }
.lcp-cal-post.is-frozen:hover { opacity: 1; }

/* Pallino verde sui giorni del piano attivo (solo marker accanto al numero) */
.lcp-cal-plan-dot {
  display: inline-block; width: 6px; height: 6px; background: #16a34a;
  border-radius: 50%; margin-left: 4px; vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(22,163,74,.15);
}

/* ── Libreria Immagini ── */
.lcp-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.lcp-img-tile { background: #fff; border: 1px solid var(--lcp-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0; transition: transform .12s, box-shadow .12s; }
.lcp-img-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px -8px rgba(15,23,42,.15); }
.lcp-img-tile.orphan { border-style: dashed; border-color: #cbd5e1; background: #fafbfc; }
.lcp-img-tile.current { border-color: var(--lcp-blue); box-shadow: 0 0 0 1px var(--lcp-blue); }
.lcp-img-tile-img { aspect-ratio: 1.91; background: linear-gradient(135deg,#f1f5f9,#e2e8f0); position: relative; overflow: hidden; cursor: zoom-in; }
.lcp-img-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcp-img-tile-badge { position: absolute; top: .5rem; left: .5rem; background: var(--lcp-blue); color: #fff; font-size: .65rem; font-weight: 600; padding: .2rem .5rem; border-radius: 10px; letter-spacing: .04em; text-transform: uppercase; }
.lcp-img-tile-badge-orphan { background: #94a3b8; top: .5rem; right: .5rem; left: auto; }
.lcp-img-tile-body { padding: .75rem .9rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.lcp-img-tile-meta { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .72rem; }
.lcp-img-tile-link { display: flex; flex-direction: column; gap: .15rem; }
.lcp-img-tile-link strong { font-size: .78rem; color: var(--lcp-text); }
.lcp-img-tile-hook { font-size: .78rem; color: var(--lcp-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-img-tile-orphan-tag { font-size: .65rem; padding: 2px 8px; border-radius: 10px; background: #f1f5f9; color: #64748b; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.lcp-img-tile-footer { display: flex; justify-content: space-between; font-size: .68rem; color: var(--lcp-muted); border-top: 1px dashed var(--lcp-border); padding-top: .45rem; margin-top: auto; }
.lcp-img-tile-actions { display: flex; gap: .3rem; margin-top: .25rem; }

/* ===================================================================
   EDITOR v2 — Dashboard Editorial (scope: modale post editor)
   Allineato all'app: Poppins titoli, Mulish body, JetBrains Mono per
   numerazione di sezione. Unico accent: LinkedIn blue. Fondo bianco.
   =================================================================== */

.lcp-editor-v2.modal-backdrop { background: rgba(15,23,42,.55); backdrop-filter: blur(4px); padding: 2rem; }
.lcp-editor-v2 .modal.lcp-editor-modal {
  max-width: 1320px; width: 96vw; max-height: 92vh;
  background: #fff; border-radius: 12px;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,.25), 0 10px 30px -10px rgba(15,23,42,.12);
  animation: lcpEditorIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes lcpEditorIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Header */
.lcp-editor-v2 .lcp-pe-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.6rem 2rem 1.25rem 2.2rem;
  border-bottom: 1px solid var(--lcp-border); position: relative; background: #fff;
}
.lcp-editor-v2 .lcp-pe-header::before {
  content: ''; position: absolute; left: 0; top: 1.6rem; bottom: 1.25rem;
  width: 3px; background: var(--lcp-blue); border-radius: 0 2px 2px 0;
}
.lcp-editor-v2 .lcp-pe-header-left { flex: 1; min-width: 0; }
.lcp-editor-v2 .lcp-pe-kicker {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--lcp-blue); font-weight: 700; font-variant-numeric: tabular-nums;
}
.lcp-editor-v2 .lcp-pe-title {
  font-family: 'Poppins', 'Mulish', sans-serif; font-weight: 600;
  font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.35;
  color: var(--lcp-text); margin: .25rem 0 .5rem; max-width: 820px;
  letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.lcp-editor-v2 .lcp-pe-meta {
  display: flex; gap: .55rem; align-items: center; flex-wrap: wrap;
  font-size: .78rem; color: var(--lcp-muted);
}
.lcp-editor-v2 .lcp-pe-meta-dot { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.lcp-editor-v2 .lcp-pe-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--lcp-border); background: #fff; color: var(--lcp-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 40px; transition: all .15s;
}
.lcp-editor-v2 .lcp-pe-close:hover { background: var(--lcp-blue-light); color: var(--lcp-blue); border-color: var(--lcp-blue); transform: rotate(90deg); }

/* Body layout: main + sticky rail */
.lcp-editor-v2 .lcp-pe-body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  overflow: hidden; min-height: 0;
}
.lcp-editor-v2 .lcp-pe-main {
  overflow-y: auto; padding: 1.75rem 2.2rem 2rem; min-width: 0;
  display: flex; flex-direction: column; gap: 2.25rem;
  scrollbar-gutter: stable; background: #fff;
}
.lcp-editor-v2 .lcp-pe-main::-webkit-scrollbar { width: 8px; }
.lcp-editor-v2 .lcp-pe-main::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.lcp-editor-v2 .lcp-pe-section + .lcp-pe-section { border-top: 1px solid var(--lcp-border); padding-top: 2rem; }
.lcp-editor-v2 .lcp-pe-section-head {
  display: flex; align-items: baseline; gap: .85rem;
  margin: 0 0 1rem; padding: 0; width: 100%; text-align: left;
  background: none; border: none; font-family: inherit;
}
.lcp-editor-v2 .lcp-pe-section-toggle { cursor: pointer; }
.lcp-editor-v2 .lcp-pe-section-num {
  font-family: 'JetBrains Mono', 'Consolas', monospace; font-weight: 600;
  font-size: .78rem; color: var(--lcp-blue); line-height: 1;
  letter-spacing: .06em; flex: 0 0 auto;
  padding: .22rem .45rem; background: var(--lcp-blue-light);
  border-radius: 4px; font-variant-numeric: tabular-nums;
}
.lcp-editor-v2 .lcp-pe-section-title {
  font-family: 'Poppins', 'Mulish', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--lcp-text); margin: 0; line-height: 1.15;
  flex: 1; letter-spacing: -.015em;
}
.lcp-editor-v2 .lcp-char-count {
  margin-left: auto; font-size: .72rem; color: #94a3b8;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.lcp-editor-v2 .lcp-char-count.near { color: #b91c1c; font-weight: 600; }
.lcp-editor-v2 .lcp-pe-expand { color: #94a3b8; transition: transform .2s; margin-left: auto; }
.lcp-editor-v2 .lcp-pe-section-collapsible.open .lcp-pe-expand { transform: rotate(90deg); }
.lcp-editor-v2 .lcp-pe-section-collapsible .lcp-pe-section-body { display: none; }
.lcp-editor-v2 .lcp-pe-section-collapsible.open .lcp-pe-section-body { display: block; }

/* Form primitives inside editor */
.lcp-editor-v2 .lcp-pe-label {
  display: block; font-size: .7rem; font-weight: 600; color: #475569;
  letter-spacing: .08em; text-transform: uppercase; margin: 1rem 0 .4rem;
}
.lcp-editor-v2 .lcp-pe-label:first-child,
.lcp-editor-v2 .lcp-pe-section-head + .lcp-pe-label { margin-top: 0; }
.lcp-editor-v2 .lcp-pe-input, .lcp-editor-v2 .lcp-pe-textarea {
  width: 100%; max-width: 100%; box-sizing: border-box;
  border: 1px solid #e5e3dc; background: #fff;
  padding: .7rem .85rem; border-radius: 6px;
  font-family: inherit; font-size: .9rem; color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.lcp-editor-v2 .lcp-pe-textarea { font-size: .95rem; line-height: 1.6; resize: vertical; min-height: 260px; }
.lcp-editor-v2 .lcp-pe-input:focus, .lcp-editor-v2 .lcp-pe-textarea:focus {
  outline: none; border-color: #0f172a; box-shadow: 0 0 0 4px rgba(15,23,42,.06);
}
.lcp-editor-v2 .lcp-pe-grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: .85rem; margin-top: 1.25rem; }
.lcp-editor-v2 .lcp-pe-inline-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.lcp-editor-v2 .lcp-pe-hint { font-size: .75rem; color: #64748b; margin: .4rem 0 0; font-style: italic; }
.lcp-editor-v2 .lcp-chips { border-color: #e5e3dc; background: #fff; border-radius: 6px; padding: .45rem .55rem; }
.lcp-editor-v2 .lcp-chips input { font-family: inherit; }

/* Sticky preview rail */
.lcp-editor-v2 .lcp-pe-rail {
  background: var(--lcp-hover); border-left: 1px solid var(--lcp-border);
  overflow-y: auto; padding: 1.75rem 1.5rem; min-width: 0;
}
.lcp-editor-v2 .lcp-pe-rail-inner { position: sticky; top: 0; display: flex; flex-direction: column; gap: .75rem; }
.lcp-editor-v2 .lcp-pe-rail-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .25rem;
}
.lcp-editor-v2 .lcp-pe-rail .lcp-li-preview { background: #fff; border: 1px solid var(--lcp-border); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.lcp-editor-v2 .lcp-pe-rail-note { font-size: .7rem; color: var(--lcp-muted); margin: .5rem 0 0; }

/* Footer */
.lcp-editor-v2 .lcp-pe-footer { background: #fff; border-top: 1px solid var(--lcp-border); }
.lcp-editor-v2 .lcp-pe-footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 2rem; gap: .5rem;
}
.lcp-editor-v2 .lcp-pe-footer-left, .lcp-editor-v2 .lcp-pe-footer-right { display: flex; gap: .5rem; }
.lcp-editor-v2 .lcp-pe-footer .ku-form-error { margin: 0 2rem; }

@media (max-width: 980px) {
  .lcp-editor-v2 .lcp-pe-body { grid-template-columns: 1fr; }
  .lcp-editor-v2 .lcp-pe-rail { border-left: none; border-top: 1px solid var(--lcp-border); }
  .lcp-editor-v2 .lcp-pe-main { padding: 1.25rem 1.25rem 1.5rem; }
}

/* ── Plan generation loader ── */
.lcp-gen-loader { padding: 2.5rem 2rem; text-align: center; }
.lcp-gen-loader-spinner { width: 56px; height: 56px; margin: 0 auto 1.25rem; border: 4px solid #e2e8f0; border-top-color: var(--lcp-blue); border-radius: 50%; animation: lcp-spin 0.9s linear infinite; }
.lcp-gen-loader h3 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--lcp-text); }
.lcp-gen-loader-sub { color: var(--lcp-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.lcp-gen-loader-steps { text-align: left; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: .55rem; }
.lcp-gen-loader-step { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: .85rem; color: var(--lcp-muted); transition: all .25s; }
.lcp-gen-loader-step.active { background: #eff6ff; border-color: var(--lcp-blue); color: var(--lcp-text); font-weight: 500; }
.lcp-gen-loader-step.done { background: #f0fdf4; border-color: #86efac; color: #166534; }
.lcp-gen-loader-step-icon { flex: 0 0 18px; height: 18px; width: 18px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }
.lcp-gen-loader-step.active .lcp-gen-loader-step-icon { border-color: var(--lcp-blue); border-top-color: transparent; animation: lcp-spin 0.9s linear infinite; }
.lcp-gen-loader-step.done .lcp-gen-loader-step-icon { background: #16a34a; border-color: #16a34a; color: #fff; }
.lcp-gen-loader-step.done .lcp-gen-loader-step-icon::after { content: ""; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
.lcp-gen-loader-elapsed { margin-top: 1.25rem; font-size: .75rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; display: flex; justify-content: center; gap: 1.25rem; }
.lcp-gen-loader-elapsed strong { color: var(--lcp-text); font-weight: 600; }
.lcp-gen-loader-progress { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; max-width: 420px; margin: 1rem auto .5rem; }
.lcp-gen-loader-progress-bar { height: 100%; background: linear-gradient(90deg, var(--lcp-blue), #60a5fa); transition: width .6s ease; width: 0%; border-radius: 3px; }
.lcp-gen-loader-pct { font-size: .7rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.lcp-gen-loader-activity { font-size: .8rem; color: var(--lcp-blue); margin-top: .2rem; min-height: 1.1rem; font-style: italic; }
.lcp-gen-loader-step-detail { font-size: .72rem; color: var(--lcp-muted); margin-top: .15rem; font-style: italic; }
.lcp-gen-loader-step.active .lcp-gen-loader-step-detail { color: var(--lcp-blue); }
.lcp-gen-loader-step-body { display: flex; flex-direction: column; flex: 1; }
.lcp-gen-loader-step-time { font-size: .7rem; color: var(--lcp-muted); font-variant-numeric: tabular-nums; margin-left: auto; }
@keyframes lcp-spin { to { transform: rotate(360deg); } }
@keyframes lcp-pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.lcp-gen-loader-activity::after { content: "..."; display: inline-block; animation: lcp-pulse-dot 1.4s infinite; }

/* ── Toggle switch ── */
.lcp-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.lcp-toggle input { opacity: 0; width: 0; height: 0; }
.lcp-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #cbd5e1; transition: .2s; border-radius: 22px; }
.lcp-toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; transition: .2s; border-radius: 50%; }
.lcp-toggle input:checked + .lcp-toggle-slider { background: var(--lcp-blue); }
.lcp-toggle input:checked + .lcp-toggle-slider:before { transform: translateX(18px); }

/* ── Mode selector (radio cards) ── */
.lcp-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lcp-mode-card { border: 2px solid var(--lcp-border); border-radius: 10px; padding: 1rem; cursor: pointer; transition: all .15s; background: #fff; }
.lcp-mode-card:hover { border-color: #94a3b8; }
.lcp-mode-card.active { border-color: var(--lcp-blue); background: var(--lcp-blue-light); }
.lcp-mode-card h4 { margin: 0 0 .35rem; font-size: .9rem; font-weight: 600; color: var(--lcp-text); }
.lcp-mode-card p { font-size: .78rem; color: var(--lcp-muted); margin: 0; line-height: 1.45; }

/* ===================================================================
   PIANO EDITORIALE — Daily Briefing (coerente con Analytics v2)
   Poppins headlines · JetBrains Mono numeri · LinkedIn blue · no card-boxes
   =================================================================== */

/* Header lista piani */
.lcp-plan2-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 .9rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--lcp-border);
}
.lcp-plan2-header > div:first-child { display: flex; flex-direction: column; gap: .35rem; }
.lcp-plan2-h1 {
  font-family: 'Poppins', sans-serif; font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.1;
  letter-spacing: -.02em; color: var(--lcp-text); margin: 0;
}
.lcp-plan2-h1 strong { font-weight: 700; color: var(--lcp-blue); }

/* Grid lista — flex con max 3 per riga, si allargano se sono meno */
.lcp-plan2-grid {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--lcp-border);
}
.lcp-plan2-grid .lcp-plan2-card {
  flex: 1 1 calc(33.333% - 0.5px);
  min-width: min(100%, 340px);
  max-width: 100%;
}
@media (max-width: 720px) {
  .lcp-plan2-grid .lcp-plan2-card { flex-basis: 100%; min-width: 100%; }
}

/* Card singolo piano — nessun box, separatori editoriali */
.lcp-plan2-card {
  padding: 1.1rem 1.2rem 1rem; cursor: pointer;
  display: flex; flex-direction: column; gap: .75rem;
  border-right: 1px solid var(--lcp-border);
  border-bottom: 1px solid var(--lcp-border);
  background: #fff; position: relative;
  opacity: 0; transform: translateY(6px);
  animation: lcp-plan2-in .5s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms);
  transition: background .18s;
}
.lcp-plan2-card:hover { background: var(--lcp-hover); }
.lcp-plan2-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--lcp-blue); transform: scaleY(0); transform-origin: top;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.lcp-plan2-card:hover::before { transform: scaleY(1); }
@keyframes lcp-plan2-in { to { opacity: 1; transform: none; } }

.lcp-plan2-card-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: .8rem; align-items: start;
}
.lcp-plan2-card-num {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.8rem; color: var(--lcp-blue); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; opacity: .85;
}
.lcp-plan2-card-title-wrap { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lcp-plan2-card-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 1.02rem; line-height: 1.3; color: var(--lcp-text);
  letter-spacing: -.015em; margin: 0;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lcp-plan2-card-period {
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  color: var(--lcp-muted); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.lcp-plan2-status {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .55rem; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: #f1f5f9; color: var(--lcp-muted); white-space: nowrap;
}
.lcp-plan2-status.status-draft { background: rgba(148,163,184,.12); color: #475569; }
.lcp-plan2-status.status-active { background: rgba(22,163,74,.1); color: #15803d; }
.lcp-plan2-status.status-completed { background: rgba(100,116,139,.1); color: #475569; }
.lcp-plan2-status.status-archived { background: rgba(148,163,184,.08); color: #64748b; }

/* Progress */
.lcp-plan2-card-progress { display: flex; flex-direction: column; gap: .4rem; }
.lcp-plan2-progress-track {
  height: 3px; background: #f1f5f9; border-radius: 2px; overflow: hidden;
}
.lcp-plan2-progress-fill {
  display: block; height: 100%; width: 0; background: var(--lcp-blue);
  border-radius: 2px; transition: width .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--idx, 0) * 70ms + .25s);
}
.lcp-plan2-ready .lcp-plan2-progress-fill { width: var(--target-w); }
.lcp-plan2-progress-meta {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: var(--lcp-muted); letter-spacing: .05em;
  font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.lcp-plan2-progress-meta strong { color: var(--lcp-text); font-weight: 600; }

/* Temi */
.lcp-plan2-card-themes { display: flex; flex-wrap: wrap; gap: .3rem; }
.lcp-plan2-theme-chip {
  display: inline-flex; padding: .22rem .55rem; border-radius: 4px;
  background: var(--lcp-blue-light); color: var(--lcp-blue-dark);
  font-size: .7rem; font-weight: 500; letter-spacing: -.005em;
}
.lcp-plan2-theme-more {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: var(--lcp-muted); padding: .22rem .45rem;
  font-variant-numeric: tabular-nums;
}

/* Stats */
.lcp-plan2-card-stats {
  display: flex; gap: 1.25rem; padding-top: .6rem;
  border-top: 1px dashed var(--lcp-border);
}
.lcp-plan2-stat { display: flex; flex-direction: column; gap: .15rem; }
.lcp-plan2-stat-num {
  font-family: 'JetBrains Mono', monospace; font-size: 1.15rem;
  font-weight: 700; color: var(--lcp-text); line-height: 1;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.lcp-plan2-stat-lbl {
  font-size: .6rem; color: var(--lcp-muted); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
}

/* Actions card */
.lcp-plan2-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.lcp-plan2-card-actions .lcp-btn {
  font-size: .72rem; padding: .35rem .7rem;
}

/* Empty state */
.lcp-plan2-empty {
  padding: 2.5rem 1.5rem; text-align: center; max-width: 560px; margin: 1rem auto;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.lcp-plan2-empty svg { color: var(--lcp-muted); opacity: .4; }
.lcp-plan2-empty-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 1.2rem; color: var(--lcp-text); margin: 0;
  letter-spacing: -.01em;
}
.lcp-plan2-empty-text {
  font-size: .88rem; color: var(--lcp-muted); line-height: 1.55; margin: 0; max-width: 44ch;
}

/* ------- Detail (pagina singolo piano) ------- */
.lcp-plan2-detail-hero {
  padding: .75rem 0 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--lcp-border);
}
.lcp-plan2-back {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: none; cursor: pointer;
  padding: .2rem 0; margin-bottom: .75rem;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: var(--lcp-muted); letter-spacing: .08em; text-transform: uppercase;
  transition: color .15s;
}
.lcp-plan2-back:hover { color: var(--lcp-blue); }
.lcp-plan2-back svg { width: 14px; height: 14px; stroke-width: 1.8; }

.lcp-plan2-detail-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.25rem; align-items: start; margin-bottom: 1rem;
}
@media (max-width: 760px) {
  .lcp-plan2-detail-head { grid-template-columns: 1fr; }
}
.lcp-plan2-detail-headline { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.lcp-plan2-detail-title {
  font-family: 'Poppins', sans-serif; font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.2;
  letter-spacing: -.025em; color: var(--lcp-text); margin: 0;
}
.lcp-plan2-detail-themes { display: flex; flex-wrap: wrap; gap: .35rem; }
.lcp-plan2-detail-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Stats detail — strip con divider, no box */
.lcp-plan2-detail-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--lcp-border);
  border-bottom: 1px solid var(--lcp-border);
  margin-bottom: .9rem;
}
@media (max-width: 780px) {
  .lcp-plan2-detail-stats { grid-template-columns: repeat(2, 1fr); }
  .lcp-plan2-detail-stat { border-bottom: 1px solid var(--lcp-border); }
}
.lcp-plan2-detail-stat {
  padding: .7rem .9rem; display: flex; flex-direction: column; gap: .25rem;
  position: relative;
}
.lcp-plan2-detail-stat + .lcp-plan2-detail-stat { border-left: 1px solid var(--lcp-border); }
@media (max-width: 780px) {
  .lcp-plan2-detail-stat + .lcp-plan2-detail-stat { border-left: none; }
  .lcp-plan2-detail-stat:nth-child(odd) { border-right: 1px solid var(--lcp-border); }
}
.lcp-plan2-detail-stat-num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 1.3rem; color: var(--lcp-text); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.lcp-plan2-detail-stat-lbl {
  font-size: .65rem; color: var(--lcp-muted); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
}
.lcp-plan2-detail-progress {
  margin-top: .4rem; height: 2px; background: #f1f5f9; border-radius: 1px; overflow: hidden;
}
.lcp-plan2-detail-progress span {
  display: block; height: 100%; width: 0; background: var(--lcp-blue);
  transition: width 1s cubic-bezier(.2,.8,.2,1) .35s;
}
.lcp-plan2-ready .lcp-plan2-detail-progress span { width: var(--target-w); }

/* Pipeline bar distribuzione stati */
.lcp-plan2-detail-pipe {
  display: flex; flex-direction: column; gap: .45rem; margin-top: .25rem;
}
.lcp-plan2-detail-pipe-bar {
  display: flex; height: 6px; width: 100%; border-radius: 3px; overflow: hidden;
  background: #f1f5f9;
}
.lcp-plan2-detail-pipe-seg {
  height: 100%; width: 0;
  transition: width .8s cubic-bezier(.2,.8,.2,1) .25s;
}
.lcp-plan2-ready .lcp-plan2-detail-pipe-seg { width: var(--target-w); }
.lcp-plan2-detail-pipe-seg.status-draft { background: var(--anx-draft, #94a3b8); }
.lcp-plan2-detail-pipe-seg.status-approved { background: var(--anx-approved, #0ea5e9); }
.lcp-plan2-detail-pipe-seg.status-scheduled { background: var(--anx-scheduled, #8b5cf6); }
.lcp-plan2-detail-pipe-seg.status-published { background: var(--anx-published, #16a34a); }
.lcp-plan2-detail-pipe-legend {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.lcp-plan2-detail-pipe-leg {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  color: var(--lcp-muted); letter-spacing: .05em; font-variant-numeric: tabular-nums;
}
.lcp-plan2-detail-pipe-leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.lcp-plan2-detail-pipe-leg-dot.status-draft { background: var(--anx-draft, #94a3b8); }
.lcp-plan2-detail-pipe-leg-dot.status-approved { background: var(--anx-approved, #0ea5e9); }
.lcp-plan2-detail-pipe-leg-dot.status-scheduled { background: var(--anx-scheduled, #8b5cf6); }
.lcp-plan2-detail-pipe-leg-dot.status-published { background: var(--anx-published, #16a34a); }
.lcp-plan2-detail-pipe-leg strong { color: var(--lcp-text); font-weight: 700; }

/* ===================================================================
   USER SELECTOR — sidebar LCP "visualizza come"
   =================================================================== */
.lcp-user-selector {
  margin: .2rem .8rem .6rem;
  position: relative;
  padding: .5rem .6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lcp-user-selector-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: .35rem;
}
.lcp-user-selector-current {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; user-select: none;
  transition: opacity .15s;
}
.lcp-user-selector-current:hover { opacity: .85; }
.lcp-user-selector-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lcp-blue, #0a66c2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; flex-shrink: 0;
  text-transform: uppercase;
}
.lcp-user-selector-name {
  flex: 1; font-size: .78rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lcp-user-selector-current .app-chevron {
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg); flex-shrink: 0;
  transition: transform .15s;
}
.lcp-user-selector-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  max-height: 340px; overflow-y: auto;
  z-index: 1000;
  display: none;
}
.lcp-user-selector-dropdown.open { display: block; }
.lcp-user-selector-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .7rem; cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lcp-user-selector-item:last-child { border-bottom: none; }
.lcp-user-selector-item:hover { background: rgba(255, 255, 255, 0.06); }
.lcp-user-selector-item.active { background: rgba(10, 102, 194, 0.18); }
.lcp-user-selector-item .lcp-user-selector-avatar { width: 26px; height: 26px; font-size: .72rem; }
.lcp-user-selector-item-body { flex: 1; min-width: 0; }
.lcp-user-selector-item-name {
  font-size: .82rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lcp-user-selector-item-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===================================================================
   SHARED EDITORIAL UTILITIES — usate in tutte le sezioni LCP
   =================================================================== */
.lcp-panel {
  background: #fff;
  border: 1px solid var(--lcp-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 12px 32px -16px rgba(15,23,42,.08);
  margin-bottom: 1rem;
}
@media (max-width: 720px) { .lcp-panel { padding: 1rem .9rem 1.25rem; border-radius: 10px; } }

.lcp-panel-head {
  padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 2px solid #0b1220;
  max-width: 720px;
}
.lcp-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'JetBrains Mono', monospace; font-size: .66rem;
  font-weight: 600; color: var(--lcp-blue); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.lcp-kicker-line { width: 26px; height: 2px; background: var(--lcp-blue); }
.lcp-panel-title {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.2;
  color: #0b1220; letter-spacing: -.02em; margin: 0 0 .4rem;
}
.lcp-panel-lede {
  font-size: .86rem; color: #475569; line-height: 1.55;
  margin: 0; max-width: 64ch;
}

.lcp-section-title {
  font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #0b1220;
  margin: 0; position: relative; padding-left: 14px;
}
.lcp-section-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 14px;
  background: var(--lcp-blue); border-radius: 2px;
}
.lcp-toggle-field { display: flex; align-items: center; gap: .65rem; margin-bottom: 0; }
.lcp-toggle-label { font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500; color: #0b1220; cursor: pointer; letter-spacing: -.005em; }
.lcp-cfg-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; }
@media (max-width: 720px) { .lcp-cfg-grid2 { grid-template-columns: 1fr; } }
.lcp-cfg-grid2 .lcp-field { margin-bottom: 0; }
.lcp-panel-footer { display: flex; justify-content: flex-end; gap: .5rem; padding-top: 1rem; margin-top: 1.25rem; border-top: 1px solid var(--lcp-border); }
.lcp-panel-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }

/* Step list per procedure */
.lcp-cfg-steps {
  list-style: none; counter-reset: step; margin: 0 0 1.25rem; padding: 0;
  display: flex; flex-direction: column; gap: .5rem;
}
.lcp-cfg-steps li {
  position: relative; padding: .4rem 0 .4rem 2.2rem;
  font-size: .85rem; color: #475569; line-height: 1.5;
  counter-increment: step;
}
.lcp-cfg-steps li::before {
  content: counter(step); position: absolute; left: 0; top: .3rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lcp-blue-light); color: var(--lcp-blue);
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lcp-cfg-steps a { color: var(--lcp-blue); font-weight: 500; }

/* Buffer profile list */
.lcp-buf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.lcp-buf-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: .75rem; align-items: center;
  padding: .55rem .8rem; border: 1px solid var(--lcp-border); border-radius: 8px;
  background: #fff; transition: border-color .15s, background .15s;
}
.lcp-buf-row:hover { border-color: var(--lcp-blue); background: var(--lcp-blue-light); }
.lcp-buf-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.lcp-buf-avatar-fallback { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); display: block; }
.lcp-buf-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.lcp-buf-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .88rem; color: #0b1220; letter-spacing: -.005em; }
.lcp-buf-service { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #64748b; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-left: .3rem; }
.lcp-buf-id { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #64748b; background: #f8fafc; padding: 1px 5px; border-radius: 3px; align-self: flex-start; }

/* ===================================================================
   CONFIGURATORE · Modalità — radio card editoriali
   =================================================================== */
.lcp-mode2-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .85rem; padding: 0;
}
@media (max-width: 820px) { .lcp-mode2-grid { grid-template-columns: 1fr; } }

.lcp-mode2-card {
  position: relative; display: flex; gap: 1rem; padding: 1.1rem 1.2rem;
  background: #fff; border: 1.5px solid var(--lcp-border); border-radius: 10px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .18s, transform .12s;
}
.lcp-mode2-card:hover { border-color: #94a3b8; background: #f8fafc; }
.lcp-mode2-card:active { transform: translateY(1px); }
.lcp-mode2-card:focus-visible { outline: 3px solid rgba(10,102,194,.2); outline-offset: 2px; }
.lcp-mode2-card.active {
  border-color: var(--lcp-blue);
  background: var(--lcp-blue-light);
  box-shadow: 0 0 0 3px rgba(10,102,194,.1);
}
.lcp-mode2-check {
  position: absolute; top: .75rem; right: .8rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lcp-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.lcp-mode2-ico {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--lcp-border); border-radius: 10px;
  color: var(--lcp-blue);
}
.lcp-mode2-card.active .lcp-mode2-ico { background: #fff; border-color: var(--lcp-blue); }
.lcp-mode2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; padding-right: 1.5rem; }
.lcp-mode2-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.lcp-mode2-title {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  color: #0b1220; margin: 0; letter-spacing: -.01em;
}
.lcp-mode2-badge {
  display: inline-flex; padding: .18rem .5rem;
  background: var(--lcp-blue); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: .6rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 3px;
}
.lcp-mode2-badge.ghost { background: #f1f5f9; color: #475569; }
.lcp-mode2-desc { font-size: .82rem; color: #475569; line-height: 1.5; margin: 0; }
.lcp-mode2-pro { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.lcp-mode2-pro li {
  position: relative; padding-left: 1.1rem;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: #64748b; letter-spacing: .02em;
}
.lcp-mode2-pro li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 1.5px; background: var(--lcp-blue); border-radius: 1px;
}
.lcp-mode2-notice {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .5rem; padding: .5rem .7rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px;
  font-size: .78rem; color: #78350f; line-height: 1.45;
}
.lcp-mode2-notice svg { flex: 0 0 auto; color: #b45309; margin-top: 1px; }

/* ===================================================================
   CONFIGURATORE · Notifiche — day chips
   =================================================================== */
.lcp-days-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.lcp-day-chip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: .5rem .75rem;
  background: #fff; border: 1.5px solid var(--lcp-border); border-radius: 6px;
  font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 600;
  color: #475569; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  user-select: none;
}
.lcp-day-chip:hover { border-color: var(--lcp-blue); color: var(--lcp-blue); }
.lcp-day-chip:active { transform: translateY(1px); }
.lcp-day-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lcp-day-chip input:focus-visible + span { outline: 2px solid var(--lcp-blue); outline-offset: 3px; border-radius: 3px; }
.lcp-day-chip.active { background: var(--lcp-blue); border-color: var(--lcp-blue); color: #fff; }
.lcp-day-chip.active:hover { background: var(--lcp-blue-dark); border-color: var(--lcp-blue-dark); color: #fff; }

/* ===================================================================
   LIBRERIA POST · Toolbar allineata (filtri + view switch)
   =================================================================== */
.lcp-posts-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.lcp-posts-toolbar .lcp-posts-filters { margin-bottom: 0; flex: 1; min-width: 260px; }

/* View switcher editoriale (segmented control) */
.lcp-view-switch {
  display: inline-flex; align-items: stretch;
  background: #f8fafc; border: 1px solid var(--lcp-border); border-radius: 7px;
  padding: 2px; gap: 0;
}
/* CLAUDE.md §1.2 — background esplicito (no transparent): stesso chiaro del track */
.lcp-view-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; background: #f8fafc; border: none;
  font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 600;
  color: #64748b; cursor: pointer; border-radius: 5px;
  transition: color .15s, background .15s, box-shadow .15s;
  letter-spacing: -.005em;
}
.lcp-view-btn:hover { color: #0b1220; background: #eef2f7; }
.lcp-view-btn.active {
  background: #fff; color: var(--lcp-blue);
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
}
.lcp-view-btn:focus-visible { outline: 2px solid var(--lcp-blue); outline-offset: 2px; }
.lcp-view-btn svg { color: currentColor; }

@media (max-width: 560px) {
  .lcp-view-btn span { display: none; }
  .lcp-view-btn { padding: .5rem .6rem; }
}

/* ===================================================================
   LIBRERIA IMMAGINI · Tile polish
   =================================================================== */
.lcp-img-tile-hook-muted { color: #64748b; font-size: .78rem; line-height: 1.45; }
.lcp-img-tile-open {
  padding: .25rem .6rem !important;
  font-size: .72rem !important;
}
.lcp-img-tile-del {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  color: #94a3b8; cursor: pointer; margin-left: auto;
  transition: color .15s, background .15s, border-color .15s;
}
.lcp-img-tile-del:hover { color: var(--lcp-accent); background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.2); }
.lcp-img-tile-del:focus-visible { outline: 2px solid var(--lcp-blue); outline-offset: 2px; }
.lcp-img-tile-del svg { color: currentColor; }

.lcp-section-block { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--lcp-border); }
.lcp-section-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.lcp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lcp-section-sub { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: #64748b; font-variant-numeric: tabular-nums; }

/* Status banner semantico */
.lcp-status-banner {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem;
  font-size: .85rem; line-height: 1.45;
  border: 1px solid;
}
.lcp-status-banner-ico { flex: 0 0 18px; line-height: 0; margin-top: 1px; }
.lcp-status-banner-body { min-width: 0; flex: 1; }
.lcp-status-banner-body strong { color: #0b1220; }
.lcp-status-banner code { font-family: 'JetBrains Mono', monospace; font-size: .78rem; background: rgba(15,23,42,.06); padding: 1px 5px; border-radius: 3px; }
.lcp-status-banner.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.lcp-status-banner.warn { background: #fffbeb; border-color: #fde68a; color: #713f12; }
.lcp-status-banner.info { background: var(--lcp-blue-light); border-color: rgba(10,102,194,.2); color: var(--lcp-blue-dark); }
.lcp-status-banner.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ===================================================================
   CONFIGURATORE · Content Generation — editorial knowledge base
   =================================================================== */
.lcp-cs-wrap {
  background: #fff;
  border: 1px solid var(--lcp-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 12px 32px -16px rgba(15,23,42,.08);
}
@media (max-width: 720px) { .lcp-cs-wrap { padding: 1rem .9rem 1.25rem; } }

.lcp-cs-head {
  padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 2px solid #0b1220;
  max-width: 720px;
}
.lcp-cs-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'JetBrains Mono', monospace; font-size: .66rem;
  font-weight: 600; color: var(--lcp-blue); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.lcp-cs-kicker-line { width: 26px; height: 2px; background: var(--lcp-blue); }
.lcp-cs-title {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2;
  color: #0b1220; letter-spacing: -.02em; margin: 0 0 .4rem;
}
.lcp-cs-lede {
  font-size: .86rem; color: #475569; line-height: 1.55;
  margin: 0 0 .75rem; max-width: 62ch;
}
.lcp-cs-formats { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.lcp-cs-fmt {
  display: inline-flex; align-items: center; padding: .2rem .55rem;
  border: 1px solid var(--lcp-border); border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  font-weight: 600; color: #475569; letter-spacing: .08em;
  background: #f8fafc;
}
.lcp-cs-fmt-meta {
  font-family: 'JetBrains Mono', monospace; font-size: .66rem;
  color: #64748b; letter-spacing: .04em; margin-left: .15rem;
}

/* Due stazioni di input */
.lcp-cs-stations {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 820px) { .lcp-cs-stations { grid-template-columns: 1fr; } }

.lcp-cs-station {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #f8fafc; border: 1px solid var(--lcp-border);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
}
.lcp-cs-station:focus-within {
  border-color: var(--lcp-blue);
  box-shadow: 0 0 0 3px rgba(10,102,194,.08);
}
.lcp-cs-station-head { display: flex; gap: .7rem; align-items: flex-start; }
.lcp-cs-station-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--lcp-border); border-radius: 8px;
  color: var(--lcp-blue);
}
.lcp-cs-station-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .95rem; color: #0b1220; margin: 0 0 .15rem;
  letter-spacing: -.01em;
}
.lcp-cs-station-sub {
  font-size: .75rem; color: #64748b; line-height: 1.4; margin: 0;
}

/* Dropzone */
.lcp-cs-drop {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .35rem;
  padding: 1.4rem .75rem; cursor: pointer;
  background: #fff; border: 1.5px dashed #cbd5e1; border-radius: 8px;
  transition: border-color .18s, background .18s, transform .15s;
  min-height: 118px;
}
.lcp-cs-drop:hover { border-color: var(--lcp-blue); background: var(--lcp-blue-light); }
.lcp-cs-drop:active { transform: translateY(1px); }
.lcp-cs-drop.is-filled { border-color: var(--lcp-blue); border-style: solid; background: var(--lcp-blue-light); }
.lcp-cs-drop-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.lcp-cs-drop-input:focus-visible ~ .lcp-cs-drop-ico { outline: 2px solid var(--lcp-blue); outline-offset: 3px; border-radius: 50%; }
.lcp-cs-drop-ico {
  color: var(--lcp-blue); display: inline-flex; line-height: 0;
  padding: .4rem; border-radius: 50%; background: var(--lcp-blue-light);
}
.lcp-cs-drop-label {
  font-family: 'Poppins', sans-serif; font-size: .86rem; font-weight: 500;
  color: #0b1220; letter-spacing: -.005em;
}
.lcp-cs-drop-label u { color: var(--lcp-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lcp-cs-drop-hint {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: #64748b; letter-spacing: .08em; text-transform: uppercase;
}

.lcp-cs-input, .lcp-cs-textarea { font-size: .85rem; }
.lcp-cs-textarea { font-family: 'Mulish', sans-serif; line-height: 1.5; resize: vertical; min-height: 120px; }
.lcp-cs-btn { align-self: flex-start; cursor: pointer; transition: transform .12s, box-shadow .18s; }
.lcp-cs-btn:active { transform: translateY(1px); }

/* Lista fonti */
.lcp-cs-sources { margin-top: .5rem; }
.lcp-cs-sources-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-bottom: .65rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--lcp-border);
}
.lcp-cs-sources-title {
  font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: #0b1220;
  margin: 0; position: relative; padding-left: 14px;
}
.lcp-cs-sources-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 14px;
  background: var(--lcp-blue); border-radius: 2px;
}
.lcp-cs-sources-stats {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: #475569; font-variant-numeric: tabular-nums;
}
.lcp-cs-sources-stats strong { color: #0b1220; font-weight: 700; margin-right: .2rem; }
.lcp-cs-sources-stats em { font-style: normal; color: #64748b; letter-spacing: .04em; }
.lcp-cs-stat-sep { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }

.lcp-cs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lcp-cs-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: .85rem; align-items: center;
  padding: .7rem .15rem; border-bottom: 1px solid var(--lcp-border);
  transition: padding-left .18s, background .18s, opacity .18s;
  opacity: 0; transform: translateY(4px);
  animation: lcp-cs-row-in .4s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 45ms);
}
.lcp-cs-row:last-child { border-bottom: none; }
.lcp-cs-row:hover { padding-left: .6rem; background: var(--lcp-hover); }
.lcp-cs-row.is-disabled { opacity: .55; }
@keyframes lcp-cs-row-in { to { opacity: 1; transform: none; } }

.lcp-cs-row-toggle { flex: 0 0 auto; }
.lcp-cs-row-ico {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--lcp-border); border-radius: 6px;
  color: var(--lcp-blue);
}
.lcp-cs-row-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.lcp-cs-row-title {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .88rem;
  color: #0b1220; line-height: 1.3; letter-spacing: -.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lcp-cs-row-meta {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: .67rem;
  color: #64748b; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.lcp-cs-row-kind { color: #475569; font-weight: 600; }
.lcp-cs-row-dot { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.lcp-cs-row-preview {
  font-family: 'Mulish', sans-serif; font-size: .75rem; color: #64748b;
  font-style: italic; line-height: 1.45; margin-top: .2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.lcp-cs-row-del {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  color: #94a3b8; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.lcp-cs-row-del:hover { color: var(--lcp-accent); background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.2); }
.lcp-cs-row-del:focus-visible { outline: 2px solid var(--lcp-blue); outline-offset: 2px; }

/* CLAUDE.md §1.6.1 — empty state card bianca esplicita */
.lcp-cs-empty {
  background: #fff; border: 1px solid var(--lcp-border); border-radius: 12px;
  padding: 2.5rem 1.5rem; text-align: center; max-width: 420px; margin: .5rem auto;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.lcp-cs-empty-ico{ color: #cbd5e1; }
.lcp-cs-empty-title {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  color: #0b1220; margin: 0;
}
.lcp-cs-empty-text{ font-size: .82rem; color: #64748b; line-height: 1.5; margin: 0; }

@media (max-width: 900px) {
  .lcp-post-editor { grid-template-columns: 1fr; }
  .lcp-mode-cards { grid-template-columns: 1fr; }
  .lcp-calendar .lcp-cal-cell { min-height: 60px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lcp-skel { animation: none; }
  .lcp-post-card, .lcp-kpi-card, .lcp-upcoming-item, .lcp-btn { transition: none; }
}

/* ============================================================
   FEED NEWS — Configuratore sub-tab + Tab principale
   Palette coerente con LCP (blu LinkedIn + neutri)
   ============================================================ */

/* --- Configuratore: lista fonti --- */
.lcp-feedcfg { display: flex; flex-direction: column; gap: 1rem; }
.lcp-feedcfg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lcp-feedcfg-head h2 { margin: 0 0 .25rem; font-size: 1.35rem; color: var(--lcp-text, #0f172a); }
.lcp-feedcfg-lede { margin: 0; color: var(--muted, #64748b); font-size: .88rem; line-height: 1.5; max-width: 640px; }
.lcp-feedcfg-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.lcp-feedcfg-actions button { display: inline-flex; align-items: center; gap: .4rem; }
.lcp-feedcfg-hint { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: .9rem 1rem; color: #0c4a6e; font-size: .85rem; line-height: 1.55; }
.lcp-feedcfg-hint ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.lcp-feedcfg-hint li { margin-bottom: .25rem; }
.lcp-feedcfg-hint code { background: #fff; padding: 1px 6px; border-radius: 4px; font-size: .8rem; border: 1px solid #e0f2fe; }

/* Tabella fonti */
.lcp-feedcfg-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; overflow: hidden; }
.lcp-feedcfg-table thead { background: #f8fafc; }
.lcp-feedcfg-table th { text-align: left; padding: .65rem .8rem; font-size: .72rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border, #e2e8f0); }
.lcp-feedcfg-table td { padding: .7rem .8rem; font-size: .88rem; color: #0f172a; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.lcp-feedcfg-table tr:last-child td { border-bottom: 0; }
.lcp-feedcfg-table tr:hover { background: #fafbfc; }
.lcp-feed-row-disabled td { opacity: .55; }
.lcp-feed-kind-ico { display: inline-flex; vertical-align: middle; margin-right: .25rem; color: #475569; }
.lcp-feed-url-link { color: #0a66c2; text-decoration: none; font-family: ui-monospace, monospace; font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.lcp-feed-url-link:hover { text-decoration: underline; }
.lcp-feed-topic-chip { display: inline-block; background: #e0e7ff; color: #3730a3; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.lcp-feed-kind-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.lcp-feed-kind-rss { background: #fef3c7; color: #92400e; }
.lcp-feed-kind-atom { background: #fef3c7; color: #92400e; }
.lcp-feed-kind-linkedin_feed { background: #e0e7ff; color: #3730a3; }
.lcp-feed-badge-count { display: inline-block; background: #f1f5f9; color: #475569; padding: 1px 7px; border-radius: 10px; font-size: .7rem; font-weight: 600; margin-left: .25rem; }
.lcp-feed-err { display: inline-block; background: #fee2e2; color: #991b1b; padding: 1px 7px; border-radius: 4px; font-size: .7rem; font-weight: 600; cursor: help; }
.lcp-feed-row-del { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: .35rem .5rem; cursor: pointer; color: #991b1b; display: inline-flex; align-items: center; transition: background .15s, border-color .15s; }
.lcp-feed-row-del:hover { background: #fee2e2; border-color: #fca5a5; }

/* Toggle switch mini */
.lcp-switch-mini { position: relative; display: inline-block; width: 32px; height: 18px; cursor: pointer; }
.lcp-switch-mini input { opacity: 0; width: 0; height: 0; position: absolute; }
.lcp-switch-mini span { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #cbd5e1; border-radius: 18px; transition: background .2s; }
.lcp-switch-mini span::before { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.lcp-switch-mini input:checked + span { background: #0a66c2; }
.lcp-switch-mini input:checked + span::before { transform: translateX(14px); }
.lcp-switch-mini input:disabled + span { opacity: .5; cursor: not-allowed; }

/* Modal form (shared per Feed) */
.lcp-form { display: flex; flex-direction: column; gap: .9rem; }
.lcp-form-label { font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .2rem; display: block; }
.lcp-form-input { width: 100%; padding: .55rem .75rem; border: 1px solid var(--border, #e2e8f0); border-radius: 7px; font-size: .88rem; background: #fff; color: #0f172a; }
.lcp-form-input:focus { outline: 2px solid #0a66c2; outline-offset: -1px; border-color: #0a66c2; }

/* Suggest modal */
.lcp-feed-suggest-list { display: flex; flex-direction: column; gap: .5rem; max-height: 420px; overflow-y: auto; }
.lcp-feed-suggest-item { display: flex; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.lcp-feed-suggest-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.lcp-feed-suggest-item input[type="checkbox"] { margin-top: 3px; }
.lcp-feed-suggest-body { flex: 1; min-width: 0; }
.lcp-feed-suggest-label { font-weight: 600; color: #0f172a; margin-bottom: .15rem; font-size: .88rem; }
.lcp-feed-suggest-url { font-family: ui-monospace, monospace; font-size: .75rem; color: #64748b; word-break: break-all; margin-bottom: .3rem; }

/* Empty state (card bianca per §1.6.1) */
.lcp-feed-empty { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 2.5rem 1.5rem; text-align: center; color: #0f172a; }
.lcp-feed-empty-title { font-size: 1rem; font-weight: 600; margin-bottom: .375rem; }
.lcp-feed-empty-desc{ font-size: .875rem; color: #64748b; margin-bottom: 0; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* --- Tab Feed principale --- */
.lcp-feed-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.lcp-feed-kpi-card { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 1rem 1.1rem; }
.lcp-feed-kpi-label { font-size: .7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.lcp-feed-kpi-value { font-size: 1.7rem; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lcp-feed-kpi-hint { font-size: .72rem; color: #94a3b8; margin-top: .3rem; }

.lcp-feed-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; align-items: center; }
.lcp-feed-toolbar-left { display: flex; gap: .6rem; flex: 1; min-width: 260px; flex-wrap: wrap; }
.lcp-feed-toolbar-right { display: flex; gap: .5rem; flex-wrap: wrap; }
.lcp-feed-search { position: relative; flex: 1; min-width: 220px; }
.lcp-feed-search input { width: 100%; padding: .55rem .85rem; border: 1px solid var(--border, #e2e8f0); border-radius: 7px; background: #fff; font-size: .88rem; }
.lcp-feed-search input:focus { outline: 2px solid #0a66c2; outline-offset: -1px; border-color: #0a66c2; }
.lcp-feed-source-select { padding: .55rem .75rem; border: 1px solid var(--border, #e2e8f0); border-radius: 7px; background: #fff; font-size: .85rem; min-width: 180px; }

.lcp-feed-chips-row { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.lcp-feed-chip { background: #fff; border: 1px solid #e2e8f0; color: #475569; padding: .35rem .75rem; border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 500; transition: all .15s; }
.lcp-feed-chip:hover { border-color: #0a66c2; color: #0a66c2; }
.lcp-feed-chip.active { background: #0a66c2; border-color: #0a66c2; color: #fff; }

/* Feed list grouped by day */
.lcp-feed-list { display: flex; flex-direction: column; gap: 1.5rem; }
.lcp-feed-day-label { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 2px solid #f1f5f9; }
.lcp-feed-day-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }

.lcp-feed-card { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; transition: box-shadow .15s, border-color .15s; }
.lcp-feed-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.lcp-feed-card.unread { border-left: 3px solid #0a66c2; padding-left: calc(1.1rem - 2px); }
.lcp-feed-card.converted { background: #f0f9ff; }
.lcp-feed-card-head { display: flex; gap: .5rem; align-items: center; font-size: .72rem; color: #64748b; flex-wrap: wrap; }
.lcp-feed-card-source { font-weight: 600; color: #475569; }
.lcp-feed-card-time { color: #94a3b8; }
.lcp-feed-badge-converted { background: #dbeafe; color: #1d4ed8; padding: 1px 7px; border-radius: 4px; font-size: .68rem; font-weight: 700; }
.lcp-feed-card-title { font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-feed-card-summary { font-size: .82rem; color: #475569; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lcp-feed-card-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.lcp-feed-card-link { color: #0a66c2; font-size: .78rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.lcp-feed-card-link:hover { text-decoration: underline; }
.lcp-feed-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.lcp-feed-btn-sm { font-size: .74rem !important; padding: .35rem .7rem !important; }

/* Angle cards nel convert modal */
.lcp-feed-angle-card { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .7rem; }
.lcp-feed-angle-label { font-size: .72rem; font-weight: 700; color: #0a66c2; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.lcp-feed-angle-hook { font-size: .95rem; font-weight: 600; color: #0f172a; margin-bottom: .4rem; }
.lcp-feed-angle-body { font-size: .85rem; color: #334155; line-height: 1.5; margin-bottom: .4rem; white-space: pre-line; }
.lcp-feed-angle-cta { font-size: .78rem; color: #64748b; margin-bottom: .6rem; font-style: italic; }
.lcp-feed-err-inline { background: #fee2e2; color: #991b1b; padding: .7rem .9rem; border-radius: 8px; border: 1px solid #fca5a5; font-size: .85rem; }
.lcp-muted { color: #94a3b8; }

@media (max-width: 700px) {
  .lcp-feed-day-items { grid-template-columns: 1fr; }
  .lcp-feedcfg-table { font-size: .8rem; }
  .lcp-feedcfg-table th, .lcp-feedcfg-table td { padding: .5rem; }
}

/* ==========================================================================
   STATUS RAIL — sidebar drag-to-change-status (Libreria Post)
   Card trascinate fanno comparire una sidebar fixed a destra full-height.
   Utente rilascia su una zona stato → cambio via API.
   ========================================================================== */
.lcp-status-rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: linear-gradient(180deg, var(--lcp-blue) 0%, var(--lcp-blue-dark) 100%);
  color: #fff;
  z-index: 9500;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25);
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}
.lcp-status-rail.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.lcp-status-rail-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
}
.lcp-status-rail-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1.25rem;
}
.lcp-status-rail-kicker {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-bottom: .5rem;
}
.lcp-status-rail-title {
  margin: 0 0 .3rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.lcp-status-rail-sub {
  margin: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.78);
}
.lcp-status-rail-zones {
  display: flex; flex-direction: column; gap: .85rem;
  flex: 1;
}
.lcp-status-rail-zone {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
  cursor: copy;
  user-select: none;
}
.lcp-status-rail-zone.is-hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  border-style: solid;
  transform: scale(1.025);
}
.lcp-status-rail-zone.is-disabled {
  opacity: .42;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.12);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}
.lcp-status-rail-zone.is-disabled:hover { transform: none; }
.lcp-status-rail-zone-icon {
  width: 42px; height: 42px;
  margin: 0 auto .55rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
}
.lcp-status-rail-zone-icon svg { width: 24px; height: 24px; }
.lcp-status-rail-zone-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}
.lcp-status-rail-zone-desc {
  font-size: .74rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}
.lcp-status-rail-zone.status-unscheduled .lcp-status-rail-zone-icon {
  background: rgba(192, 38, 211, 0.32);
}
.lcp-status-rail-zone.status-draft { /* bozza: palette neutra */ }
.lcp-status-rail-zone.status-approved .lcp-status-rail-zone-icon {
  background: rgba(34, 197, 94, 0.28);
}
.lcp-status-rail-zone.status-scheduled .lcp-status-rail-zone-icon {
  background: rgba(245, 158, 11, 0.32);
}
.lcp-status-rail-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

/* Card post in drag: leggero visual feedback */
.lcp-post-card[draggable="true"] { cursor: grab; }
.lcp-post-card[draggable="true"]:active { cursor: grabbing; }
.lcp-timeline-item[draggable="true"] { cursor: grab; }
.lcp-timeline-item[draggable="true"]:active { cursor: grabbing; }

/* Quando la rail è aperta, riduce l'interazione col resto per focus (ma drag continua) */
body.lcp-status-rail-active { overflow-x: hidden; }

@media (max-width: 700px) {
  .lcp-status-rail { width: 85vw; max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .lcp-status-rail { transition: none; }
  .lcp-status-rail-zone { transition: none; }
}

/* ============================================================
   3-WAY SPLIT variant picker + MOODBOARD card hover
   ============================================================ */
.lcp-variant-picker .lcp-variant-card:hover {
  border-color: var(--lcp-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.lcp-moodboard-item:hover {
  border-color: var(--lcp-blue) !important;
}
.lcp-moodboard-item img {
  transition: transform .2s ease;
}
.lcp-moodboard-item:hover img {
  transform: scale(1.03);
}
