1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* Badge
   A catalog mark, not a tinted pill: a small ink square in the tone colour
   plus mono uppercase text, on no background. No border, no radius — status
   reads as a marginal annotation on the row it belongs to, not a control.

   A <span> is too generic to style globally — it is used all over running
   prose for unrelated reasons — so Badge gets the one sanctioned class this
   shape needs. Tone is an attribute, not a modifier class. */

.badge {
  --_fg: var(--gl-color-text-secondary);

  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--_fg);
  font-family: var(--gl-font-mono);
  font-size: var(--gl-step--2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  background: var(--_fg);
}

.badge[data-tone="accent"]  { --_fg: var(--gl-color-accent-ink); }
.badge[data-tone="success"] { --_fg: var(--gl-color-success); }
.badge[data-tone="danger"]  { --_fg: var(--gl-color-danger); }

.badge-set {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gl-space-2xs);
}

/* Tag
   A removable mono chip for freeform tags — locations, categories.
   `[data-dashed]` renders an "add tag" affordance instead of a value. Same
   reasoning as Badge: <span> is too generic to select bare, so Tag gets one
   class. The remove control is a real <button>, styled through the
   descendant selector rather than a class of its own. */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border: none;
  border-radius: var(--gl-radius-sm);
  background: var(--gl-color-surface-fill);
  color: var(--gl-color-text-secondary);
  font-family: var(--gl-font-mono);
  font-size: var(--gl-step--2);
  line-height: 1;
}

.tag[data-dashed] {
  background: transparent;
  border-style: dashed;
  color: var(--gl-color-text-tertiary);
  cursor: pointer;
}

.tag button {
  all: unset;
  cursor: pointer;
  color: var(--gl-color-text-tertiary);
  line-height: 1;
  font-size: 0.75rem;
}
.tag button:hover { color: var(--gl-color-text-primary); }

.tag-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}