/* In-place translation. Matches the X post credit: 13px secondary text, blue Show original. */
.tr-credit {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}
.tr-credit[hidden] { display: none; }
.tr-credit .show-more {
  color: var(--blue);
  font-size: 13px;
  line-height: 16px;
  margin-left: 4px;
  font-weight: 400;
}
button.translate-link[hidden] { display: none; }
button.translate-link[disabled] {
  color: var(--muted);
  cursor: progress;
}
button.translate-link[disabled]:hover { text-decoration: none; }
.tr-fallback { font-size: 13px; line-height: 16px; }

.tr-progress {
  margin-top: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.tr-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}
.tr-progress em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  font-style: normal;
}

.post-text.tr-busy,
.status-text.tr-busy,
.bio.tr-busy,
.quote-text.tr-busy {
  position: relative;
}
:root, html[data-theme="lightsout"] { --tr-sheen: rgba(231, 233, 234, 0.22); }
html[data-theme="dim"] { --tr-sheen: rgba(247, 249, 249, 0.18); }
html[data-theme="default"] { --tr-sheen: rgba(15, 20, 25, 0.14); }
.post-text.tr-busy::after,
.status-text.tr-busy::after,
.bio.tr-busy::after,
.quote-text.tr-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* rgba ends stay white. The keyword transparent interpolates through black and hides the text. */
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 28%, var(--tr-sheen) 50%, rgba(255, 255, 255, 0) 72%);
  background-size: 220% 100%;
  animation: tr-shimmer 1.05s ease-in-out infinite;
}
@keyframes tr-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .post-text.tr-busy::after,
  .status-text.tr-busy::after,
  .bio.tr-busy::after,
  .quote-text.tr-busy::after {
    animation: none;
    opacity: 0.45;
  }
}

.tr-settings { margin: 4px 0 16px; }
.tr-settings .phandle { margin: 0 0 8px; }
.tr-select {
  width: 100%;
  max-width: 280px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 17px;
  outline: none;
}
.tr-select:focus { border-bottom-color: var(--blue); }
.tr-setting-row { margin: 8px 0 16px; }
.tr-field { margin: 16px 0; }
.tr-field h3 { margin: 12px 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.tr-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tr-chip {
  font-size: 13px;
  line-height: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tr-chip:hover { border-color: var(--blue); }
.tr-chip.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tr-add-select { margin-top: 4px; max-width: 220px; font-size: 15px; }
