@import url('trend_following.css');

.ath-tool {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ath-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.ath-stat {
  padding: 10px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
}

.ath-stat .k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-subtle);
}

.ath-stat .v {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--fg-default);
}

.ath-search {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--fg-default);
  border-radius: var(--radius);
  font: inherit;
  font-size: 11px;
  padding: 6px 10px;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 280px;
}

.ath-search::placeholder {
  color: var(--fg-subtle);
}

.ath-table tbody tr {
  cursor: pointer;
}

.ath-table tbody tr.is-selected {
  background: rgba(56, 139, 253, 0.08);
}

.ath-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ath-status.is-near { background: rgba(63, 185, 80, 0.15); color: #3fb950; }
.ath-status.is-moderate { background: rgba(210, 153, 34, 0.15); color: #d29922; }
.ath-status.is-deep { background: rgba(248, 81, 73, 0.12); color: #f85149; }
.ath-status.is-extreme { background: rgba(248, 81, 73, 0.22); color: #ff7b72; }

.ath-dd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.ath-dd-bar span.track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.ath-dd-bar span.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3fb950, #d29922, #f85149);
}

.ath-detail-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.ath-detail-kv dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-subtle);
}

.ath-detail-kv dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-default);
}

.ath-top-pick-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.ath-top-pick-card strong {
  font-family: var(--mono);
  font-size: 20px;
}
