/* Context-occupancy ring beside the send button plus its click-open breakdown
   panel (menu surface: r12, inverted hairline, shadow-lv3). */

.root {
  position: relative;
  display: inline-flex;
}

/* Same 28px circular hit target family as the composer's attach button. */
.trigger {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dsw-alias-label-secondary);
  cursor: pointer;
}

.trigger:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.track {
  fill: none;
  stroke: var(--dsw-alias-border-l3);
  stroke-width: 2;
}

.fill {
  fill: none;
  stroke: var(--dsw-alias-label-tertiary);
  stroke-width: 2;
  stroke-linecap: round;
}

.panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 264px;
  padding: 12px;
  border: 1px solid var(--dsw-alias-border-inverted);
  border-radius: 12px;
  background: var(--dsw-specific-menu);
  box-shadow: var(--dsw-shadow-lv3);
  font-size: 12px;
  line-height: 20px;
  color: var(--dsw-alias-label-secondary);
  cursor: default;
}

.header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.figures {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--dsw-alias-label-primary);
}

.percent {
  font-weight: 500;
  color: var(--dsw-alias-label-primary);
}

.headline {
  color: var(--dsw-alias-label-tertiary);
}

/* The headline brackets the reading, so the side a locale leaves empty must
   drop out of the flex row rather than spend a gap. */
.headline:empty {
  display: none;
}

.bar {
  display: flex;
  gap: 1px;
  margin: 10px 0 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--dsw-alias-interactive-bg-hover);
  overflow: hidden;
}

.segment {
  flex: none;
  min-width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--meter-tint, var(--dsw-alias-label-tertiary));
}

.swatch {
  display: inline-block;
  margin-right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--meter-tint);
  vertical-align: baseline;
}

.colorSystem {
  --meter-tint: var(--dsw-static-neutral-bluish-400);
}

.colorTools {
  /* The design platform ships no purple static token; violet-400 literal. */
  --meter-tint: rgb(167, 139, 250);
}

.colorMessages {
  --meter-tint: var(--dsw-static-blue-450);
}

.rows {
  margin: 6px 0 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.row dt {
  color: var(--dsw-alias-label-secondary);
}

.row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--dsw-alias-label-primary);
}
