:root {
  --accent: #5612EF;
  --accent-dark: #400EB4;
  --accent-soft: #F3EFFD;
  --accent-ink: #400EB4;
  --lime: #D7FE65;
  --lime-ink: #191A23;
  --amber: #5612EF;
  --side: #191A23;
  --side-2: #242636;
  --side-hover: #2E3045;
  --side-line: #31344B;
}
body { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; background: #F9F8FF; }
h1, h2, h3, .kpi .v, .eyebrow { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; }
.sidebar .brand { gap: 10px; align-items: center; }
.sidebar .brand .logo-wrap { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #D7FE65; padding: 5px; flex-shrink: 0; }
.sidebar .brand .logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.sidebar nav a.active { background: #400EB4 !important; color: #fff !important; box-shadow: inset 3px 0 0 #D7FE65; }
.sidebar nav a.active svg { color: #D7FE65; }
.btn-primary { background: #5612EF !important; color: #fff !important; border-color: #5612EF !important; }
.btn-primary:hover { background: #400EB4 !important; }
.filters a.on { background: #400EB4 !important; color: #fff !important; border-color: #400EB4 !important; }
.pill.violet { background: #F3EFFD; color: #400EB4; }
.pill.lime { background: #D7FE65; color: #191A23; font-weight: 700; }
.kpis-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis .kpi .s { font-size: 12.5px; line-height: 1.5; margin-top: 4px; }
.up { color: #15803d; } .down { color: #b91c1c; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.num { text-align: right; }
.legenda { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 12px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.lg-zakup, .wykres .zakup { background: #5612EF; }
.lg-tel, .wykres .tel { background: #191A23; }
.lg-wa, .wykres .wa { background: #16a34a; }
.lg-koszt { background: #e11d48; border-radius: 50% !important; }
.lg-imp, .wykres .imp { background: #BBA0F9; }
.wykres { display: flex; align-items: stretch; gap: 3px; height: 180px; padding-top: 8px; }
.wykres .kol { flex: 1; position: relative; min-width: 2px; }
.wykres .slupek { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; }
.wykres .slupek i { display: block; width: 100%; }
.wykres .slupek i:last-child { border-radius: 3px 3px 0 0; }
.wykres .kropka { position: absolute; left: 50%; width: 6px; height: 6px; margin: 0 0 -3px -3px; border-radius: 50%; background: #e11d48; }
.axis { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.kreacje { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.kreacja { margin-bottom: 0; }
.obrazy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.obrazy img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #F3EFFD; border: 1px solid #ece8fb; }
.kreacja .obrazy:has(img:only-child) { grid-template-columns: 1fr; }
.kreacja .obrazy img:only-child { aspect-ratio: auto; max-height: 440px; object-fit: contain; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; align-items: start; }
.format-card { background: #F9F8FF; border: 1px solid #e7e1fb; border-radius: 10px; padding: 8px; text-align: center; }
.format-card img { width: 100%; border-radius: 6px; display: block; max-height: 260px; object-fit: contain; background: #191A23; }
.format-card .fmt-lbl { font-size: 11.5px; font-weight: 700; color: #400EB4; margin-top: 6px; }
.serp { border: 1px solid #e4ddf9; border-left: 3px solid #5612EF; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.serp-t { color: #1a0dab; font-size: 16px; font-weight: 600; margin: 3px 0; }
.teksty { margin: 6px 0 10px 18px; font-size: 13.5px; } .teksty li { margin: 3px 0; }
.neg-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.neg-chip { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.loc-chip { background: #F3EFFD; color: #400EB4; border: 1px solid #ddd2fc; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.post-card { border: 1px solid #e7e1fb; border-radius: 12px; padding: 14px 16px; background: #fff; margin-bottom: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; }
.post-body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: #222; background: #F9F8FF; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.plan-banner { background: linear-gradient(135deg, #191A23 0%, #400EB4 100%); color: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.plan-banner h2 { color: #fff; margin: 0 0 4px; font-size: 19px; }
.plan-banner p { color: #e2dbff; margin: 0; font-size: 13.5px; }
.plan-badge { background: #D7FE65; color: #191A23; font-weight: 800; padding: 8px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
details summary { cursor: pointer; font-weight: 600; font-size: 13.5px; margin: 6px 0; }
.wyniki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.wyniki b { display: block; font-size: 15px; color: var(--ink); }
.list li { gap: 10px; } .list li > span { min-width: 0; overflow-wrap: anywhere; } .list li > strong { flex-shrink: 0; }
.list li > span:first-child { flex-shrink: 1; margin-right: 0; }
.daty { display: flex; gap: 6px; align-items: center; } .daty input { padding: 7px 8px; border: 1px solid #e6e6e6; border-radius: 9px; font: inherit; font-size: 13px; width: auto; margin: 0; } .daty .btn { padding: 8px 12px; }
.geo { border-bottom: 1px solid var(--line); padding: 4px 0; } .geo summary { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; padding: 8px 0; }
.kropki { display: flex; gap: 4px; flex-shrink: 0; } .kropki i, .kropka-leg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.tak { background: #16a34a; } .zrodlo { background: #5612EF; } .nie { background: #e5e7eb; }
.geo-odp { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; background: #F9F8FF; border-radius: 10px; padding: 12px 14px; margin: 6px 0 8px; max-height: 360px; overflow: auto; }
.geo-silnik { margin: 8px 0 4px; }
@media (max-width: 860px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kreacje, .format-grid { grid-template-columns: 1fr; }
  .wykres { height: 140px; gap: 1px; }
  .legenda { display: block; margin: 6px 0 0; } .legenda i:first-child { margin-left: 0; }
  .table-wrap { overflow-x: auto; }
  .daty { width: 100%; } .daty input { flex: 1; min-width: 0; }
}
