/* ==========================================================================
   EIXO DIGITAL APP — tema e componentes
   Base: Bootstrap 5.3 + Bootstrap Icons. Paleta herdada do protótipo (eixo-custom.css).
   ========================================================================== */

:root {
  --eixo-primary: #6366f1;
  --eixo-primary-hover: #4f46e5;
  --eixo-primary-light: #eef2ff;
  --eixo-purple: #a855f7;
  --eixo-secondary: #0ea5e9;
  --eixo-dark: #0f172a;
  --eixo-text: #1e293b;
  --eixo-muted: #64748b;
  --eixo-border: #e2e8f0;
  --eixo-soft: #f1f5f9;
  --eixo-bg: #f6f7fb;
  --eixo-success: #10b981;
  --eixo-warning: #f59e0b;
  --eixo-danger: #ef4444;
  --eixo-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --sidebar-w: 256px;
  --radius: 14px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--eixo-text);
  --bs-body-bg: var(--eixo-bg);
  --bs-border-color: var(--eixo-border);
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99, 102, 241;
  --bs-link-color: #4f46e5;
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: #4338ca;
  --bs-secondary-color: var(--eixo-muted);
  --bs-focus-ring-color: rgba(99, 102, 241, .25);
}

body { background: var(--eixo-bg); font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.text-muted { color: var(--eixo-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.min-w-0 { min-width: 0; }

/* --- Bootstrap: cor primária da Eixo ------------------------------------ */
.btn { border-radius: 10px; font-weight: 600; padding: .5rem 1rem; }
.btn-sm { border-radius: 8px; padding: .35rem .75rem; }
.btn-lg { border-radius: 12px; padding: .75rem 1.25rem; }
.btn-primary {
  --bs-btn-bg: #6366f1; --bs-btn-border-color: #6366f1;
  --bs-btn-hover-bg: #4f46e5; --bs-btn-hover-border-color: #4f46e5;
  --bs-btn-active-bg: #4338ca; --bs-btn-active-border-color: #4338ca;
  --bs-btn-disabled-bg: #a5b4fc; --bs-btn-disabled-border-color: #a5b4fc;
}
.btn-gradient { background: var(--eixo-gradient); border: 0; color: #fff; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .6); }
.btn-gradient:hover { color: #fff; filter: brightness(1.05); }
.btn-success { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669; --bs-btn-active-bg: #047857; }
.btn-outline-primary { --bs-btn-color: #6366f1; --bs-btn-border-color: #c7d2fe; --bs-btn-hover-bg: #6366f1; --bs-btn-hover-border-color: #6366f1; --bs-btn-active-bg: #4f46e5; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--eixo-border); --bs-btn-hover-bg: var(--eixo-soft); --bs-btn-hover-border-color: #cbd5e1; }
.btn-soft { background: var(--eixo-primary-light); color: #4f46e5; border: 0; }
.btn-soft:hover { background: #e0e7ff; color: #4338ca; }
.form-control, .form-select { border-radius: 10px; border-color: #dbe2ea; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .15); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-text { font-size: .78rem; }
.form-check-input:checked { background-color: #6366f1; border-color: #6366f1; }
.card { border: 1px solid var(--eixo-border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card-header { background: transparent; border-bottom: 1px solid var(--eixo-border); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; font-size: 1rem; margin: 0; }
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-color: var(--eixo-soft); }
.table thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; background: #fafbfd; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #fafaff; }
.nav-tabs { border-bottom-color: var(--eixo-border); }
.nav-pills .nav-link { color: var(--eixo-muted); font-weight: 600; border-radius: 10px; }
.nav-pills .nav-link.active { background: #fff; color: #4f46e5; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.nav-segment { background: var(--eixo-soft); padding: 4px; border-radius: 12px; display: inline-flex; gap: 4px; flex-wrap: wrap; }
.nav-segment .nav-link { padding: .4rem .85rem; font-size: .85rem; }
.modal-content { border: 0; border-radius: 18px; }
.alert { border-radius: 12px; border: 0; }
.badge { font-weight: 600; }
.dropdown-menu { border-color: var(--eixo-border); border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .2); }

/* --- Estrutura: sidebar + topo ------------------------------------------ */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: #fff; border-right: 1px solid var(--eixo-border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1040;
}
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: 64px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--eixo-border);
  display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 1030;
}
.app-content { padding: 28px; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; }
.app-footer { padding: 16px 28px; font-size: .78rem; color: #94a3b8; text-align: center; }
.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .2); }
  body.sidebar-open .app-sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 1035; }
  .sidebar-toggle { display: inline-flex; }
  .app-topbar { padding: 0 16px; }
  .app-content { padding: 20px 16px; }
}

.brand { display: flex; align-items: center; gap: 10px; padding: 20px 22px; color: var(--eixo-dark); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--eixo-dark); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--eixo-gradient); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(99, 102, 241, .7); }
.brand small { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-top: -2px; }
/* Logo da Eixo: a imagem já traz o nome, o subtítulo fica embaixo. */
.brand:has(.brand-logo) { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 22px 14px; }
.brand-logo { height: 34px; width: auto; display: block; }
.auth-side .brand-logo { height: 44px; }

.side-nav { padding: 8px 14px; flex: 1; overflow-y: auto; }
.side-nav .nav-section { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; padding: 18px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #475569; font-weight: 500; margin-bottom: 2px; }
.side-link i { font-size: 1.1rem; color: #94a3b8; }
.side-link:hover { background: var(--eixo-soft); color: var(--eixo-dark); }
.side-link.active { background: var(--eixo-primary-light); color: #4f46e5; font-weight: 600; }
.side-link.active i { color: #6366f1; }
.side-link .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #fee2e2; color: #dc2626; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.side-link .count.count-amber { background: #fef3c7; color: #b45309; }
.side-cta { margin: 6px 14px 14px; }
.side-user { border-top: 1px solid var(--eixo-border); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.side-user .name { font-weight: 600; font-size: .85rem; line-height: 1.2; }
.side-user .role { font-size: .72rem; color: var(--eixo-muted); }
.client-banner { margin: 4px 14px 8px; padding: 12px 14px; border-radius: 12px; background: var(--eixo-soft); display: flex; align-items: center; gap: 10px; }
.client-banner .label { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.client-banner .name { font-weight: 700; font-size: .9rem; line-height: 1.2; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6366f1; margin-bottom: 4px; }
.page-head .lead-text { color: var(--eixo-muted); margin: 4px 0 0; }
.breadcrumb-lite { font-size: .8rem; color: var(--eixo-muted); margin-bottom: 6px; }
.breadcrumb-lite a { color: var(--eixo-muted); }
.breadcrumb-lite a:hover { color: #4f46e5; }

/* --- Avatares ------------------------------------------------------------ */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: .78rem; color: #fff; background: var(--eixo-gradient); object-fit: cover; overflow: hidden; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-client { background: linear-gradient(135deg, #0ea5e9, #10b981); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- Status, tipos e SLA ------------------------------------------------ */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: .72rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-rascunho { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.status-em-producao { background: #e0f2fe; color: #0284c7; border-color: #bae6fd; }
.status-aguardando { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.status-ajustes { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.status-aprovado { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; }
.status-agendado { background: #ede9fe; color: #7c3aed; border-color: #ddd6fe; }

.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #475569; white-space: nowrap; }
.type-chip i { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .85rem; color: #fff; }
.type-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }

.sla-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.sla-ok { background: #ecfdf5; color: #059669; }
.sla-warning { background: #fffbeb; color: #d97706; }
.sla-late { background: #fef2f2; color: #dc2626; }

.version-badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--eixo-dark); color: #fff; letter-spacing: .02em; }
.version-badge.muted { background: #e2e8f0; color: #475569; }

/* --- KPIs e cards de painel --------------------------------------------- */
.kpi { padding: 20px; height: 100%; }
.kpi .kpi-label { font-size: .8rem; font-weight: 600; color: var(--eixo-muted); display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; }
.kpi .kpi-foot { font-size: .78rem; color: var(--eixo-muted); margin-top: 6px; }
.kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.kpi-icon.amber { background: #fef3c7; color: #d97706; }
.kpi-icon.red { background: #fee2e2; color: #dc2626; }
.kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon.green { background: #dcfce7; color: #16a34a; }
.kpi-icon.purple { background: #ede9fe; color: #7c3aed; }
a.kpi-link { color: inherit; display: block; height: 100%; }
a.kpi-link .card { transition: transform .15s ease, box-shadow .15s ease; }
a.kpi-link:hover .card { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .25); }

.hero {
  background: var(--eixo-gradient); color: #fff; border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(99, 102, 241, .7);
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero::before { content: ""; position: absolute; right: 120px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0; position: relative; z-index: 1; }
.hero p { opacity: .9; max-width: 640px; margin: 0; position: relative; z-index: 1; }
.hero .hero-stats { display: flex; gap: 28px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero .hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero .hero-stats span { font-size: .78rem; opacity: .85; }

.review-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .3); }
.review-card .thumb { aspect-ratio: 16 / 10; background: var(--eixo-soft); display: grid; place-items: center; overflow: hidden; position: relative; }
.review-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card .thumb .type-icon { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 18px; }
.review-card .thumb .corner { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.review-card .card-body { flex: 1; display: flex; flex-direction: column; }
.review-card h3 { font-size: 1rem; font-weight: 700; margin: 6px 0 4px; }

.list-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--eixo-soft); }
.item-title { font-weight: 600; color: var(--eixo-dark); }
a.item-title:hover { color: #4f46e5; }
.item-sub { font-size: .78rem; color: var(--eixo-muted); }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--eixo-border); font-size: .85rem; }
.activity li:last-child { border-bottom: 0; }
.activity .a-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--eixo-soft); color: #64748b; font-size: .85rem; }
.activity .a-icon.approved { background: #dcfce7; color: #16a34a; }
.activity .a-icon.adjustments { background: #fee2e2; color: #dc2626; }
.activity .a-icon.sent { background: #e0e7ff; color: #4f46e5; }
.activity .a-icon.published { background: #ede9fe; color: #7c3aed; }
.activity time { font-size: .72rem; color: #94a3b8; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--eixo-muted); }
.empty-state i { font-size: 2.2rem; color: #c7d2fe; display: block; margin-bottom: 10px; }
.empty-state h4 { font-size: 1rem; font-weight: 700; color: var(--eixo-text); }

.client-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--eixo-soft); }
.client-row:last-child { border-bottom: 0; }
.mini-count { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

/* --- Página da entrega -------------------------------------------------- */
.version-switch { display: inline-flex; gap: 4px; background: var(--eixo-soft); padding: 4px; border-radius: 10px; }
.version-switch a { padding: 4px 12px; border-radius: 7px; font-size: .78rem; font-weight: 700; color: var(--eixo-muted); }
.version-switch a.active { background: #fff; color: var(--eixo-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.changelog-note { display: flex; gap: 14px; align-items: flex-start; background: #f5f3ff; border: 1px solid #e0e7ff; border-radius: 14px; padding: 14px 18px; }
.changelog-note i { font-size: 1.3rem; color: #6366f1; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--eixo-soft); font-size: .85rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--eixo-muted); flex-shrink: 0; }
.info-list .v { font-weight: 600; text-align: right; }

.decision-card { border: 2px solid #c7d2fe; background: linear-gradient(180deg, #fafaff 0%, #fff 100%); }
.decision-card .card-title { font-size: 1.05rem; }
.decision-done { border: 2px solid #bbf7d0; background: #f0fdf4; }

.approval-bar {
  position: sticky; bottom: 16px; z-index: 100; margin-top: 24px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, .9); border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, .15);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.comment { display: flex; gap: 10px; margin-bottom: 16px; }
.comment .bubble { background: var(--eixo-soft); border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: .86rem; flex: 1; min-width: 0; }
.comment.from-client .bubble { background: #fff7ed; }
.comment.kind-adjustment .bubble { background: #fef2f2; border: 1px solid #fecaca; }
.comment.kind-approval .bubble { background: #f0fdf4; border: 1px solid #bbf7d0; }
.comment .meta { font-size: .72rem; color: var(--eixo-muted); margin-bottom: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.comment .meta strong { color: var(--eixo-dark); font-size: .78rem; }
.comment .body { white-space: pre-line; word-wrap: break-word; }
.comment .ref { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; background: #fff; border: 1px solid var(--eixo-border); padding: 1px 7px; border-radius: 6px; margin-bottom: 4px; color: #475569; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; display: inline-grid; place-items: center; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--eixo-border); }
.timeline li { position: relative; padding: 0 0 16px 42px; font-size: .84rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-icon { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--eixo-border); display: grid; place-items: center; font-size: .8rem; color: #64748b; }
.timeline .t-icon.approved { border-color: #86efac; color: #16a34a; background: #f0fdf4; }
.timeline .t-icon.adjustments { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }
.timeline .t-icon.sent { border-color: #a5b4fc; color: #4f46e5; background: #eef2ff; }
.timeline .t-icon.published { border-color: #c4b5fd; color: #7c3aed; background: #f5f3ff; }
.timeline .audit { font-size: .7rem; color: #94a3b8; }

/* --- Mockups de redes sociais ------------------------------------------- */
.channel-tabs { justify-content: center; margin-bottom: 18px; }
.social-mockup { max-width: 470px; margin: 0 auto; background: #fff; border: 1px solid var(--eixo-border); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18); }
.social-mockup .sm-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.social-mockup .sm-avatar { width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f59e0b, #ec4899, #8b5cf6); }
.social-mockup .sm-avatar > * { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; }
.social-mockup .sm-name { font-weight: 700; font-size: .86rem; line-height: 1.1; }
.social-mockup .sm-sub { font-size: .72rem; color: var(--eixo-muted); }
.social-mockup .sm-actions { display: flex; align-items: center; gap: 16px; padding: 10px 14px 4px; font-size: 1.35rem; }
.social-mockup .sm-caption { padding: 4px 14px 16px; font-size: .88rem; line-height: 1.5; }
.caption-text { white-space: normal; word-wrap: break-word; }
.caption-text.clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.caption-more { border: 0; background: none; padding: 0; color: #94a3b8; font-size: .86rem; }
.caption-tag { color: #1d4ed8; }
.social-mockup.is-tall { max-width: 380px; }
.social-mockup.feed-style .sm-caption { padding: 0 14px 12px; }
.social-mockup.feed-style .sm-avatar { background: none; padding: 0; }
.social-mockup.feed-style .sm-avatar > * { border: 0; border-radius: 8px; }
.feed-reactions { display: flex; justify-content: space-around; border-top: 1px solid var(--eixo-soft); padding: 8px 6px; font-size: .8rem; font-weight: 600; color: #64748b; }
.feed-reactions span { display: inline-flex; gap: 6px; align-items: center; }

/* Carrossel (scroll-snap, sem dependências) */
.carousel-lite { position: relative; background: #0f172a; }
.carousel-lite .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: var(--ratio, 1); }
.carousel-lite .track::-webkit-scrollbar { display: none; }
.carousel-lite .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: grid; place-items: center; background: #0f172a; }
.carousel-lite .slide img, .carousel-lite .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-lite .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0f172a; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 2; }
.carousel-lite .nav-btn.prev { left: 10px; }
.carousel-lite .nav-btn.next { right: 10px; }
.carousel-lite .nav-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-lite .counter { position: absolute; top: 12px; right: 12px; background: rgba(15, 23, 42, .75); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; z-index: 2; }
.carousel-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 0; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; transition: all .2s; }
.carousel-dots span.active { background: #6366f1; width: 16px; border-radius: 3px; }
.slide-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.slide-strip button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 64px; height: 64px; flex-shrink: 0; background: var(--eixo-soft); position: relative; }
.slide-strip button.active { border-color: #6366f1; }
.slide-strip img, .slide-strip video { width: 100%; height: 100%; object-fit: cover; }
.slide-strip .num { position: absolute; left: 4px; bottom: 4px; background: rgba(15, 23, 42, .8); color: #fff; font-size: .6rem; font-weight: 800; border-radius: 4px; padding: 0 4px; }
.slide-strip .has-comments { position: absolute; right: 3px; top: 3px; background: #ef4444; color: #fff; font-size: .6rem; font-weight: 800; border-radius: 8px; padding: 0 5px; }

/* --- Blog ---------------------------------------------------------------- */
.article-preview { background: #fff; border-radius: var(--radius); border: 1px solid var(--eixo-border); overflow: hidden; }
.article-preview .cover { background: var(--eixo-soft); }
.article-preview .cover img { width: 100%; height: auto; display: block; }
.article-preview .article-inner { padding: 36px clamp(20px, 5vw, 56px) 48px; max-width: 780px; margin: 0 auto; }
.article-preview h1.article-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--eixo-muted); }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.8; color: #1e293b; margin-top: 28px; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--bs-body-font-family); font-weight: 800; letter-spacing: -.01em; margin: 1.8em 0 .6em; color: #0f172a; }
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body blockquote { border-left: 4px solid #6366f1; background: #f5f3ff; margin: 1.5em 0; padding: 14px 20px; border-radius: 0 12px 12px 0; font-style: italic; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.article-body a { color: #4f46e5; text-decoration: underline; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-family: var(--bs-body-font-family); font-size: .9rem; }
.article-body th, .article-body td { border: 1px solid var(--eixo-border); padding: 8px 10px; }

.serp { font-family: Arial, sans-serif; padding: 14px 16px; border: 1px solid var(--eixo-border); border-radius: 12px; background: #fff; }
.serp .serp-site { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #202124; }
.serp .serp-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--eixo-soft); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #475569; }
.serp .serp-url { color: #4d5156; font-size: .74rem; word-break: break-all; }
.serp .serp-title { color: #1a0dab; font-size: 1.1rem; line-height: 1.3; margin: 6px 0 3px; }
.serp .serp-desc { color: #4d5156; font-size: .84rem; line-height: 1.45; }
.seo-check { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.seo-check li { display: flex; gap: 8px; padding: 6px 0; align-items: flex-start; }
.seo-check .ok { color: #16a34a; }
.seo-check .warn { color: #d97706; }
.seo-check .bad { color: #dc2626; }
.meter { height: 6px; border-radius: 3px; background: var(--eixo-soft); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 3px; }

/* --- Sites ---------------------------------------------------------------- */
.viewport-switcher { display: inline-flex; background: var(--eixo-soft); padding: 4px; border-radius: 10px; gap: 4px; }
.viewport-btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: .82rem; font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 6px; }
.viewport-btn.active { background: #fff; color: #4f46e5; box-shadow: 0 2px 4px rgba(15, 23, 42, .06); }
.sandbox-stage { background: #0f172a; border-radius: 14px; padding: 20px; display: flex; justify-content: center; overflow: auto; }
.sandbox-frame { background: #fff; border: 0; border-radius: 8px; height: 680px; width: 100%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); transition: width .3s ease; }
.sandbox-frame.tablet { width: 768px; flex-shrink: 0; }
.sandbox-frame.mobile { width: 375px; flex-shrink: 0; }
.browser-bar { display: flex; align-items: center; gap: 8px; background: #1e293b; color: #94a3b8; padding: 8px 12px; border-radius: 10px; font-size: .78rem; margin-bottom: 12px; }
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.browser-bar .addr { flex: 1; background: #0f172a; border-radius: 6px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figma-frame { width: 100%; height: 640px; border: 0; border-radius: 12px; background: #1e1e1e; }

/* A área acompanha o tamanho real da imagem (prints de celular não ficam esticados). */
.pin-area { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--eixo-border); background: #fff; width: fit-content; max-width: 100%; margin: 0 auto; }
.pin-area img { display: block; max-width: 100%; height: auto; }
.pin-area.can-pin { cursor: crosshair; }
.comment-pin { position: absolute; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: #ef4444; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .72rem; transform: translate(-4px, -100%) rotate(0deg); box-shadow: 0 4px 10px rgba(239, 68, 68, .45); border: 2px solid #fff; cursor: pointer; transition: transform .15s; z-index: 2; }
.comment-pin:hover, .comment-pin.highlight { transform: translate(-4px, -100%) scale(1.2); background: #dc2626; }
.comment-pin.draft { background: #6366f1; animation: pin-pulse 1.2s infinite; }
@keyframes pin-pulse { 50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, .25); } }
.pin-hint { position: absolute; left: 12px; bottom: 12px; background: rgba(15, 23, 42, .8); color: #fff; font-size: .75rem; padding: 5px 10px; border-radius: 8px; pointer-events: none; }

/* --- Anúncios ------------------------------------------------------------ */
.ad-meta { background: #fff; border: 1px solid var(--eixo-border); border-radius: 14px; overflow: hidden; max-width: 440px; margin: 0 auto; box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .2); }
.ad-meta .ad-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ad-meta .ad-text { padding: 0 14px 12px; font-size: .86rem; white-space: pre-line; }
.ad-meta .ad-media { aspect-ratio: var(--ratio, 1); background: var(--eixo-soft); display: grid; place-items: center; color: #94a3b8; }
.ad-meta .ad-media img, .ad-meta .ad-media video { width: 100%; height: 100%; object-fit: cover; }
.ad-meta .ad-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafc; padding: 10px 14px; border-top: 1px solid var(--eixo-border); }
.ad-meta .ad-cta .domain { font-size: .68rem; text-transform: uppercase; color: var(--eixo-muted); }
.ad-meta .ad-cta .headline { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.ad-google { font-family: Arial, sans-serif; background: #fff; border: 1px solid var(--eixo-border); border-radius: 14px; padding: 16px 18px; max-width: 600px; margin: 0 auto; }
.ad-google .sponsored { font-weight: 700; font-size: .8rem; color: #202124; }
.ad-google .g-url { font-size: .78rem; color: #202124; margin: 2px 0; }
.ad-google .g-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; }
.ad-google .g-desc { color: #4d5156; font-size: .86rem; margin-top: 4px; }
.stat-tile { background: #fff; border: 1px solid var(--eixo-border); border-radius: 14px; padding: 16px; height: 100%; }
.stat-tile .label { font-size: .75rem; font-weight: 600; color: var(--eixo-muted); display: flex; gap: 6px; align-items: center; }
.stat-tile .value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat-tile .foot { font-size: .75rem; color: var(--eixo-muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--eixo-soft); border-radius: 8px; padding: 3px 10px; font-size: .78rem; font-weight: 600; color: #334155; margin: 0 4px 4px 0; }
.chip.neg { background: #fef2f2; color: #b91c1c; text-decoration: line-through; }
.dl-grid { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: .86rem; margin: 0; }
.dl-grid dt { color: var(--eixo-muted); font-weight: 500; }
.dl-grid dd { margin: 0; font-weight: 500; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; gap: 2px; } .dl-grid dd { margin-bottom: 8px; } }

/* --- Projetos personalizados -------------------------------------------- */
.phase-list { list-style: none; padding: 0; margin: 0; }
.phase-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--eixo-soft); }
.phase-list li:last-child { border-bottom: 0; }
.phase-list .p-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .9rem; background: var(--eixo-soft); color: #64748b; }
.phase-list .p-dot.done { background: #dcfce7; color: #16a34a; }
.phase-list .p-dot.current { background: #6366f1; color: #fff; box-shadow: 0 0 0 4px #e0e7ff; }
.phase-list .p-dot.waiting { background: #fef3c7; color: #d97706; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--eixo-border); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.file-row:hover { border-color: #c7d2fe; background: #fafaff; }
.file-row .f-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--eixo-primary-light); color: #4f46e5; font-size: 1.25rem; flex-shrink: 0; }
.progress-thin { height: 8px; border-radius: 4px; background: var(--eixo-soft); }
.progress-thin .progress-bar { background: var(--eixo-gradient); border-radius: 4px; }

/* --- Formulário de entrega ----------------------------------------------- */
.form-section { margin-bottom: 20px; }
.form-section > .card-header { display: flex; align-items: center; gap: 10px; }
.form-section > .card-header i { color: #6366f1; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chips input { display: none; }
.check-chips label { border: 1.5px solid var(--eixo-border); border-radius: 10px; padding: 7px 12px; font-size: .84rem; font-weight: 600; color: #475569; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; user-select: none; background: #fff; }
.check-chips input:checked + label { border-color: #6366f1; background: var(--eixo-primary-light); color: #4338ca; }
.media-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--eixo-border); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.media-item .preview { aspect-ratio: 1 / 1; background: var(--eixo-soft); display: grid; place-items: center; overflow: hidden; }
.media-item .preview img, .media-item .preview video { width: 100%; height: 100%; object-fit: cover; }
.media-item .preview i { font-size: 2rem; color: #818cf8; }
.media-item .dims { font-size: .66rem; font-weight: 700; color: #6366f1; padding: 0 8px; }
.media-item .name { font-size: .7rem; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--eixo-muted); }
.media-item .tools { display: flex; justify-content: space-between; padding: 4px 6px 6px; }
.media-item .tools button { border: 0; background: var(--eixo-soft); width: 28px; height: 28px; border-radius: 7px; color: #475569; display: grid; place-items: center; }
.media-item .tools button:hover { background: #e0e7ff; color: #4338ca; }
.media-item .tools button.remove:hover { background: #fee2e2; color: #dc2626; }
.media-item .order { position: absolute; top: 6px; left: 6px; background: rgba(15, 23, 42, .8); color: #fff; font-size: .65rem; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
.media-item.is-new { border-style: dashed; border-color: #a5b4fc; }
.media-item.is-new .order { background: #6366f1; }
.upload-drop { border: 2px dashed #c7d2fe; border-radius: 12px; background: #fafaff; padding: 18px; text-align: center; color: #6366f1; cursor: pointer; display: block; transition: background .15s; }
.upload-drop:hover, .upload-drop.dragover { background: #eef2ff; }
.upload-drop i { font-size: 1.6rem; display: block; }
.upload-drop input { display: none; }
.repeater-row { border: 1px solid var(--eixo-border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fcfcfe; position: relative; }
.repeater-row .remove-row { position: absolute; top: 10px; right: 10px; }
.char-counter { font-size: .72rem; font-weight: 600; color: #94a3b8; }
.char-counter.warn { color: #d97706; }
.char-counter.over { color: #dc2626; }
.editor-wrap { border: 1px solid #dbe2ea; border-radius: 12px; overflow: hidden; background: #fff; }
.editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--eixo-border); background: #fafbfd; }
.editor-wrap .ql-container.ql-snow { border: 0; font-family: Georgia, serif; font-size: 1.02rem; }
.editor-wrap .ql-editor { min-height: 420px; line-height: 1.75; }
.editor-wrap textarea { border: 0; border-radius: 0; min-height: 420px; font-family: monospace; font-size: .85rem; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246, 247, 251, .92); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--eixo-border); z-index: 50; }
.type-option { display: block; height: 100%; color: inherit; }
.type-option .card { height: 100%; transition: all .15s ease; }
.type-option:hover .card { border-color: #a5b4fc; transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(99, 102, 241, .45); }

/* --- Calendário ---------------------------------------------------------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--eixo-border); border-left: 1px solid var(--eixo-border); }
.cal-grid .cal-head { background: #fafbfd; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; padding: 8px 10px; border-right: 1px solid var(--eixo-border); border-bottom: 1px solid var(--eixo-border); }
.cal-grid .cal-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--eixo-border); border-bottom: 1px solid var(--eixo-border); background: #fff; min-width: 0; }
.cal-grid .cal-day.other { background: #fafbfd; }
.cal-grid .cal-day.other .num { color: #cbd5e1; }
.cal-grid .cal-day.today .num { background: #6366f1; color: #fff; }
.cal-grid .num { font-size: .75rem; font-weight: 700; color: #475569; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.cal-item { display: flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; color: #1e293b; background: var(--eixo-soft); border-left: 3px solid #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item:hover { filter: brightness(.97); color: #0f172a; }
.cal-item.st-aguardando { background: #fffbeb; border-left-color: #f59e0b; }
.cal-item.st-ajustes { background: #fef2f2; border-left-color: #ef4444; }
.cal-item.st-aprovado { background: #f0fdf4; border-left-color: #22c55e; }
.cal-item.st-publicado { background: #f5f3ff; border-left-color: #8b5cf6; }
.cal-item.st-producao, .cal-item.st-rascunho { background: #f0f9ff; border-left-color: #38bdf8; }
.cal-item .time { color: #64748b; font-weight: 700; }
.cal-legend { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: #38bdf8; }
.cal-legend.st-aguardando { background: #f59e0b; }
.cal-legend.st-ajustes { background: #ef4444; }
.cal-legend.st-aprovado { background: #22c55e; }
.cal-legend.st-publicado { background: #8b5cf6; }
@media (max-width: 767.98px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-grid .cal-head, .cal-grid .cal-day.other, .cal-grid .cal-day.empty { display: none; }
  .cal-grid .cal-day { min-height: 0; display: flex; gap: 10px; }
  .cal-grid .cal-day .items { flex: 1; min-width: 0; }
}

/* --- Login / instalação -------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--eixo-gradient); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -120px; bottom: -120px; }
.auth-side h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 480px; }
.auth-side .feature { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; max-width: 440px; position: relative; z-index: 1; }
.auth-side .feature i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex-shrink: 0; }
.auth-side .brand, .auth-side .brand:hover { color: #fff; padding: 0; }
.auth-side .brand-mark { background: #fff; color: #6366f1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 991.98px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; }
  .auth-side h2 { font-size: 1.5rem; margin: 18px 0 0; }
  .auth-side .features { display: none; }
}
.demo-logins { font-size: .8rem; background: var(--eixo-soft); border-radius: 12px; padding: 12px 14px; }
.demo-logins button { border: 0; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-weight: 600; margin: 3px 3px 0 0; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.demo-logins button:hover { background: var(--eixo-primary-light); color: #4338ca; }

.flash-stack { margin-bottom: 20px; }
.access-card { border: 2px solid #c4b5fd; background: linear-gradient(180deg, #faf5ff 0%, #fff 100%); }
.access-card textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; }
.flash-stack .alert { display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .25); }
.flash-stack .alert i { font-size: 1.1rem; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info { background: #eef2ff; color: #3730a3; }

/* --- Projeto de SEO ------------------------------------------------------- */
.seo-table td { vertical-align: middle; }
.kw-bar { height: 5px; border-radius: 3px; background: var(--eixo-soft); margin-top: 4px; max-width: 140px; }
.kw-bar span { display: block; height: 100%; border-radius: 3px; background: #14b8a6; }
.kd-chip, .intent-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 6px; white-space: nowrap; }
.kd-easy { background: #dcfce7; color: #15803d; }
.kd-mid { background: #fef3c7; color: #b45309; }
.kd-hard { background: #fee2e2; color: #b91c1c; }
.intent-informacional { background: #e0f2fe; color: #0369a1; }
.intent-comercial { background: #fef3c7; color: #b45309; }
.intent-transacional { background: #dcfce7; color: #15803d; }
.intent-navegacional { background: #f1f5f9; color: #475569; }
.before-after { border: 1px solid var(--eixo-border); border-radius: 12px; padding: 14px; }
.ba-box { border-radius: 10px; padding: 10px 12px; font-size: .88rem; height: 100%; word-break: break-word; }
.ba-before { background: #fef2f2; color: #7f1d1d; }
.ba-after { background: #f0fdf4; color: #14532d; }
.ba-label { font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.prio { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; height: fit-content; flex-shrink: 0; min-width: 58px; text-align: center; }
.prio-alta { background: #fee2e2; color: #b91c1c; }
.prio-media { background: #fef3c7; color: #b45309; }
.prio-baixa { background: #e0f2fe; color: #0369a1; }

/* --- Resultados ------------------------------------------------------------ */
.kpi-tile { background: #fff; border: 1px solid var(--eixo-border); border-radius: var(--radius); padding: 16px 18px; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.kpi-tile-label { font-size: .8rem; font-weight: 600; color: var(--eixo-muted); }
.kpi-tile-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--eixo-dark); white-space: nowrap; }
.kpi-tile .sparkline { width: 96px; height: auto; min-width: 0; flex-shrink: 1; }
.kpi-tile-foot { font-size: .78rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sparkline { flex-shrink: 0; overflow: visible; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.delta-good { background: #ecfdf5; color: #15803d; }
.delta-bad { background: #fef2f2; color: #b91c1c; }
.delta-neutral { background: var(--eixo-soft); color: #475569; }
.kpi-goal { font-size: .75rem; color: var(--eixo-muted); border-top: 1px dashed var(--eixo-border); padding-top: 6px; margin-top: auto; }
.kpi-goal.is-met { color: #15803d; font-weight: 600; }
.analysis-card { border-left: 4px solid #6366f1; }
.chart-card .card-header { border-bottom: 0; padding-bottom: .25rem; }
.chart-box { position: relative; height: 230px; }
.goal-key { display: inline-block; width: 14px; border-top: 2px dashed #64748b; vertical-align: middle; margin: 0 2px; }
.results-table th, .results-table td { font-size: .8rem; }
.results-table td.num, .kw-rank td.text-end { font-variant-numeric: tabular-nums; }
.results-table th:first-child, .results-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.area-option { display: block; cursor: pointer; }
.area-option input { position: absolute; opacity: 0; }
.area-option .card { border-width: 2px; transition: border-color .15s, background .15s; }
.area-option input:checked + .card { border-color: #6366f1; background: #fafaff; }
.area-option input:focus-visible + .card { box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .25); }
