/* Overview bento. One accent (violet) for data, hairline solid grid, text in ink tokens only. */
:root { --ov-deemphasis: #b8bdd0; --ov-grid: #eceef4; --ov-good: #0e7a55; --ov-bad: #c0261b; }

.ov-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.ov-filters button:not(.ov-refresh) { min-height: 36px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; }
.ov-filters button.active { background: var(--primary-soft); border-color: #d9d1ff; color: var(--primary-ink); }
.ov-filters small { color: var(--muted); font-size: 12px; }
.ov-refresh { margin-left: 4px; }

.ov-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "hero hero conv chat"
    "chart chart reach eng"
    "chart chart todo todo"
    "camp camp next report";
  transition: opacity .2s ease;
}
.ov-refetching { opacity: .55; pointer-events: none; }
.ov-hero { grid-area: hero; } .ov-conv { grid-area: conv; } .ov-chat { grid-area: chat; } .ov-reach { grid-area: reach; } .ov-eng { grid-area: eng; }
.ov-chart { grid-area: chart; } .ov-todo { grid-area: todo; } .ov-camp { grid-area: camp; } .ov-next { grid-area: next; } .ov-report { grid-area: report; }

.ov-grid > .card { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ov-grid h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.ov-grid p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.ov-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ov-value { font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.5px; }
.ov-foot { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-delta { font-size: 12.5px; font-weight: 700; }
.ov-delta small { font-weight: 500; color: var(--muted); }
.ov-delta.good { color: var(--ov-good); } .ov-delta.bad { color: var(--ov-bad); } .ov-delta.neutral { color: var(--muted); }
.ov-link { align-self: flex-start; padding: 0; color: var(--primary-ink) !important; font-weight: 700; }
.ov-empty p { flex: 1; }
.ov-placeholder { min-height: 150px; background: linear-gradient(90deg, #fff, #f6f5ff, #fff); }

/* Hero: the one big number. Proportional figures, same sans. */
.ov-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #f1edff 0%, #ffffff 55%); }
.ov-hero-value { font-family: Manrope, sans-serif; font-size: clamp(40px, 4.2vw, 56px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; color: var(--ink); }
.ov-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ov-hero-facts b { color: var(--ink); font-weight: 700; }
.ov-spark { width: 100%; height: 44px; margin-top: auto; }

/* Daily spend chart */
.ov-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ov-chart-head p { font-size: 12.5px; }
.ov-plot-wrap { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding-bottom: 26px; margin-top: 10px; flex: 1; min-height: 240px; }
.ov-yaxis { position: relative; }
.ov-yaxis span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-plot { position: relative; min-height: 220px; outline: none; cursor: crosshair; }
.ov-plot:focus-visible { box-shadow: 0 0 0 2px var(--primary); border-radius: 4px; }
.ov-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov-gridline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ov-grid); }
.ov-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid #c9c2f5; pointer-events: none; }
.ov-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.ov-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 8px 10px; background: var(--ink); color: #fff; border-radius: 9px; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(20, 26, 51, .18); }
.ov-tip strong { font-size: 14px; }
.ov-tip span { color: #c7cbe0; }
.ov-xaxis { position: absolute; left: 0; right: 0; bottom: -24px; height: 18px; }
.ov-xaxis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.ov-xaxis span.first { transform: none; } .ov-xaxis span.last { transform: translateX(-100%); }

/* Tables (campaigns, chart table view): tabular figures only here */
.ov-table-wrap { overflow-x: auto; margin: 4px -4px 0; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--border); }
.ov-table td { padding: 9px 4px; border-bottom: 1px solid #f0f1f6; vertical-align: top; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-camp-name { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.ov-table small { color: var(--muted); font-size: 11.5px; }

/* Needs attention */
.ov-todo ul, .ov-next ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ov-todo li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.ov-todo-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; }
.ov-allclear { display: flex; align-items: center; gap: 8px; color: var(--ov-good) !important; font-weight: 600; }

/* Upcoming posts and latest report */
.ov-next li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; }
.ov-next img, .ov-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary-ink); }
.ov-next strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-next small, .ov-report small { font-size: 12px; color: var(--muted); }
.ov-report { background: linear-gradient(160deg, #1b2147 0%, #2a1f6b 100%); border-color: transparent !important; }
.ov-report h3 { color: #fff !important; }
.ov-report p, .ov-report small, .ov-report .ov-label { color: #c7cbe0 !important; }
.ov-report .ov-link { color: #c9bfff !important; margin-top: auto; }

@media (max-width: 1180px) {
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hero hero" "conv chat" "todo todo" "chart chart" "reach eng" "camp camp" "next report"; }
}
@media (max-width: 640px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "todo" "conv" "chat" "chart" "reach" "eng" "camp" "next" "report"; }
  .ov-value { font-size: 26px; }
}
/* The hidden attribute must win over display rules above. */
.ov-tip[hidden], .ov-cross[hidden], .ov-dot[hidden] { display: none; }
/* Phones: only the first, middle and last dates, so labels never collide. */
.ov-xaxis .mid-only { display: none; }
@media (max-width: 640px) { .ov-xaxis .minor { display: none; } .ov-xaxis .mid-only { display: block; } }
.ov-pending { min-height: 140px; }
.ov-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: auto; }
