.dashboard-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.dashboard-header h1 { margin-bottom: 6px; }
.dashboard-header .sub { color: var(--text-2); }

.stats {
  display: grid; gap: 14px; margin-bottom: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat {
  background: var(--white); padding: 18px 20px; border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-grad-from); /* fallback se border-image não pegar */
  border-image: var(--accent-gradient) 1 100%;
  box-shadow: var(--shadow);
}
.stat .label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 700; color: var(--dark); margin-top: 4px; }
.stat .value small { font-size: 14px; color: var(--text-3); font-weight: 500; }

.narrativas-list { display: grid; gap: 14px; }
.narrativa-row {
  background: var(--white); border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.narrativa-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.narrativa-row .info h3 { font-size: 17px; margin-bottom: 4px; }
.narrativa-row .info .meta { color: var(--text-3); font-size: 13px; }
.narrativa-row .right { display: flex; align-items: center; gap: 12px; }

.empty {
  background: var(--white); border-radius: var(--radius-lg); padding: 48px 24px;
  text-align: center; box-shadow: var(--shadow);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-2); margin-bottom: 22px; }

.status-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.status-done       { background: var(--ok-bg); color: var(--success); }
.status-generating { background: var(--gold-bg); color: var(--gold); }
.status-error      { background: var(--err-bg); color: var(--danger); }

/* Grid de 4 ações principais */
.actions-grid {
  display: grid; gap: 14px; margin-bottom: 32px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) { .actions-grid { grid-template-columns: repeat(2, 1fr); } }

.action-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px 18px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.action-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold-lt);
}
.action-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.action-card .icon svg {
  width: 40px; height: 40px; stroke-width: 1.75;
  stroke: url(#accent-icon-gradient);
}
.action-card .title { font-weight: 700; color: var(--dark); font-size: 15px; }
.action-card .hint { font-size: 12px; color: var(--text-3); }
.action-card.disabled {
  cursor: not-allowed; opacity: .65;
  pointer-events: none;
}
.action-card .pill-soon {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent-gradient); color: var(--on-accent);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}
.action-card .pill-beta {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent-gradient); color: var(--on-accent);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}

/* Seção "Posts recentes" */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.section-header h2 { font-size: 18px; color: var(--dark); }
.section-header .link { color: var(--link); font-size: 13px; text-decoration: none; font-weight: 600; }
.section-header .link:hover { text-decoration: underline; }

.posts-list { display: grid; gap: 12px; }
.post-row {
  background: var(--white); border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.post-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-row .info { min-width: 0; flex: 1; }
.post-row .info h3 {
  font-size: 15px; margin-bottom: 4px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-row .info .meta { color: var(--text-3); font-size: 12px; }
.post-row .tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-2); color: var(--text-2); margin-right: 6px;
}
