/* ============================================
   OASIS INSIGHTS · Dashboard
   Identidade: navy + teal + cream, Fraunces + Inter
   ============================================ */

:root {
  --navy: #0E2D4F;
  --navy-2: #163C69;
  --navy-deep: #0A2344;
  --teal: #4FB3A9;
  --teal-2: #6FC9BF;
  --sky: #BDE4E0;
  --mist: #E8F4F2;
  --cream: #F1EADC;        /* mais saturado, papel envelhecido suave */
  --cream-2: #EBE3D1;
  --cream-warm: #E8DFCB;
  --sand: #DDD0B3;
  --sand-2: #D5C7A6;
  --ink: #0B1A30;
  --muted: #5A6B80;
  --muted-2: #8597A8;
  --line: #DDD3BE;
  --line-2: #C8BFA8;
  --surface: #FBF6EB;       /* cards com tom de creme leve */
  --surface-2: #F5EFDF;
  --surface-3: #EFE7D3;

  --good: #2F8F6A;
  --good-bg: #DCEDE3;
  --warn: #D08C2A;
  --warn-bg: #F6E8CC;
  --bad: #B83A3A;
  --bad-bg: #F2D7D7;
  --info: #4A6EBC;
  --info-bg: #DCE3F2;

  --fruit-orange: #FF9A56;
  --fruit-berry: #E74C6B;
  --fruit-grape: #8E44AD;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(14, 45, 79, 0.04);
  --shadow-sm: 0 2px 8px rgba(14, 45, 79, 0.05), 0 1px 2px rgba(14, 45, 79, 0.03);
  --shadow: 0 6px 24px rgba(14, 45, 79, 0.07), 0 2px 4px rgba(14, 45, 79, 0.04);
  --shadow-lg: 0 18px 48px rgba(14, 45, 79, 0.12), 0 4px 12px rgba(14, 45, 79, 0.06);

  --sidebar-w: 252px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

em.accent {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--teal);
  font-weight: 500;
  font-size: 1.04em;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 14px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FBF6EB 0%, #F1EADC 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.brand-full {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(14, 45, 79, 0.15));
}
.brand-tag-line {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--teal);
  margin-left: 2px;
}
.brand-logo { width: 30px; height: 36px; filter: drop-shadow(0 2px 8px rgba(79, 179, 169, 0.4)); }
.brand-name { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.brand-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: var(--teal-2); margin-top: 3px; }

.sidebar-client {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(111, 201, 191, 0.18);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.client-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-2); font-weight: 700; }
.client-name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; margin: 4px 0 8px; letter-spacing: -0.01em; }
.client-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.tier-pill { background: rgba(79, 179, 169, 0.2); color: var(--teal-2); padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 10px; letter-spacing: 0.05em; border: 1px solid rgba(111, 201, 191, 0.3); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(189, 228, 224, 0.6); font-weight: 700;
  padding: 14px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
  position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: rgba(79, 179, 169, 0.18); color: var(--teal-2); }
