.preset-pill {
  position: relative;
  min-height: 76px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.preset-pill * {
  pointer-events: none;
}

.preset-pill:active {
  transform: translateY(1px);
}

.preset-pill.is-selected {
  border-color: rgba(154, 98, 255, 0.95);
  background: rgba(154, 98, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(154, 98, 255, 0.34);
  opacity: 1;
}

.preset-pill.is-selected::after {
  content: "Selected";
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(154, 98, 255, 0.5);
  border-radius: 999px;
  color: var(--purple);
  background: rgba(5, 8, 10, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.preset-pill:disabled:not(.is-selected) {
  cursor: not-allowed;
  opacity: 0.42;
}

.favorite-chip strong,
.preset-pill strong,
.opportunity-card strong,
.review-decision-card strong {
  overflow-wrap: anywhere;
}

.tv-hidden-score-row,
.tv-hidden-rule-field {
  display: none !important;
}

.tv-confluence-panel {
  display: grid;
  gap: 10px;
}

.tv-confluence-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tv-confluence-head {
  display: grid;
  gap: 4px;
}

.tv-confluence-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.tv-confluence-head p,
.tv-confluence-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tv-switch {
  min-height: 36px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tv-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.tv-field-grid,
.tv-token-grid {
  display: grid;
  gap: 8px;
}

.tv-field-grid.two-cols {
  grid-template-columns: 1fr 1fr;
}

.tv-token-grid {
  grid-template-columns: 1fr 1fr;
}

.tv-token-toggle {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.tv-token-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.tv-external-link {
  color: #78d7ff;
  font-weight: 900;
  text-decoration: none;
}

.tv-external-link:focus,
.tv-external-link:hover {
  text-decoration: underline;
}
