/* ── Floating Text Format Toolbar ────────────────────────────────────────── */
.tft-bar {
  position: fixed;
  z-index: 10000;
  background: #252840;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 9px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  gap: 1px;
  padding: 4px 5px;
  user-select: none;
  white-space: nowrap;
  pointer-events: all;
  transition: opacity 0.1s;
}
.tft-bar.visible { display: flex; }

/* Buttons */
.tft-btn {
  background: none;
  border: none;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
  min-width: 28px;
  height: 28px;
}
.tft-btn:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.tft-btn.active { background: rgba(124,92,191,0.3); color: #a87fe8; }

/* Bold label */
.tft-btn[data-cmd="bold"]          { font-weight: 700; font-size: 14px; }
.tft-btn[data-cmd="italic"]        { font-style: italic; font-size: 14px; }
.tft-btn[data-cmd="underline"]     { text-decoration: underline; }
.tft-btn[data-cmd="strikeThrough"] { text-decoration: line-through; }

/* Divider */
.tft-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  margin: 0 3px;
  flex-shrink: 0;
}

/* Align dropdown */
.tft-dropdown-wrap { position: relative; }

.tft-dropdown-menu {
  position: fixed;
  background: #252840;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  padding: 4px;
  min-width: 180px;
  z-index: 10001;
}

.tft-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted, #aaa);
  transition: background 0.12s;
}
.tft-menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tft-menu-item.active { color: #a87fe8; }

.tft-chevron { opacity: 0.5; margin-left: 1px; }

/* Inline code style inside description / comments */
.description-area code,
.comment-text code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #e8a246;
  white-space: pre-wrap;
}
