#themed-app .tn-head { margin-block-end: var(--app-space-lg); }
#themed-app .tn-lede { color: var(--app-color-fg-muted); margin-block-start: var(--app-space-2xs); }

#themed-app .tn-actions {
  display: flex;
  align-items: center;
  gap: var(--app-space);
  margin-block-end: var(--app-space-lg);
}
#themed-app .tn-actions label { font-size: 0.875rem; font-weight: 600; }
#themed-app #tn-count { flex: 1; }
#themed-app .tn-count-val {
  width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: var(--app-font-mono, ui-monospace, monospace);
}
#themed-app .tn-generate {
  padding: 0.5rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--app-color-accent-on);
  background: var(--app-color-accent);
  border: 1px solid transparent;
  border-radius: var(--app-radius, 0.5rem);
  cursor: pointer;
  transition: background-color 0.15s;
}
#themed-app .tn-generate:hover { background: var(--app-color-accent-hover); }
#themed-app .tn-generate:disabled { opacity: 0.6; cursor: progress; }

#themed-app .hidden { display: none !important; }
#themed-app .tn-empty { color: var(--app-color-fg-muted); font-size: 0.875rem; }

#themed-app .tn-error {
  margin-block-start: var(--app-space);
  padding: var(--app-space-sm);
  border-radius: var(--app-radius, 0.5rem);
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.875rem;
}

#themed-app #tn-rows { display: flex; flex-direction: column; gap: 0.5rem; }
#themed-app .tn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--app-color-fg) 5%, transparent);
}
#themed-app .tn-row:hover { background: color-mix(in srgb, var(--app-color-fg) 10%, transparent); }
#themed-app .tn-name {
  font-family: var(--app-font-mono, ui-monospace, monospace);
  font-size: 1rem;
  color: inherit;
}
#themed-app a.tn-name {
  text-decoration: none;
  border-bottom: 1px dotted var(--app-color-border);
  cursor: pointer;
}
#themed-app a.tn-name:hover,
#themed-app a.tn-name:focus {
  color: var(--app-color-accent);
  border-bottom-color: var(--app-color-accent);
}
#themed-app .tn-trait { color: var(--app-color-fg-muted); font-size: 0.9rem; flex: 1; }
#themed-app .tn-votes { display: flex; gap: 0.25rem; }
#themed-app .tn-vote-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s, border-color 0.15s;
}
#themed-app .tn-vote-btn:hover { opacity: 1; border-color: var(--app-color-border); }
#themed-app .tn-vote-btn.voted { opacity: 1; }
#themed-app .tn-vote-btn.voted-up { color: #22c55e; }
#themed-app .tn-vote-btn.voted-down { color: #ef4444; }
