.ve-pop:popover-open {
  position: fixed;
  inset: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--foreground);
}
.ve-pop > [role] {
  position: fixed;
  margin: 0;
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 12px);
  background-color: var(--popover, var(--card, white));
}
.ve-pop [role=menuitem]:focus-visible {
  background: var(--accent, #f1f4f7);
  outline: 2px solid #a4c4e8;
  outline-offset: -2px;
}
.ve-pop .history-scroll > p,
.ve-note { padding: .5rem .75rem; font-size: .8rem; color: var(--muted-foreground); }
.ve-note:empty { display: none; }
.ve-pop .ve-neutral { color: var(--muted-foreground); background-color: var(--muted); }
.ve-history-heading, .ve-history-confirm { display: flex; align-items: center; gap: .5rem; }
.ve-history-heading { justify-content: space-between; }
.ve-history-action { border: 1px solid var(--border, #dfe3e8); border-radius: .5rem; padding: .25rem .5rem; font-size: .75rem; font-weight: 500; cursor: pointer; }
.ve-history-action:hover { background: var(--muted); }
.ve-history-action:disabled { opacity: .45; cursor: default; }
.ve-history-confirm { margin-top: .5rem; flex-wrap: wrap; font-size: .75rem; }
.ve-history-confirm[hidden] { display: none; }
.ve-history-confirm span { flex: 1; min-width: 8rem; }
.ve-pop .ve-history-panel > .shrink-0 { padding-right: .875rem; }
.ve-pop .ve-history-panel .we-close {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  font-size: 18px;
  line-height: 1;
}
.ve-pop .ve-history-panel .history-scroll {
  padding-left: .75rem;
  padding-right: .25rem;
  scrollbar-width: thin;
}
.ve-pop .ve-history-panel .history-scroll::-webkit-scrollbar { width: 6px; }
.ve-pop .ve-history-panel .history-scroll::-webkit-scrollbar-thumb { background: #c9cfd6; border-radius: 3px; }
.ve-pop .ve-history-row {
  grid-template-columns: 4.5rem minmax(0,1fr) auto;
  padding-left: .5rem;
  padding-right: .25rem;
}
.ve-pop .ve-history-row > div:last-child {
  gap: .125rem;
  justify-content: flex-end;
  justify-self: end;
  width: max-content;
}
.ve-pop .ve-history-row .deferred-video-play {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 1px 2px #000c);
}
.ve-pop .ve-history-row .deferred-video-play::after {
  margin-left: .06rem;
  border-width: .21rem;
  border-right-width: 0;
  border-left-width: .32rem;
}
.ve-pop .ve-remove { color: var(--muted-foreground); }
.ve-pop .ve-remove:hover { color: #ba3944; background: color-mix(in srgb, #d55a67 10%, var(--popover)); }
.ve-pop .ve-history-action:focus-visible, .ve-pop .ve-history-row button:focus-visible { outline: 2px solid #91b6db; outline-offset: 1px; }
.ve-modal[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  color: var(--foreground);
  background: var(--popover, var(--card, white));
  border: 1px solid var(--border, #dfe3e8);
  border-radius: .75rem;
  overflow: auto;
}
.ve-modal::backdrop { background: rgb(0 0 0 / 32%); backdrop-filter: blur(3px); }
.ve-modal > [data-slot=dialog-content], .ve-modal > .motion-dialog-panel {
  position: relative;
  inset: auto;
  transform: none;
  width: min(32rem, calc(100vw - 1.5rem));
}
.ve-modal[aria-label="AI生成水印设置"] > div { width: min(39.5rem, calc(100vw - 1.5rem)); }
.ve-modal [hidden] { display: none !important; }
