.tg-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-bottom: 0;
}
.tg-switch button,
.tg-cats button {
  font: 600 .95rem var(--f-body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  min-height: 44px;
  cursor: pointer;
  line-height: 1.15;
}
.tg-switch button[aria-pressed=true],
.tg-cats button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tg-view h1 {
  margin-top: 0;
}
.tg-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.tg-cats button {
  padding: 8px 14px;
}
.tg-cats button:disabled {
  cursor: default;
  color: var(--muted);
  background: var(--soft);
}
.tg-cats button small {
  font-weight: 500;
  font-size: .72rem;
  margin-left: 4px;
}
.tg-sub {
  color: var(--muted);
  margin: 0 0 12px;
}
.tg-list {
  display: grid;
  gap: 10px;
}
.tg-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.tg-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}
.tg-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.tg-prem {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--good);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.tg-price {
  margin: 6px 0 8px;
  font-weight: 600;
  color: var(--ink);
}
.tg-price:has(+ .tg-speed) {
  margin-bottom: 2px;
}
.tg-speed {
  margin: 0 0 8px;
  font-size: .92em;
  color: var(--ink);
}
.tg-spot,
.tg-why {
  margin: 0 0 6px;
  color: var(--ink);
}
.tg-why {
  color: var(--muted);
  font-size: .93rem;
}
.tg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 8px 0 0;
  font-weight: 600;
}
.tg-foot a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}
.tg-foot small {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
}
.tg-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
}
.tg-empty h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.tg-empty p {
  margin: 0;
  color: var(--muted);
}
.tg-dropped {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}
.tg-dropped summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.tg-dropped ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.tg-dropped li {
  margin: 4px 0;
  color: var(--ink);
  font-size: .93rem;
}