.nav-item.active::before {
  content: ""; position: absolute; left: -18px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; background: var(--teal-2); border-radius: 0 2px 2px 0;
}
.nav-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-2); font-size: 13px;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: rgba(184, 58, 58, 0.25); color: #FFB0B0;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px;
  border: 1px solid rgba(184, 58, 58, 0.4);
}
.nav-badge.warn { background: rgba(208, 140, 42, 0.25); color: #F6CD8C; border-color: rgba(208, 140, 42, 0.4); }
.nav-badge.bad { background: rgba(184, 58, 58, 0.25); color: #FFB0B0; border-color: rgba(184, 58, 58, 0.4); }

.sidebar-foot {
  font-size: 10.5px; color: rgba(189, 228, 224, 0.5);
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.sidebar-foot a { color: var(--teal-2); text-decoration: none; }
.sidebar-foot a:hover { text-decoration: underline; }

/* ============ MAIN ============ */
.main {
  min-width: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.topbar-left { min-width: 0; }
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}
.page-sub {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}

.topbar-actions { display: flex; gap: 10px; align-items: center; }
.action-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.action-btn:hover { background: var(--mist); border-color: var(--teal); color: var(--navy); }
.action-btn span { color: var(--teal); font-size: 14px; line-height: 1; }
.action-btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.action-btn.primary span { color: var(--teal-2); }
.action-btn.primary:hover { background: var(--navy-2); }

.topbar-status {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }
.dot.live { background: var(--teal); box-shadow: 0 0 0 3px rgba(79, 179, 169, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(79, 179, 169, 0.25); } 50% { box-shadow: 0 0 0 6px rgba(79, 179, 169, 0); } }

.route-container {
  padding: 28px 36px 60px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

/* ============ SECTION HEADS ============ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 32px 0 18px;
  flex-wrap: wrap;
}
.section-header:first-child { margin-top: 0; }
.section-header h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
.section-header h2::before {
  content: ""; display: inline-block;
  width: 4px; height: 18px; background: var(--teal);
  margin-right: 12px; vertical-align: -3px; border-radius: 2px;
}
.section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; margin-left: 16px; }
.section-cta { display: flex; gap: 8px; }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-sm); }
.card.clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s; }
.card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sky); }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted-2); margin-bottom: 3px; }
.card-head h3 { font-family: 'Fraunces', serif; font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; color: var(--navy); margin: 0; }
.card-meta { font-size: 11px; color: var(--muted); text-align: right; }

/* ============ KPI GRID ============ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 1400px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s, box-shadow 0.2s;
}
.kpi::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
}
.kpi.k-warn::before { background: var(--warn); }
.kpi.k-bad::before { background: var(--bad); }
.kpi.k-good::before { background: var(--good); }
.kpi.k-info::before { background: var(--info); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted-2); margin-bottom: 6px; }
.kpi-value {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.05;
}
.kpi-value small {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--muted);
  font-weight: 500; margin-left: 3px; letter-spacing: 0;
}
.kpi-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600;
  margin-top: 6px; padding: 2px 8px;
  border-radius: 6px;
}
.kpi-delta.up { background: var(--good-bg); color: var(--good); }
.kpi-delta.down { background: var(--bad-bg); color: var(--bad); }
.kpi-delta.flat { background: var(--mist); color: var(--muted); }
.kpi-foot { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ============ GRID HELPERS ============ */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
@media (max-width: 1180px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ============ ALERTS ============ */
.alerts-strip { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
@media (max-width: 1180px) { .alerts-strip { grid-template-columns: 1fr; } }
.alert {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.alert:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.alert.sev-high { border-left-color: var(--bad); }
.alert.sev-medium { border-left-color: var(--warn); }
.alert-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.alert-sector { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.alert-sev { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.alert-sev.high { background: var(--bad-bg); color: var(--bad); }
.alert-sev.medium { background: var(--warn-bg); color: var(--warn); }
.alert-title {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 500; line-height: 1.3;
  margin: 0 0 8px; color: var(--navy); letter-spacing: -0.01em;
}
.alert-trigger { font-size: 12px; color: var(--muted); line-height: 1.5; }
.alert-tags { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.alert-tag {
  background: var(--mist); color: var(--navy);
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--sky);
}

/* ============ AXIS CARDS GRID ============ */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) { .axes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .axes-grid { grid-template-columns: 1fr; } }
.axis-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s;
  box-shadow: var(--shadow-xs);
}
.axis-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sky); }
.axis-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.axis-num {
  font-family: 'Fraunces', serif;
  font-size: 13px; color: var(--teal); font-weight: 500;
  background: var(--mist);
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--sky);
}
.axis-name {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 500; line-height: 1.25;
  color: var(--navy); letter-spacing: -0.01em;
  margin: 0;
}
.axis-score-block { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.axis-score {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1;
}
.axis-score-max { font-size: 14px; color: var(--muted); font-weight: 500; }
.axis-delta { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.axis-delta.up { background: var(--good-bg); color: var(--good); }
.axis-delta.down { background: var(--bad-bg); color: var(--bad); }
.axis-spark { margin-top: 8px; height: 36px; }
.axis-foot { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.axis-worst-sector { color: var(--bad); font-weight: 600; }

/* ============ SMART DROP CARDS ============ */
.drop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.drop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.drop-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-color, var(--teal));
}
.drop-icon-wrap {
  display: inline-flex;
  background: var(--mist);
  width: 40px; height: 40px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--accent-color, var(--teal));
  margin-bottom: 10px;
  border: 1px solid var(--sky);
}
.drop-name {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.drop-signal { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.drop-count { display: flex; align-items: baseline; gap: 8px; }
.drop-count-val { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 400; color: var(--navy); letter-spacing: -0.02em; }
.drop-count-unit { font-size: 11px; color: var(--muted); }
.drop-axes { font-size: 10.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ============ HEATMAPS ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  background: none; border: none;
  padding: 10px 16px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--teal); }

#heatmap-container { display: grid; gap: 4px; }
.hm-corner { color: var(--muted-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 0; }
.hm-day-label { text-align: center; color: var(--muted); font-size: 11px; font-weight: 600; padding: 6px 0; }
.hm-sector-label { color: var(--ink); font-size: 12px; font-weight: 500; padding: 8px 4px; display: flex; align-items: center; }
.hm-cell {
  border-radius: 6px;
  padding: 10px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s;
}
.hm-cell:hover { transform: scale(1.05); }
.hm-cell.empty { background: var(--line); color: transparent; cursor: default; }
.hm-cell.empty:hover { transform: none; }

/* Daily calendar */
.daily-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.daily-cal-head {
  text-align: center;
  font-size: 10px; font-weight: 700;
  color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 0;
}
.daily-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  padding: 8px;
  position: relative;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.1s, box-shadow 0.15s;
}
.daily-cell:hover { transform: scale(1.04); box-shadow: var(--shadow-sm); }
.daily-cell.empty { opacity: 0.3; cursor: default; }
.daily-cell.empty:hover { transform: none; box-shadow: none; }
.daily-cell.has-event::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--fruit-orange);
  border-radius: 50%;
}
.daily-cell-day { font-size: 10px; font-weight: 700; color: var(--ink); }
.daily-cell-score {
  position: absolute;
  bottom: 6px; right: 8px;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Hourly heatmap */
.hourly-grid {
  display: grid;
  grid-template-columns: 60px repeat(24, 1fr);
  gap: 2px;
}
.hourly-cell {
  height: 22px;
  border-radius: 3px;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.hourly-label { font-size: 11px; color: var(--muted); padding: 4px; display: flex; align-items: center; }
.hourly-hour { text-align: center; font-size: 9px; color: var(--muted-2); padding: 2px 0; font-weight: 600; }

/* ============ NPS ============ */
.nps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1180px) { .nps-cards { grid-template-columns: 1fr; } }
.nps-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.nps-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.nps-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -0.015em; }
.nps-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.nps-score {
  font-family: 'Fraunces', serif;
  font-size: 56px; font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  margin: 8px 0;
}
.nps-score.good { color: var(--good); }
.nps-score.warn { color: var(--warn); }
.nps-score.bad { color: var(--bad); }
.nps-bench {
  font-size: 11px; color: var(--muted);
  background: var(--mist);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.nps-bench b { color: var(--navy); }
.nps-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.nps-bar .seg { transition: opacity 0.2s; }
.nps-bar .seg.promotores { background: var(--good); }
.nps-bar .seg.neutros { background: var(--warn); }
.nps-bar .seg.detratores { background: var(--bad); }
.nps-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.nps-legend b { color: var(--navy); }

/* ============ SECTORS TABLE ============ */
.sectors-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}
.sectors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.sectors-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}
.sectors-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sectors-table tr:last-child td { border-bottom: none; }
.sectors-table tr.clickable:hover td { background: var(--mist); cursor: pointer; }
.sectors-table .sector-name { font-weight: 600; color: var(--navy); }
.sectors-table .sector-narrative { font-size: 11px; color: var(--muted); margin-top: 2px; max-width: 280px; }

.score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  min-width: 38px;
  text-align: center;
  font-family: 'Fraunces', serif;
  letter-spacing: -0.01em;
}
.score-pill.good { background: var(--good-bg); color: var(--good); }
.score-pill.warn { background: var(--warn-bg); color: var(--warn); }
.score-pill.bad { background: var(--bad-bg); color: var(--bad); }
.score-pill.neutral { background: var(--mist); color: var(--navy); }

/* ============ CALENDAR ============ */
.calendar-month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.calendar-month-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.calendar-month-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; color: var(--navy); }
.event-list { display: flex; flex-direction: column; gap: 8px; }
.event-item {
  display: flex; gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.event-item:hover { background: var(--mist); border-color: var(--sky); }
.event-date {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  width: 80px;
}
.event-date small { display: block; font-size: 10px; color: var(--muted); font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-weight: 600; color: var(--navy); margin-bottom: 3px; font-size: 13.5px; }
.event-desc { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.event-impact {
  font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
  align-self: flex-start;
  white-space: nowrap;
}
.event-impact.alto { background: var(--bad-bg); color: var(--bad); }
.event-impact.medio { background: var(--warn-bg); color: var(--warn); }
.event-impact.baixo { background: var(--mist); color: var(--navy); }
.event-impact.positivo { background: var(--good-bg); color: var(--good); }

/* ============ KANBAN (action plan) ============ */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) { .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .kanban { grid-template-columns: 1fr; } }
.kanban-col {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.kanban-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.kanban-col-title {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.kanban-col-count {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.kanban-col[data-col="atrasado"] .kanban-col-title { color: var(--bad); }
.kanban-col[data-col="concluido"] .kanban-col-title { color: var(--good); }
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.kanban-card:hover { box-shadow: var(--shadow-sm); border-color: var(--sky); }
.kanban-card.priority-alta { border-left: 3px solid var(--bad); }
.kanban-card.priority-media { border-left: 3px solid var(--warn); }
.kanban-card.priority-baixa { border-left: 3px solid var(--info); }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; }
.kanban-card.dragging { opacity: 0.4; transform: rotate(-2deg); }
.kanban-col.drag-over {
  background: var(--mist);
  border: 2px dashed var(--teal);
  box-shadow: inset 0 0 0 3px rgba(79, 179, 169, 0.1);
}
.kanban-card-title { font-weight: 600; color: var(--navy); margin-bottom: 6px; line-height: 1.3; font-size: 12.5px; }
.kanban-card-meta { font-size: 10.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.kanban-card-meta span { background: var(--mist); padding: 1px 6px; border-radius: 4px; }
.kanban-card-progress {
  height: 4px; background: var(--line); border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.kanban-card-progress .fill {
  height: 100%; background: var(--teal); border-radius: 2px;
  transition: width 0.3s;
}

/* ============ DENUNCIAS ============ */
.denuncias-list { display: flex; flex-direction: column; gap: 10px; }
.denuncia {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.denuncia.priority-alta { border-left-color: var(--bad); }
.denuncia.priority-media { border-left-color: var(--warn); }
.denuncia:hover { box-shadow: var(--shadow); }
.denuncia.status-encerrada { opacity: 0.65; }
.denuncia-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 8px;
}
.denuncia-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.denuncia-id { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.denuncia-category {
  font-size: 10.5px; font-weight: 700;
  background: var(--mist); color: var(--navy);
  padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.denuncia-status {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.denuncia-status.nova { background: var(--bad-bg); color: var(--bad); }
.denuncia-status.em_apuracao { background: var(--warn-bg); color: var(--warn); }
.denuncia-status.encerrada { background: var(--good-bg); color: var(--good); }
.denuncia-title {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 500;
  color: var(--navy);
  line-height: 1.35; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.denuncia-foot { font-size: 11px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ============ SST CHAT ============ */
.sst-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
@media (max-width: 1180px) { .sst-layout { grid-template-columns: 1fr; } }
.sst-chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.sst-partner-head {
  display: flex; gap: 14px; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.sst-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.sst-partner-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -0.015em; }
.sst-partner-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sst-partner-company { font-size: 11px; color: var(--teal); font-weight: 600; margin-top: 4px; }

.sst-messages { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding-right: 8px; }
.sst-msg { display: flex; gap: 10px; }
.sst-msg.from-rh { flex-direction: row-reverse; }
.sst-msg-bubble {
  max-width: 70%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.sst-msg.from-sst .sst-msg-bubble { background: var(--mist); color: var(--navy); border-bottom-left-radius: 4px; }
.sst-msg.from-rh .sst-msg-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.sst-msg-time { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.sst-msg.from-rh .sst-msg-time { text-align: right; }

.sst-sidebar { display: flex; flex-direction: column; gap: 14px; }

.pgr-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.pgr-status-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--teal-2); font-weight: 700; }
.pgr-title { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: #fff; margin: 8px 0 14px; letter-spacing: -0.015em; }
.pgr-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; }
.pgr-row span { color: rgba(255, 255, 255, 0.6); }
.pgr-row b { color: #fff; }

/* ============ QUESTIONS BANK ============ */
.q-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.q-filter-pill {
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.q-filter-pill:hover { border-color: var(--teal); color: var(--navy); }
.q-filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.questions-list { display: flex; flex-direction: column; gap: 8px; }
.question-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-xs);
}
.question-axis { font-family: 'Fraunces', serif; font-weight: 500; color: var(--teal); background: var(--mist); border: 1px solid var(--sky); padding: 3px 8px; border-radius: 999px; font-size: 11px; text-align: center; }
.question-text { font-size: 13.5px; color: var(--navy); font-weight: 500; }
.question-options { font-size: 11px; color: var(--muted); margin-top: 4px; }
.question-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  background: var(--mist); padding: 4px 10px; border-radius: 12px;
  cursor: pointer;
}
.question-toggle.active { background: var(--good-bg); color: var(--good); }
.question-custom-tag {
  background: var(--fruit-orange); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-left: 6px;
}

/* ============ CHARTS ============ */
.chart-box { position: relative; width: 100%; }

/* ============ CHAT DRAWER ============ */
.chat-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 440px; height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-drawer.open { transform: translateX(0); }
@media (max-width: 640px) { .chat-drawer { width: 100vw; } }

.chat-drawer-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.chat-title-block { display: flex; gap: 12px; align-items: flex-start; }
.chat-title-block h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.chat-title-block small { font-size: 11px; opacity: 0.7; display: block; margin-top: 2px; }
.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: rgba(255, 255, 255, 0.2); }
.modal .close-btn { background: var(--mist); border-color: var(--sky); color: var(--navy); }
.modal .close-btn:hover { background: var(--sky); }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--cream);
}
.msg { max-width: 96%; font-size: 13px; line-height: 1.55; }
.msg-author {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.msg-body {
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: pre-wrap; word-wrap: break-word;
}
.msg-body strong { color: var(--navy); font-weight: 600; }
.msg-body ul { margin: 6px 0 6px 18px; padding: 0; }
.msg-body li { margin: 3px 0; }
.msg-body code { background: var(--mist); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: var(--navy); }
.msg-user .msg-body { background: var(--navy); color: #fff; border-color: var(--navy); }
.msg-user .msg-author { color: var(--teal); }
.msg-user { align-self: flex-end; max-width: 86%; }
.msg-user .msg-body strong { color: var(--teal-2); }
.msg-assistant .msg-body { border-left: 3px solid var(--teal); }
.msg.thinking .msg-body { font-style: italic; color: var(--muted); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggestion {
  background: var(--mist); border: 1px solid var(--sky);
  color: var(--navy); padding: 6px 11px; border-radius: 16px;
  font-size: 11.5px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.suggestion:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.chat-input {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--surface);
  display: flex; gap: 8px; align-items: stretch;
}
.chat-input textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit; font-size: 13px;
  resize: none;
  background: var(--surface-2);
  color: var(--ink);
}
.chat-input textarea:focus { outline: 2px solid var(--teal-2); border-color: var(--teal); }
#chat-send {
  background: var(--navy); color: #fff;
  border: none;
  border-radius: 10px;
  width: 44px;
  font-family: inherit; font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}
#chat-send:hover:not(:disabled) { background: var(--navy-2); }
#chat-send:disabled { background: var(--muted-2); cursor: not-allowed; }

.chat-status {
  padding: 8px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 26, 48, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -0.02em; }
.modal-body { padding: 24px 28px 28px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ SCROLL ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ============ UTILS ============ */
.muted { color: var(--muted); }
.text-sm { font-size: 11.5px; }
.text-xs { font-size: 10.5px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.text-right { text-align: right; }
.spacer { flex: 1; }

.empty-state {
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 { font-family: 'Fraunces', serif; color: var(--navy); margin: 0 0 8px; font-weight: 500; }

/* ============ LOGO ============ */
.brand-mark { width: 32px; height: 36px; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }

/* ============ HOME SECTION DIVIDERS (sutil, sem títulos extras) ============ */
.home-block {
  padding: 26px 30px;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.home-block.tone-cream { background: linear-gradient(180deg, var(--cream-2), var(--cream)); border-color: var(--line); }
.home-block.tone-sand { background: linear-gradient(180deg, var(--surface-3), var(--cream-2)); border-color: var(--line); }
.home-block.tone-paper { background: var(--surface-2); border-color: var(--line); }
.home-block.tone-mist { background: linear-gradient(180deg, var(--mist), var(--surface-2)); border-color: var(--sky); }
.home-block.tone-navy {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-color: var(--navy);
}
.home-block.tone-navy h2, .home-block.tone-navy .card-label { color: #fff; }
.home-block.tone-navy h2::before { background: var(--teal-2); }
.home-block.tone-navy .section-sub { color: rgba(255, 255, 255, 0.7); }

/* ============ EMBEDDED CHAT (home) ============ */
.embed-chat {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.embed-chat-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.embed-chat-head-left { display: flex; gap: 12px; align-items: center; }
.embed-chat-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(79, 179, 169, 0.2);
  border: 1px solid var(--teal-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-2);
  font-size: 18px;
  font-family: 'Fraunces', serif;
}
.embed-chat-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.embed-chat-sub { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.embed-chat-badge {
  background: rgba(79, 179, 169, 0.2);
  border: 1px solid var(--teal-2);
  color: var(--teal-2);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.embed-chat-body {
  background: #FBF6EB;
  padding: 22px 24px;
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.embed-chat-foot {
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.embed-chat-foot input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}
.embed-chat-foot input::placeholder { color: rgba(255, 255, 255, 0.5); }
.embed-chat-foot input:focus { outline: 2px solid var(--teal-2); border-color: var(--teal-2); }
.embed-chat-foot button {
  background: var(--teal);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.embed-chat-foot button:hover { background: var(--teal-2); color: var(--navy); }

.suggestion-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mist);
  border: 1px solid var(--sky);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.suggestion-pulse:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-1px);
}
.suggestion-pulse::before {
  content: "✦";
  color: var(--teal);
  font-size: 13px;
}
.suggestion-pulse:hover::before { color: #fff; }

/* ============ CALENDAR-HEATMAP (rich) ============ */
.cal-hm-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.cal-hm-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cal-hm-legend-item { display: flex; align-items: center; gap: 6px; }
.cal-hm-legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.cal-hm-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-hm-head {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 0;
}
.cal-hm-day {
  position: relative;
  min-height: 110px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cal-hm-day:hover { transform: scale(1.02); box-shadow: var(--shadow); z-index: 2; }
.cal-hm-day.weekend { background: var(--cream); opacity: 0.6; cursor: default; }
.cal-hm-day.weekend:hover { transform: none; box-shadow: none; }
.cal-hm-day.today { border-color: var(--navy); border-width: 2px; }
.cal-hm-day-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.cal-hm-day-num {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.cal-hm-day-score {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  color: #fff;
}
.cal-hm-day-events {
  font-size: 9.5px;
  line-height: 1.3;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-hm-event-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--bad);
  color: var(--navy);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-hm-event-tag.impact-positivo { border-left-color: var(--good); }
.cal-hm-event-tag.impact-medio { border-left-color: var(--warn); }
.cal-hm-event-tag.impact-baixo { border-left-color: var(--info); }
.cal-hm-drops {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  height: 6px;
}
.cal-hm-drops .seg {
  flex: 1;
  border-radius: 1px;
  opacity: 0.85;
}

/* ============ BENCHMARK ============ */
.bench-card {
  background: linear-gradient(180deg, #ECE2C8, #E5D8B4);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-xs);
}
.bench-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(184, 168, 122, 0.35);
}
.bench-row:last-child { border-bottom: none; }
.bench-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.bench-label small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.bench-bar {
  position: relative;
  height: 38px;
  background: #FBF6EB;
  border: 1px solid var(--sand);
  border-radius: 19px;
  overflow: visible;
  box-shadow: inset 0 1px 3px rgba(14, 45, 79, 0.06);
}
/* Faixa P25-P75 = caixa central destacada */
.bench-bar-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  background: linear-gradient(90deg, rgba(79, 179, 169, 0.35), rgba(79, 179, 169, 0.5), rgba(79, 179, 169, 0.35));
  border: 1.5px solid var(--teal);
  border-radius: 11px;
  box-shadow: 0 1px 4px rgba(79, 179, 169, 0.2);
}
.bench-bar-range::before {
  content: "P25";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.bench-bar-range::after {
  content: "P75";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.bench-bar-median {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 32px;
  background: var(--navy);
  border-radius: 2px;
  z-index: 2;
}
.bench-bar-median::after {
  content: "M";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
}
.bench-bar-you {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #FBF6EB;
  box-shadow: 0 0 0 2px var(--teal), 0 3px 10px rgba(79, 179, 169, 0.45);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.bench-bar-you::before { content: "▲"; font-size: 9px; }
.bench-bar-you.good { background: var(--good); box-shadow: 0 0 0 2px var(--good), 0 3px 10px rgba(47, 143, 106, 0.45); }
.bench-bar-you.bad { background: var(--bad); box-shadow: 0 0 0 2px var(--bad), 0 3px 10px rgba(184, 58, 58, 0.5); }
.bench-bar-you.warn { background: var(--warn); box-shadow: 0 0 0 2px var(--warn), 0 3px 10px rgba(208, 140, 42, 0.45); }
.bench-score {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  text-align: right;
  letter-spacing: -0.015em;
}
.bench-percentile {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-top: 2px;
}
.bench-insight {
  background: var(--mist);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}
.bench-insight.negative { background: var(--bad-bg); border-left-color: var(--bad); }
.bench-insight.positive { background: var(--good-bg); border-left-color: var(--good); }
.bench-insight strong { color: var(--navy); }

/* ============ SST SERVICES ============ */
.sst-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 1180px) { .sst-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .sst-services { grid-template-columns: 1fr; } }
.sst-service {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
}
.sst-service:hover {
  background: var(--mist);
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.sst-service-icon {
  width: 36px; height: 36px;
  background: var(--mist);
  color: var(--teal);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  border: 1px solid var(--sky);
}
.sst-service-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.sst-service-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* Make body bg slightly warmer */
body { background: var(--cream); }
.main { background: var(--cream); }
.topbar { background: rgba(241, 234, 220, 0.85); }
.route-container { padding-top: 22px; }
