/* Elementi a colpo d'occhio (glance.js, 24/10 notte): barre, bollini, frecce, scala 1-10, mini-curve.
   Colori solo dai token --brand-*, testo a 16 px. */
.meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--s16);
}
.meter-track {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 10px;
  border-radius: 0;
  background: var(--soft);
  overflow: hidden;
  flex: none;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 0;
  background: var(--brand-mark);
}
.meter-up .meter-fill {
  background: var(--brand-up);
}
.meter-down .meter-fill {
  background: var(--brand-down);
}
.meter-risk .meter-fill {
  background: var(--brand-risk);
}
.meter-muted .meter-fill {
  background: var(--brand-muted);
}
.glance-badge {
  display: inline-block;
  font-family: var(--brand-font-mono);
  font-size: var(--s16);
  line-height: 1.3;
  border-radius: 0;
  padding: 1px 10px;
  border: 1px solid currentColor;
  font-weight: 600;
  white-space: nowrap;
}
.badge-up {
  color: var(--brand-up);
}
.badge-down {
  color: var(--brand-down);
}
.badge-accent {
  color: var(--brand-info);
}
.badge-risk {
  color: var(--brand-risk);
}
.badge-muted {
  color: var(--brand-muted);
  border-color: var(--brand-line);
  font-weight: 400;
}
.rank-scale-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.rank-scale {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 18px;
  background: linear-gradient(var(--soft), var(--soft)) center / 100% 2px no-repeat;
}
.rank-dot {
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--brand-mark);
}
.rank-num {
  font-size: var(--s16);
  min-width: 2.5em;
}
.glance-spark {
  display: inline-block;
  width: 120px;
  height: 36px;
  flex: none;
}
.glance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.glance-caption {
  font-size: var(--s16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.glance-bars {
  display: grid;
  gap: 6px;
  margin: 6px 0;
}
.glance-bars .meter-track {
  width: 180px;
}
