:root {
  --green: #bbf783;
  --blue: #78daca;
  --muted: #a1adbb;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  border-right: 1px solid var(--line);
  background: #0b1017;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  z-index: 6;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
}
.brand small {
  display: block;
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.15em;
}
.brand-mark {
  background: var(--green);
  color: #152013;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.sidebar nav {
  position: static;
  display: grid;
  border: 0;
  background: none;
  padding: 34px 0;
  gap: 10px;
  overflow: visible;
}
.sidebar nav a {
  padding: 11px;
}
.sidebar nav a.active {
  background: #223124;
  color: var(--green);
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-footer p {
  margin-top: 18px;
}
.workspace {
  margin-left: 240px;
}
.workspace header {
  padding: 20px 32px;
}
.marketing-content {
  max-width: 1500px;
  margin: auto;
  padding: 32px;
  display: grid;
  gap: 26px;
}
.marketing-content section {
  scroll-margin-top: 110px;
}
.marketing-content h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.marketing-content h3 {
  margin-top: 0;
  font-size: 15px;
}
.range {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 25px 0 14px;
}
.presets {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.kpis article {
  padding: 24px 20px;
  display: grid;
  gap: 16px;
  background: #111922;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.kpis span {
  color: #b7c4d4;
  font-size: 12px;
}
.kpis strong {
  font-size: 38px;
  letter-spacing: -0.04em;
}
.kpis small {
  color: var(--muted);
  font-size: 11px;
}
.kpis .accent {
  border-color: #456238;
  background: linear-gradient(135deg, #1c2c20, #111922);
}
.accent strong {
  color: var(--green);
}
.daily-chart {
  height: 145px;
  display: flex;
  align-items: end;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.chart-bar {
  flex: 1;
  min-width: 1px;
  background: linear-gradient(var(--blue), #27483d);
  border-radius: 3px 3px 0 0;
}
.amounts {
  font-size: 27px;
  color: var(--green);
  font-weight: 700;
  margin: 20px 0;
}
.amounts span {
  display: block;
}
.event-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
}
.event-list strong {
  color: var(--text);
}
.marketing-content th,
.marketing-content td {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.marketing-content td {
  max-width: 240px;
  overflow-wrap: anywhere;
}
.toggle-row input {
  width: auto;
}
.generated-link {
  margin: 20px 0 12px;
}
.marketing-content footer {
  color: var(--muted);
  font-size: 12px;
}
.marketing-content .hint {
  line-height: 1.8;
}
.login-card small {
  color: var(--muted);
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .marketing-content {
    padding: 24px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .presets {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    padding: 18px 0 0;
    overflow-x: auto;
    gap: 6px;
  }
  .sidebar-footer {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .workspace header {
    padding: 15px;
    gap: 8px;
    position: static;
  }
  .marketing-content {
    padding: 18px;
    gap: 18px;
  }
  .marketing-content .panel {
    padding: 20px 16px;
  }
  .section-head {
    align-items: start;
    flex-wrap: wrap;
  }
  .kpis {
    gap: 9px;
  }
  .kpis article {
    padding: 17px 13px;
    gap: 10px;
  }
  .kpis strong {
    font-size: 31px;
  }
  .range {
    gap: 9px;
  }
  .range label {
    flex: 1;
    min-width: 130px;
  }
  .presets {
    width: 100%;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .marketing-content h2 {
    font-size: 23px;
  }
  .marketing-content section {
    scroll-margin-top: 20px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .badge {
    max-width: 140px;
    overflow-wrap: anywhere;
  }
  .daily-chart {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Marketing dashboard v3. */
.marketing-dashboard {
  --green: #57dfc2;
  --blue: #48bff4;
  --gold: #f0c75e;
  background: #080d14;
}
.marketing-dashboard .sidebar {
  padding-top: 24px;
  background: #0b121b;
  border-right-color: #29374a;
}
.marketing-dashboard .brand {
  letter-spacing: 0;
}
.marketing-dashboard .brand-mark {
  border-radius: 8px;
  background: linear-gradient(145deg, var(--green), var(--gold));
  color: #07110f;
}
.marketing-dashboard .sidebar nav a {
  border: 1px solid transparent;
  border-radius: 8px;
}
.marketing-dashboard .sidebar nav a:hover {
  border-color: #2c3a4c;
  background: #131d29;
}
.marketing-dashboard .sidebar nav a.active {
  border-color: rgba(87, 223, 194, 0.22);
  background: #131d29;
  color: #fff;
  box-shadow: inset 3px 0 var(--green);
}
.marketing-dashboard .workspace header {
  background: rgba(8, 13, 20, 0.92);
}
.marketing-dashboard .marketing-content > .panel {
  border-color: #2b394a;
  border-radius: 8px;
  background: #0f1620;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
}
.marketing-dashboard .kpis article {
  position: relative;
  overflow: hidden;
  border-color: #2c3a4c;
  border-radius: 8px;
  background: #131d29;
}
.marketing-dashboard .kpis article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--green), var(--gold));
  content: "";
}
.marketing-dashboard[data-provider="provider2"] {
  --green: #b8ff32;
  --blue: #39b8ff;
  --gold: #ffd160;
}
@media (max-width: 760px) {
  .marketing-dashboard .sidebar {
    position: fixed;
    z-index: 12;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }
  .marketing-dashboard.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .marketing-dashboard.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 11;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.64);
  }
  .marketing-dashboard .sidebar nav {
    display: grid;
    overflow-y: auto;
  }
  .marketing-dashboard .sidebar-footer {
    display: block;
  }
  .marketing-dashboard .workspace header {
    position: sticky;
    top: 0;
  }
  .marketing-dashboard .marketing-content {
    padding: 14px 10px 72px;
  }
}
