.ep-wrap {
  padding-top: 0.6rem;
  padding-bottom: 1.5rem;
}

.crumbs {
  margin-bottom: 0.3rem;
}

.ep-hero {
  margin-bottom: 0.55rem;
}

.ep-hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
  margin-bottom: 0.22rem;
}

.ep-lede {
  font-size: 0.94rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.ep-card {
  padding: 0.85rem 1.05rem;
  margin-bottom: 1rem;
}

.ep-toolbar {
  margin-bottom: 0.42rem;
  gap: 0.35rem;
}

.pt-toolbar-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.42rem;
  padding-bottom: 0.38rem;
  border-bottom: 1px dashed rgba(44, 44, 44, 0.22);
}

.pt-squad-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pt-group-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  margin-right: 0.1rem;
}

.pt-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.42rem;
}

.pt-kpi {
  background: #fffdf8;
  border: 1.5px solid rgba(44, 44, 44, 0.22);
  border-radius: 8px;
  padding: 0.34rem 0.55rem;
}

.pt-kpi-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.18;
}

.pt-kpi-val {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1.42rem;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 700;
}

.pt-kpi-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.06rem;
}

.pt-svg-wrap {
  width: 100%;
  border: 2px solid rgba(44, 44, 44, 0.3);
  border-radius: 8px;
  background: #faf6ee;
  padding: 0.24rem 0.38rem 0.12rem;
}

#pt-chart {
  width: 100%;
  max-height: 175px;
  height: auto;
  display: block;
}

.ep-legend {
  margin-top: 0.32rem;
  font-size: 0.85rem;
}

.pt-actions {
  margin: 0 0 0.42rem;
}

.pt-notice {
  padding: 0.5rem 0.8rem;
  border-left: 4px solid var(--green);
  background: rgba(39, 174, 96, 0.08);
  border-radius: 6px;
  font-size: 0.94rem;
  color: var(--ink);
  margin: 0.55rem 0 0.7rem;
}

.pt-ledger-wrap {
  margin-top: 0.45rem;
}

.pt-ledger th,
.pt-ledger td {
  padding: 0.45rem 0.65rem;
}

.pt-row-hit td,
.pt-row-hit th {
  background: rgba(39, 174, 96, 0.14);
}

.pt-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.pt-dot-2x {
  background: var(--red);
}

@media (max-width: 640px) {
  .ep-header {
    padding: 0.45rem 0.75rem;
    gap: 0.4rem;
  }
  .ep-nav {
    gap: 0.45rem;
    font-size: 0.82rem;
  }
  .ep-lede {
    font-size: 0.88rem;
    line-height: 1.32;
  }
  .ep-card {
    padding: 0.65rem;
  }
  .ep-toolbar {
    margin-bottom: 0.35rem;
  }
  .ep-tab, .ep-cat-btn, .ep-btn {
    min-height: 36px;
    padding: 0.24rem 0.55rem;
    font-size: 0.88rem;
  }
  .pt-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .pt-kpi {
    padding: 0.3rem 0.45rem;
  }
  .pt-kpi-val {
    font-size: 1.25rem;
  }
  .pt-kpi-sub {
    display: none;
  }
  #pt-chart {
    max-height: 150px;
  }
  #pt-chart text {
    font-size: 21px;
    font-weight: 600;
  }
  .pt-ledger th,
  .pt-ledger td {
    padding: 0.4rem 0.45rem;
    font-size: 0.88rem;
  }
}
