.watermark {
  display: none !important;
}

/* Hide Chainlit's pre-response loading cursor / blinking dot */
.loading-cursor,
.step + .loading-cursor,
.step + span.animate-pulse,
.step + div .loading-cursor,
.step + div span.animate-pulse {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* ===== Yukon answer: markdown body ===== */
.yukon-answer-body {
  font-size: 1rem;
  line-height: 1.7;
  color: inherit;
}

/* Headings */
.yukon-answer-body :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600;
  line-height: 1.3;
  margin: 1em 0 0.35em;
}
.yukon-answer-body h1 { font-size: 1.5em; }
.yukon-answer-body h2 { font-size: 1.3em; }
.yukon-answer-body h3 { font-size: 1.15em; }
.yukon-answer-body h4 { font-size: 1em; }

/* Paragraphs */
.yukon-answer-body p { margin: 0.55em 0; }

/* Lists */
.yukon-answer-body ul { list-style-type: disc; margin: 0.5em 0; padding-left: 1.5em; }
.yukon-answer-body ol { list-style-type: decimal; margin: 0.5em 0; padding-left: 1.5em; }
.yukon-answer-body li { display: list-item; margin: 0.2em 0; }

/* Nested lists */
.yukon-answer-body li > ul,
.yukon-answer-body li > ol { margin: 0.15em 0; }

/* Inline formatting */
.yukon-answer-body strong { font-weight: 600; }
.yukon-answer-body em     { font-style: italic; }

/* Horizontal rule */
.yukon-answer-body hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 1em 0;
}

/* Blockquotes */
.yukon-answer-body blockquote {
  border-left: 3px solid hsl(var(--border));
  margin: 0.8em 0;
  padding: 0.1em 1em;
  color: hsl(var(--muted-foreground));
}

/* Inline code */
.yukon-answer-body code {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Code blocks */
.yukon-answer-body pre {
  margin: 0.8em 0;
  padding: 1em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875em;
}
.yukon-answer-body pre code {
  background: none;
  padding: 0;
}

/* Tables */
.yukon-answer-body table {
  border-collapse: collapse;
  margin: 0.8em 0;
  width: 100%;
  font-size: 0.9em;
}
.yukon-answer-body th,
.yukon-answer-body td {
  border: 1px solid hsl(var(--border));
  padding: 6px 12px;
  text-align: left;
}
.yukon-answer-body th { font-weight: 600; background: rgba(0, 0, 0, 0.03); }

/* Collapse margin on first/last child so there's no leading/trailing gap */
.yukon-answer-body > *:first-child { margin-top: 0; }
.yukon-answer-body > *:last-child  { margin-bottom: 0; }

/* Citation superscript buttons */
.yukon-cite {
  color: #1473E6;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 1px;
  font-size: 0.75em;
  line-height: 1;
}

/* ===== Element sidebar (PDF viewer) width ===== */
/* min-width forces the panel wider than the default 20%, while still allowing drag-to-resize */
div[data-panel]:has(#side-view-title) {
  min-width: 340px !important;
  flex: 1 0 calc(100% - 420px) !important;
}

@media (max-width: 900px) {
  div[data-panel]:has(#side-view-title) {
    min-width: 280px !important;
    flex: 1 0 60% !important;
  }
}

/* --- Favorites/command popovers: force proper layering + opaque surface --- */
[data-radix-popper-content-wrapper] {
  z-index: 9999 !important;
}

[data-radix-popper-content-wrapper] > * {
  background: hsl(var(--background)) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

/* cmdk layers used inside favorites popover */
[data-radix-popper-content-wrapper] [cmdk-root],
[data-radix-popper-content-wrapper] [cmdk-list],
[data-radix-popper-content-wrapper] [cmdk-empty],
[data-radix-popper-content-wrapper] [cmdk-group] {
  background: hsl(var(--background)) !important;
}

#starters {
  position: relative;
  z-index: 0;
}

#starters::before {
  position: relative;
  z-index: 0;
}
/* ===== Starter categories: nested list styling ===== */

/* Optional helper label above starter area */
#starters::before {
  content: "Click Any of the Below to See Examples of Zeus Capabilities";
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  opacity: 0.65;
  margin-bottom: 8px;
}

/* Keep starters container aligned with composer width */
#welcome-screen #starters {
  width: 100% !important;
  max-width: 100% !important;
}

/* Nested starters (visible after selecting a category) */
#welcome-screen #starters > div:has(> button[id^="starter-"]) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 6px 0 0 !important;
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 14px !important;
  background: hsl(var(--card)) !important;
  overflow: hidden !important;
}

/* Full-width rows (not bubbles) */
#welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] {
  width: 100% !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  min-height: 44px !important;
}


/* Divider between rows */
#welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] + button[id^="starter-"] {
  border-top: 1px solid hsl(var(--border)) !important;
}

/* Preserve hover feel */
#welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"]:hover {
  background: hsl(var(--accent)) !important;
}

#welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] p {
  color: hsl(var(--foreground)) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  text-align: left !important;
}

#welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] {
  /* existing rules... */
  height: auto !important;    /* allow button to grow */
  min-height: 44px !important;
}

/* Mobile fine-tuning for nested starters only */
@media (max-width: 600px) {
  #welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] {
    padding: 10px 11px !important;
    min-height: 42px !important;
  }

  #welcome-screen #starters > div:has(> button[id^="starter-"]) > button[id^="starter-"] p {
    font-size: 12px !important;
  }
}





/* ===== Welcome screen spacing ===== */
#welcome-screen {
  gap: 24px !important;
  padding: 20px !important;
}

#welcome-screen > div:first-child img {
  width: 120px !important;
  height: 120px !important;
  filter: drop-shadow(0 8px 24px rgba(168, 85, 247, 0.2));
  transition: transform 0.3s ease;
}

#welcome-screen > div:first-child img:hover {
  transform: scale(1.05);
}

/* ===== Message bubble action button alignment ===== */
.group .edit-message,
.group .favorite-message {
  margin-left: 0 !important;
}

.group > div:last-child {
  margin-left: 0 !important;
}

.group {
  justify-content: flex-end !important;
}

/* Hide pulse marker */
.step + span.animate-pulse {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  #starters {
    max-width: 100%;
    padding: 0 14px !important;
  }
}

@media (max-width: 600px) {
  #starters {
    padding: 0 12px !important;
  }

  #starters button[id^="starter-"] {
    padding: 12px 14px !important;
  }

  #starters button[id^="starter-"] p {
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  #starters button[id^="starter-"] img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  #starters button[id^="starter-"] p {
    font-size: 12px !important;
  }
}