#readme-button {
  display: none !important;
}

#theme-toggle {
    display: none;
}

form button.inline-flex.items-center.justify-center.gap-2.whitespace-nowrap.rounded-md {
    background-color: #109a29;
    color: white;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

form button.inline-flex.items-center.justify-center.gap-2.whitespace-nowrap.rounded-md svg{
    display: none;
}

#command-button {
    display: none !important;
}

.ai-message:has(.prompttab) .inline-block {
    display: none;
}

button.prompttab[aria-selected="true"] {
    border-bottom-width: 2px;
    border-bottom-color: hsl(var(--foreground));
}

button.prompttab-line {
    border-bottom-width: 1px;
}

#side-view-content > .inline-custom {
    flex-grow: 0 !important;
}

button:has(svg.lucide.lucide-link) {
    border: solid 1px;
    height: 2rem;
    margin-left: 12px;
}

.watermark {
    text-align: center;
}

.watermark a {
    text-decoration: underline;
}

.ai-message a.inline-citation {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin: 0 0.18rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
  box-shadow:
    inset 0 0 0 1px hsl(var(--border)),
    0 3px 10px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.ai-message a.inline-citation:hover,
.ai-message a.inline-citation:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow:
    inset 0 0 0 1px hsl(var(--border)),
    0 8px 18px rgba(15, 23, 42, 0.14);
}

.ai-message a.inline-citation[data-citation-title]::after {
  content: attr(data-citation-title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.2rem);
  width: max-content;
  max-width: min(24rem, 75vw);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  white-space: normal;
  z-index: 20;
}

.ai-message a.inline-citation[data-citation-title]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2rem);
  width: 0.65rem;
  height: 0.65rem;
  background: hsl(var(--primary));
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  z-index: 19;
}

.ai-message a.inline-citation[data-citation-title]:hover::after,
.ai-message a.inline-citation[data-citation-title]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ai-message a.inline-citation[data-citation-title]:hover::before,
.ai-message a.inline-citation[data-citation-title]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg);
}
