@charset "UTF-8";
/* In-house editor AI surfaces — bubble cluster + slash composer + preview.
   Tokens only; the glass material + --shadow-pop come from the global `.popover`
   class, so light/dark ride on `.lg-root(.theme-dark)` with no per-theme rules. */
._popover_1y3nd_3 {
  /* width/position are set inline by EditorAiPopover; this just caps height. */
  overflow: hidden;
}

._panel_1y3nd_10 {
  display: flex;
  flex-direction: column;
  max-height: min(60vh, 420px);
}

._header_1y3nd_16 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--glass-hair);
}

._headerIcon_1y3nd_24 {
  color: var(--brand-text);
  flex-shrink: 0;
}

._headerTitle_1y3nd_29 {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}

._close_1y3nd_38 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background var(--t-base) ease, color var(--t-base) ease;
}

._close_1y3nd_38:hover {
  background: var(--glass-fill);
  color: var(--ink);
}

._controls_1y3nd_57 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

._modeRow_1y3nd_64 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

._modeChip_1y3nd_70 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-btn);
  background: var(--glass-fill);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 550;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-base) ease, color var(--t-base) ease, border-color var(--t-base) ease;
}

._modeChip_1y3nd_70:hover {
  background: var(--brand-tint);
  color: var(--brand-text);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

._modeChip_1y3nd_70 svg {
  flex-shrink: 0;
}

._inputRow_1y3nd_97 {
  display: flex;
  align-items: center;
  gap: 6px;
}

._input_1y3nd_97 {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-btn);
  background: var(--glass-fill);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}

._input_1y3nd_97::placeholder {
  color: var(--ink-faint);
}

._input_1y3nd_97:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: var(--focus-ring);
}

._previewWrap_1y3nd_127 {
  padding: 10px;
  overflow-y: auto;
  border-top: 1px solid var(--glass-hair);
}

._preview_1y3nd_127 {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

._previewText_1y3nd_141 {
  color: var(--ink);
}

._caret_1y3nd_145 {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--brand-text);
  animation: _lg-ai-blink_1y3nd_1 1s steps(1) infinite;
}

._thinking_1y3nd_155 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 12.5px;
}

._spin_1y3nd_163 {
  /* Progress lines can wrap; the spinner must never be squeezed by the text. */
  flex: none;
  animation: _lg-ai-spin_1y3nd_1 0.7s linear infinite;
}

._error_1y3nd_169 {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--danger);
}

._errorIcon_1y3nd_178 {
  flex-shrink: 0;
  margin-top: 1px;
}

._emptyHint_1y3nd_183 {
  margin: 0;
  padding: 2px 10px 10px;
  font-size: 12px;
  color: var(--ink-faint);
}

._footer_1y3nd_190 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--glass-hair);
}

/* ── Bubble-menu AI trigger cluster (sits inside the text bubble bar) ── */
._aiGroup_1y3nd_199 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

._aiTrigger_1y3nd_205 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--brand-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-base) ease, color var(--t-base) ease;
}

._aiTrigger_1y3nd_205:hover {
  background: var(--brand-tint);
  color: var(--brand-text);
}

._aiTrigger_1y3nd_205 svg {
  flex-shrink: 0;
}

@keyframes _lg-ai-blink_1y3nd_1 {
  50% {
    opacity: 0;
  }
}
@keyframes _lg-ai-spin_1y3nd_1 {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  ._caret_1y3nd_145 {
    animation: none;
  }
  ._spin_1y3nd_163 {
    animation: none;
  }
}