.quantify-rich-text-bubble-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(20, 22, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.quantify-rich-text-bubble-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.quantify-rich-text-bubble-button:hover,
.quantify-rich-text-bubble-button.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

.quantify-rich-text-slash-menu {
  position: fixed;
  z-index: 1250;
  width: min(320px, calc(100vw - 16px));
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  background: rgba(24, 24, 29, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.quantify-rich-text-slash-menu-empty {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.quantify-rich-text-slash-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.quantify-rich-text-slash-menu-item:hover,
.quantify-rich-text-slash-menu-item.is-active {
  background: rgba(255, 255, 255, 0.05);
}

.quantify-rich-text-slash-menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.quantify-rich-text-slash-menu-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quantify-rich-text-slash-menu-item-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 500;
}

.quantify-rich-text-slash-menu-item-description {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  line-height: 1.35;
}

.quantify-rich-text-slash-menu-item-hint {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 500;
}

.quantify-rich-text-gif-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 140ms ease;
}

.quantify-rich-text-gif-picker-overlay.is-visible {
  opacity: 1;
}

.quantify-rich-text-gif-picker {
  width: min(840px, calc(100vw - 64px));
  max-height: min(78vh, 720px);
  display: grid;
  grid-template-rows: auto auto minmax(40px, auto) minmax(180px, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(18, 18, 24, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.quantify-rich-text-gif-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quantify-rich-text-gif-picker-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
}

.quantify-rich-text-gif-picker-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
}

.quantify-rich-text-gif-picker-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
}

.quantify-rich-text-gif-picker-search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.quantify-rich-text-gif-picker-search-icon {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.quantify-rich-text-gif-picker-search {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.quantify-rich-text-gif-picker-search::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.quantify-rich-text-gif-picker-search:focus {
  outline: none;
}

.quantify-rich-text-gif-picker-empty {
  padding: 12px 4px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12.5px;
}

.quantify-rich-text-gif-picker-empty code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.quantify-rich-text-gif-picker-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.quantify-rich-text-gif-picker-item {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.quantify-rich-text-gif-picker-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.quantify-rich-text-gif-picker-item:hover img {
  border-color: rgba(255, 255, 255, 0.12);
}

.quantify-rich-text-gif-picker-item-title {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quantify-rich-text-gif-picker-footer {
  display: flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11.5px;
}

.quantify-rich-text-gif-picker-footer a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
}

.quantify-rich-text-gif-picker-footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}
