/* ============================================================
   JustoJá — Cloud Design System v2
   Applies globally; all vars on :root; no .jj-root prefix needed
   ============================================================ */

:root {
  --accent:    #F2641E;
  --accent-lt: color-mix(in oklch, #F2641E 12%, transparent);
  --panel:     #ffffff;
  --panel-2:   #f8f7f5;
  --ink:       #1a1a22;
  --ink-2:     #3f3f52;
  --muted:     #7a7a94;
  --faint:     #a8a8be;
  --line:      #e8e8ee;
  --line-2:    #f2f2f6;
  --pos:       #1a9e6e;
  --pos-lt:    color-mix(in oklch, #1a9e6e 12%, transparent);
  --neg:       #d13b3b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.14);
  --radius:    14px;
  --row-h:     64px;
}

/* ============ page-head ============ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.ph-left  { display: flex; align-items: center; gap: 13px; }
.ph-bar   { width: 5px; height: 38px; border-radius: 3px; background: var(--accent); flex: none; }
.ph-title h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ph-sub   { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============ buttons ============ */
.jj-btn {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px;
  border-radius: 10px; padding: 9px 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); transition: .15s; cursor: pointer;
  font-family: inherit;
}
.jj-btn:hover { border-color: var(--faint); color: var(--ink); }
.jj-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.jj-btn.primary:hover { filter: brightness(1.05); }

/* ============ period pill ============ */
.mpill {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 9px;
  transition: .13s; cursor: pointer; font-family: inherit;
}
.mpill:hover { border-color: var(--accent); color: var(--accent); }
.mpill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ filters bar ============ */
.filters {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.filter-main {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr auto;
  gap: 12px; align-items: end;
}
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.fld-label svg { color: var(--accent); }
.fld-input  { position: relative; display: flex; align-items: center; }
.fld-input .si { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.fld-input input {
  width: 100%; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 10px; padding: 10px 12px 10px 33px; font: inherit;
  font-size: 13px; color: var(--ink); transition: .15s;
}
.fld-input input.no-icon { padding-left: 12px; }
.fld-input input:focus { outline: none; border-color: var(--accent); background: #fff; }
.fld-select { position: relative; display: flex; align-items: center; }
.fld-select select {
  width: 100%; appearance: none; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 10px; padding: 10px 30px 10px 12px; font: inherit;
  font-size: 13px; color: var(--ink); cursor: pointer; transition: .15s;
}
.fld-select select:focus { outline: none; border-color: var(--accent); background: #fff; }
.fld-chev { position: absolute; right: 10px; color: var(--muted); pointer-events: none; }
.filter-row2 {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2);
}

/* ============ stat-cards row ============ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.stat-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 12px; cursor: pointer;
  background: oklch(0.985 0.01 var(--ch, 250));
  border: 1px solid oklch(0.92 0.025 var(--ch, 250));
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid;
  place-items: center; flex: none;
  background: oklch(0.93 0.06 var(--ch, 250));
  color: oklch(0.42 0.18 var(--ch, 250));
}
.stat-body { min-width: 0; }
.stat-value {
  font-size: 22px; font-weight: 800; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; line-height: 1;
  color: oklch(0.3 0.08 var(--ch, 250));
}
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.stat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; margin-left: 5px;
}

/* ============ generic card ============ */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }
.card-title {
  font-weight: 700; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.card-title svg { color: var(--accent); }

/* ============ insight cards (4-col row) ============ */
.insight-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.insight-card {
  border-radius: var(--radius); padding: 18px; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.insight-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 100%);
  pointer-events: none;
}
.ic-accent { background: linear-gradient(135deg,#F2641E,#d95616); }
.ic-green  { background: linear-gradient(135deg,#1a9e6e,#157a55); }
.ic-blue   { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.ic-violet { background: linear-gradient(135deg,#7c3aed,#6d28d9); }
.ic-amber  { background: linear-gradient(135deg,#d97706,#b45309); }
.ic-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; opacity: .9; }
.ic-val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ic-sub { font-size: 11px; opacity: .8; font-weight: 500; }

/* ============ list-wrap / lrow ============ */
.list-wrap {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; box-shadow: var(--shadow-sm);
}
.lhead {
  display: grid;
  grid-template-columns: 1.7fr 1.9fr 210px 168px 150px 86px 104px;
  min-width: 860px;
  align-items: center; gap: 14px; padding: 0 18px 0 22px;
  height: 44px; background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.lhead .th-actions { text-align: right; }
.lrow {
  display: grid;
  grid-template-columns: 1.7fr 1.9fr 210px 168px 150px 86px 104px;
  min-width: 860px;
  align-items: center; gap: 14px; padding: 11px 18px 11px 22px;
  border-bottom: 1px solid var(--line-2); position: relative;
  transition: background .12s; cursor: pointer; min-height: var(--row-h);
}
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: oklch(0.975 0.006 70); }
.lrail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 0 2px 2px 0; }

/* lead name column */
.lead-name { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-phone { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); text-decoration: none; margin-top: 3px; }
.lead-titular { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }

/* money column */
.money-est { font-size: 17px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.money-com { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.com-pct { font-size: 10px; font-weight: 800; color: var(--pos); background: var(--pos-lt); padding: 1px 5px; border-radius: 5px; }
.com-val { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.money-bruto { font-size: 10.5px; color: var(--faint); }

/* status badge */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid; border-radius: 9px; padding: 5px 9px;
  font-weight: 700; font-size: 12px;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* who / date / actions */
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-date { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.col-actions { display: flex; gap: 4px; justify-content: flex-end; }
.act {
  width: 30px; height: 30px; border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; display: grid; place-items: center; color: var(--ink-2);
  transition: .13s; cursor: pointer;
}
.act:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.pg-nav { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.pg-nums { display: flex; gap: 4px; }
.pg-num { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.pg-num.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ grid helpers ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ============ FIN TABS (underline) ============ */
.fin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: nowrap; overflow-x: auto; }
.fin-tab {
  padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap;
  background: none; border-top: none; border-left: none; border-right: none; font-family: inherit;
  display: flex; align-items: center; gap: 7px;
}
.fin-tab:hover { color: var(--ink); }
.fin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.fin-tab .tab-ico { color: inherit; opacity: .7; }
.fin-tab.active .tab-ico { opacity: 1; }

/* ============ FECHAMENTO tables ============ */
.roi-banner {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 20px; display: flex; overflow: hidden;
}
.roi-block { flex: 1; padding: 22px 28px; display: flex; flex-direction: column; gap: 6px; }
.roi-block:first-child { border-right: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, #1a9e6e 6%, transparent), transparent); }
.roi-block:last-child { background: linear-gradient(135deg, color-mix(in srgb, #F2641E 6%, transparent), transparent); }
.roi-val { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.roi-val.pos { color: var(--pos); }
.roi-val.acc { color: var(--accent); }
.roi-lbl { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.roi-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.fc-table { width: 100%; border-collapse: collapse; text-align: left; }
.fc-table th { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-2); }
.fc-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; font-size: 13px; }
.fc-table tfoot td { padding: 12px 18px; background: #f8f7f5; font-weight: 700; font-size: 12.5px; }
.fc-table tr:last-of-type td { border-bottom: 0; }
.fc-table tr:hover td { background: #faf9f7; }
.client-col { display: flex; align-items: center; gap: 10px; }
.client-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.jj-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }

/* ============ FINANCEIRO fin-table ============ */
.fin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.fin-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.fin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.fin-table tr:last-child td { border-bottom: 0; }
.fin-table tr:hover td { background: var(--panel-2); }
.fin-table .ft-money { font-variant-numeric: tabular-nums; font-weight: 700; }
.cat-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ============ NOVA ANÁLISE ============ */
.na-grid { display: grid; grid-template-columns: 1fr 370px; gap: 20px; align-items: start; }
.res-card {
  position: sticky; top: 76px; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 22px; background: var(--panel);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.res-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.res-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: var(--accent-lt); border: 1px solid color-mix(in srgb, #F2641E 22%, transparent); padding: 5px 11px; border-radius: 20px; }
.res-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 16px; }
.res-big { font-size: 44px; font-weight: 800; letter-spacing: -.025em; line-height: 1; color: var(--accent); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.res-sub { font-size: 12.5px; color: var(--ink-2); font-weight: 500; line-height: 1.5; }
.res-divider { height: 1px; background: var(--line); margin: 18px 0; }
.res-prods-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.rp-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.rp-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.res-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.res-btn-primary { width: 100%; height: 46px; justify-content: center; background: var(--accent); color: #fff; border: 0; font-weight: 700; border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; transition: .15s; font-family: inherit; }
.res-btn-primary:hover { filter: brightness(.96); }
.res-btn-ghost { width: 100%; height: 40px; justify-content: center; background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; border-radius: 11px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: .15s; font-family: inherit; }
.res-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.res-row { display: flex; gap: 8px; }
.res-note { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ============ PARTNERS p-table ============ */
.p-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.p-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.p-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table tr:hover td { background: var(--panel-2); }
.p-name-col { display: flex; align-items: center; gap: 12px; }
.p-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.p-email { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.p-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.p-badge.master { background: color-mix(in srgb, #1a9e6e 12%, transparent); color: #157a55; }
.p-badge.influenciador { background: color-mix(in srgb, #7c3aed 12%, transparent); color: #6d28d9; }
.p-badge.sub { background: color-mix(in srgb, #2563eb 12%, transparent); color: #1d4ed8; }

/* ============ DASHBOARD rank rows ============ */
.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rr-medal { font-size: 16px; width: 22px; text-align: center; flex: none; }
.rr-info { flex: 1; min-width: 0; }
.rr-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rr-bar-wrap { width: 52px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rr-bar { height: 100%; background: var(--accent); border-radius: 2px; }
.rr-val { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 44px; text-align: right; }

/* ============ DASHBOARD donut rate ============ */
.rate-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; text-align: center; }
.donut-wrap { position: relative; width: 110px; height: 110px; margin: 0 auto 14px; }
.donut-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.donut-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.donut-val { fill: none; stroke-width: 9; stroke-dasharray: 283; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.donut-val.orange { stroke: var(--accent); }
.donut-val.green  { stroke: var(--pos); }
.donut-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dt-pct { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.dt-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rate-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rate-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ============ table-scroll utility ============ */
.table-scroll { overflow-x: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .lhead, .lrow {
    grid-template-columns: 1.7fr 1.9fr 160px 128px 118px 80px 98px;
    gap: 10px;
  }
}
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .na-grid { grid-template-columns: 1fr; }
  .res-card { position: static; }
  .lhead, .lrow {
    grid-template-columns: 1.7fr 1.9fr 140px 110px 110px 78px 92px;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .filter-main { grid-template-columns: 1fr; }
  .insight-cards { grid-template-columns: 1fr 1fr; }
  .lhead { display: none; }
  .fin-tabs { overflow-x: auto; }
}
@media (max-width: 480px) {
  .insight-cards { grid-template-columns: 1fr; }
}

/* ============ METRICS section ============ */
.metrics { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.metrics-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mh-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ink); }
.mh-title svg { color: var(--accent); }
.mh-tag { font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.mh-spacer { flex: 1; }
.mh-custom { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.mh-custom:hover { border-color: var(--accent); color: var(--accent); }
.month-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.year-pill { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 9px; }
.year-pill button { border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; font-family: inherit; }
.year-pill button:disabled { opacity: .35; cursor: default; }
.metrics-foot { margin-top: 13px; font-size: 11.5px; color: var(--muted); }

/* ============ live dot ============ */
.live { color: var(--pos); font-weight: 700; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); margin-right: 3px; animation: jjpulse 1.8s infinite; vertical-align: middle; }
@keyframes jjpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============ view toggle ============ */
.view-toggle { display: flex; background: oklch(0.2 0.012 265); border-radius: 11px; padding: 3px; gap: 2px; margin-left: 4px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: oklch(0.78 0.01 265); font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 8px; transition: .15s; font-family: inherit; cursor: pointer; }
.view-toggle button.active { background: #fff; color: var(--ink); }

/* ============ list row extras ============ */
.origin-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bank-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.3; }
.stage-age { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.lead-top { display: flex; align-items: center; gap: 7px; }
.stars { display: inline-flex; gap: 1px; flex: none; }
.stars .on { color: #F5A623; }
.stars .off { color: var(--line); }
.chip.partner { background: color-mix(in oklch, var(--accent) 9%, transparent); border-color: color-mix(in oklch, var(--accent) 22%, transparent); color: color-mix(in oklch, var(--accent) 70%, black); }
.more-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; font-family: inherit; align-self: flex-end; white-space: nowrap; }
.more-btn:hover { border-color: var(--accent); color: var(--accent); }
.avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.col-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

@media (max-width: 1100px) {
  .view-toggle { display: none; }
}
@media (max-width: 768px) {
  .month-row { gap: 4px; }
  .metrics-head { gap: 6px; }
}
