/* ── This-week compact bars (card) ── */
.tw-bars { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }

.tw-bar-wrap {
  position: relative;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.tw-bar {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 8px;
  transition: width .4s ease;
}

.tw-bar-label {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  color: var(--foam);
  z-index: 1;
  pointer-events: none;
}

.tw-bar-val {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  color: var(--foam);
  z-index: 1;
  pointer-events: none;
}

.tw-empty {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  color: var(--mist);
  padding: .4rem 0;
}

/* ── Trends ── */
.trends-tabs {
  display: flex;
  gap: .45rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.trends-tab {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--gb);
  border-radius: 100px;
  padding: .32rem .85rem;
  font-size: .76rem;
  font-family: 'DM Mono', monospace;
  color: var(--mist);
  cursor: pointer;
  transition: all .2s;
}

.trends-tab:hover {
  color: var(--foam);
}

/* Per-sport active tab colors are injected by ActivityMode.js */
.trends-tab.active {
  background: rgba(79, 195, 247, .12);
  border-color: rgba(79, 195, 247, .3);
  color: #4fc3f7;
}

.trends-period {
  font-size: .72rem;
  color: var(--mist);
  letter-spacing: .04em;
  margin-bottom: .55rem;
}

.trends-chart-wrap {
  margin-bottom: 1rem;
  overflow: visible;
}

.trends-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .5rem;
}

.trends-stat {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--gb);
  border-radius: 10px;
  padding: .6rem .75rem;
  text-align: center;
}

.ts-val {
  font-family: 'DM Mono', monospace;
  font-size: .9rem;
  color: var(--foam);
  font-weight: 600;
  line-height: 1.2;
}

.ts-unit {
  font-size: .68rem;
  color: var(--mist);
  font-weight: 400;
}

.ts-lbl {
  font-size: .62rem;
  color: var(--mist);
  margin-top: .15rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.chart-tip {
  display: none;
  position: absolute;
  background: var(--ocean);
  border: 1px solid var(--gb);
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .72rem;
  font-family: 'DM Mono', monospace;
  color: var(--foam);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}
