.tbwtb-language-picker {
  position: fixed;
  z-index: 99999;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 36px);
  padding: 10px 12px;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.tbwtb-language-picker select,
.tbwtb-language-picker button { font: inherit; font-size: 13px; }
.tbwtb-language-picker button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 5px 9px;
  cursor: pointer;
}

/* Small, quiet text link — no button frame or background. */
.tbwtb-translate-control {
  display: block;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: .78em;
  letter-spacing: .015em;
  opacity: .78;
  cursor: pointer;
  transition: color .15s ease, opacity .15s ease;
}
.tbwtb-translate-control:hover,
.tbwtb-translate-control:focus {
  color: #111;
  opacity: 1;
  text-decoration: underline;
}
.tbwtb-translate-control:disabled { cursor: wait; opacity: .5; }

/* Translation as a second reading layer, aligned slightly inward. */
.tbwtb-comment-translation {
  margin: 8px 0 0 10px;
  padding: 2px 0 2px 12px;
  border-left: 1px solid #aaa;
  color: inherit;
  opacity: .78;
  font: inherit;
  font-size: .94em;
  line-height: 1.5;
}
.tbwtb-translation-text { display: block; white-space: pre-line; }
.tbwtb-translation-label {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: .68em;
  letter-spacing: .04em;
  text-transform: lowercase;
}
.tbwtb-translate-control[hidden],
.tbwtb-comment-translation[hidden] { display: none !important; }

@media (max-width: 600px) {
  .tbwtb-language-picker {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: space-between;
  }
}


/* Circle Specular translation controls (inside the embedded GitHub page). */
.tbwtb-circle-translate {
  display: block;
  margin: 3px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: .72em;
  cursor: pointer;
}
.tbwtb-circle-translate:hover { color: #111; text-decoration: underline; }
.tbwtb-circle-translation {
  margin: 3px 0 10px 10px;
  padding-left: 10px;
  border-left: 1px solid #aaa;
  opacity: .78;
  white-space: pre-line;
  font-size: .92em;
}
