:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #162238;
  background: #f4f7fb;
  font-size: 16px;
  line-height: 1.5;
  --blue: #3656d9;
  --teal: #087f8c;
  --muted: #59677e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--blue);
  color: white;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
select {
  background: #fff;
  border: 1px solid #c5cfdf;
  border-radius: 7px;
  padding: 10px;
  color: #162238;
  min-width: 0;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #121e36;
  color: #fff;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.brand span {
  display: block;
  font-size: 0.8rem;
  color: #9fb1d4;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}
nav {
  margin-top: 54px;
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #b9c6e0;
  font-weight: 500;
}
nav button.selected {
  background: #2b3e68;
  color: white;
}
.sidebarNote {
  margin-top: auto;
  font-size: 0.9rem;
  color: #a6b7d5;
  padding: 24px 12px;
}
main {
  margin-left: 230px;
  padding: 36px 44px;
  max-width: 1650px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
h3 {
  font-size: 1.06rem;
  margin: 0;
}
.filters,
.dateFilters,
.actions {
  display: flex;
  gap: 14px;
  align-items: end;
}
.dateFilters {
  margin: 24px 0 30px;
  padding: 16px 0;
  border-top: 1px solid #dce3ee;
  border-bottom: 1px solid #dce3ee;
  flex-wrap: wrap;
}
.dateFilters span {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}
.secondary {
  background: white;
  color: #213456;
  border: 1px solid #c5cfdf;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
aside .quiet {
  color: #b9c6e0;
}
.banner {
  background: #fff1ce;
  border: 1px solid #edcc79;
  color: #665019;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.status {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 9px;
  background: #e7edf7;
  color: #334b77;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}
.hero {
  background: #182b50;
  color: white;
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
}
.hero .eyebrow {
  color: #b3c5eb;
}
.hero h2 {
  font-size: 1.8rem;
}
.hero p {
  max-width: 710px;
  color: #cbd7ed;
  margin-bottom: 0;
}
.hero strong {
  font-size: 2rem;
}
.metricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.card {
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.metric b {
  display: block;
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 12px 0;
  color: #17284b;
}
.metric small,
.muted {
  color: var(--muted);
}
.metric p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.chart {
  margin-top: 26px;
}
.barRow {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.track {
  height: 26px;
  background: #eff3f9;
  border-radius: 5px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: var(--blue);
  min-width: 0;
}
.bar.video {
  background: var(--teal);
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
  margin-right: 7px;
}
.swatch.video {
  background: var(--teal);
}
.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 20px;
}
.rule {
  border-top: 1px solid #e4e9f1;
  padding: 15px 0;
}
.rule:first-of-type {
  border-top: 0;
}
.rule p {
  color: var(--muted);
  margin: 6px 0;
}
.tag {
  color: var(--teal);
  font-weight: 650;
}
.daily {
  height: 140px;
  display: flex;
  gap: 5px;
  align-items: end;
  margin: 24px 0 8px;
}
.day {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: end;
  gap: 2px;
}
.day i {
  width: 50%;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  min-height: 1px;
}
.day i:last-child {
  background: var(--teal);
}
.tableWrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid #e2e8f2;
}
th {
  font-size: 0.82rem;
  color: var(--muted);
}
.funnelLabel {
  min-width: 175px;
}
.empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--muted);
}
footer {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 32px;
}
.login {
  max-width: 530px;
  margin: 10vh auto;
  padding: 30px;
}
.login .brand {
  margin-bottom: 45px;
}
.login .brand span {
  color: var(--blue);
}
.login form {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}
.login h1 {
  font-size: 2.6rem;
}
.login p {
  color: var(--muted);
}
dialog {
  border: 1px solid #ccd7e9;
  border-radius: 14px;
  max-width: 510px;
  padding: 30px;
}
dialog::backdrop {
  background: #14203a99;
}
.actions {
  justify-content: end;
  margin-top: 25px;
}
#error {
  padding: 16px;
  background: #ffe7e4;
  color: #8c251c;
  border-radius: 7px;
}
.plan {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 22px 0;
}
.danger {
  background: #a43535;
}
@media (max-width: 1050px) {
  main {
    padding: 28px 24px;
    margin-left: 190px;
  }
  aside {
    width: 190px;
    padding: 28px 14px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .metricGrid {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  aside .brand span,
  aside .sidebarNote,
  aside #logout {
    display: none;
  }
  nav {
    margin: 18px 0 0;
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  main {
    margin: 0;
    padding: 24px 16px;
  }
  header {
    display: block;
  }
  .filters {
    margin-top: 18px;
  }
  .metricGrid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .dateFilters span {
    margin-left: 0;
  }
  .barRow {
    grid-template-columns: 80px 1fr 65px;
  }
  .login {
    margin: 5vh auto;
    padding: 24px;
  }
  h1 {
    font-size: 2rem;
  }
}

select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2359677e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
