html,
body,
#app {
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

.xy-glass-nav {
  background: rgba(12, 12, 12, 0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    backdrop-filter 0.22s ease,
    box-shadow 0.22s ease;
}

.xy-glass-nav.is-glass {
  background:
    radial-gradient(circle at 48% 0%, rgba(255, 255, 255, 0.26), transparent 46%),
    linear-gradient(90deg, rgba(9, 9, 9, 0.62), rgba(255, 255, 255, 0.13) 48%, rgba(9, 9, 9, 0.56)) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(30px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(170%) !important;
  box-shadow: 0 14px 56px rgba(0, 0, 0, 0.34) !important;
}

.xy-view {
  display: none !important;
}

.xy-view.active {
  display: flex !important;
}

.xy-side-dock {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
}

.xy-dock-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.xy-dock-button {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.xy-dock-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.xy-dock-button.active {
  background: rgba(255, 255, 255, 0.92);
  color: #171717;
}

.xy-dock-button:active {
  transform: scale(0.95);
}

.xy-dock-new {
  display: none;
}

.xy-dock-home,
.xy-dock-projects,
.xy-dock-button span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.xy-dock-new span::before,
.xy-dock-new span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.xy-dock-new span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.xy-dock-home::before {
  position: absolute;
  inset: 3px 2px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
  content: "";
}

.xy-dock-home::after {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 15px;
  height: 15px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.xy-dock-projects::before {
  position: absolute;
  inset: 6px 2px 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.xy-dock-projects::after {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 9px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}

.xy-nav-logo-link {
  display: block !important;
  width: 150px !important;
  height: 50px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  overflow: hidden !important;
}

.xy-nav-logo {
  display: block !important;
  width: 150px !important;
  height: 50px !important;
  max-width: 150px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.xy-light {
  pointer-events: none;
  z-index: 0;
  height: min(64vw, 820px);
  min-height: 520px;
  transform-origin: top center;
}

.xy-light-1 {
  background:
    radial-gradient(ellipse at 18% 26%, rgba(55, 90, 255, 0.58), transparent 30%),
    radial-gradient(ellipse at 38% 16%, rgba(255, 255, 255, 0.30), transparent 28%),
    radial-gradient(ellipse at 56% 21%, rgba(154, 124, 255, 0.40), transparent 31%),
    radial-gradient(ellipse at 76% 30%, rgba(255, 0, 106, 0.26), transparent 29%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 72%);
  filter: blur(5px);
}

.xy-light-1::before,
.xy-light-1::after,
.xy-light-2::before,
.xy-light-2::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.xy-light-1::before {
  top: -95px;
  left: 7%;
  width: 104%;
  height: 520px;
  transform: rotate(-9deg);
  background: linear-gradient(104deg, transparent 5%, rgba(255,255,255,0.24) 26%, rgba(120,150,255,0.28) 43%, rgba(255,255,255,0.12) 56%, transparent 78%);
  filter: blur(28px);
}

.xy-light-1::after {
  top: -110px;
  left: 19%;
  width: 82%;
  height: 440px;
  transform: rotate(13deg);
  background: linear-gradient(99deg, transparent 6%, rgba(255,255,255,0.34) 36%, rgba(124,101,255,0.24) 52%, transparent 75%);
  filter: blur(36px);
}

.xy-light-2 {
  opacity: 0.95;
  background:
    radial-gradient(ellipse at 42% 39%, rgba(255, 255, 255, 0.24), transparent 35%),
    radial-gradient(ellipse at 60% 32%, rgba(82, 122, 255, 0.36), transparent 36%),
    linear-gradient(100deg, transparent 9%, rgba(118, 89, 255, 0.28), transparent 72%);
  filter: blur(12px);
}

.xy-light-2::before {
  top: -52px;
  left: -9%;
  width: 86%;
  height: 390px;
  transform: rotate(-19deg);
  background: linear-gradient(95deg, transparent 2%, rgba(255,255,255,0.22) 39%, rgba(78,107,255,0.22) 61%, transparent 83%);
  filter: blur(34px);
}

.xy-light-2::after {
  top: -70px;
  right: -8%;
  width: 72%;
  height: 420px;
  transform: rotate(22deg);
  background: linear-gradient(94deg, transparent 10%, rgba(255,255,255,0.20) 42%, rgba(255,0,106,0.16) 62%, transparent 84%);
  filter: blur(38px);
}

.xy-hero-logo {
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.22);
  filter: drop-shadow(0 24px 48px rgba(255, 255, 255, 0.16));
}

.xy-primary-chat-wrap {
  overflow: visible;
  z-index: 20;
  transform-origin: top center;
  transition:
    max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.xy-primary-chat-wrap.is-collapsed {
  max-height: 0 !important;
  margin-top: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.96);
}

.xy-result-panel {
  display: none;
  width: min(800px, 100%);
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(30px);
}

.xy-result-panel.visible {
  display: block;
}

.xy-dialog-panel {
  position: relative;
  width: min(640px, 100%);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: #050505;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  transform-origin: top center;
}

.xy-primary-chat-wrap .hover-tip::before,
.xy-primary-chat-wrap .hover-tip::after {
  z-index: 80;
}

.xy-dialog-panel.visible {
  animation: xy-dialog-morph-in 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.xy-dialog-panel.is-entering {
  pointer-events: none;
}

.xy-dialog-scroll {
  min-height: 360px;
  max-height: 560px;
  overflow-y: auto;
  padding: 24px 10px 18px;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-width: thin;
}

.xy-dialog-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.xy-dialog-message {
  color: rgba(255, 255, 255, 0.78);
}

.xy-dialog-status,
.xy-dialog-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.xy-dialog-text {
  margin: 12px 0 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.8;
}

.xy-dialog-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 14px;
}

.xy-dialog-reference-list img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  object-fit: cover;
}

.xy-dialog-ai-button {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, #fff 0 7%, transparent 8%),
    linear-gradient(135deg, #ff2d8d, #ffb037 48%, #7c4dff);
  box-shadow: 0 0 18px rgba(255, 45, 141, 0.65);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.xy-dialog-ai-button.is-pulsing,
.xy-dialog-message.is-generating .xy-dialog-ai-button {
  animation: xy-ai-pulse 1s ease-in-out infinite;
}

.xy-dialog-image-card {
  position: relative;
  width: min(196px, 62vw);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.xy-dialog-image-results {
  display: grid;
  width: min(430px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.xy-dialog-image-results .xy-dialog-image-card {
  width: 100%;
}

.xy-dialog-image-card img,
.xy-dialog-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-dialog-image-placeholder {
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 190, 112, 0.62), transparent 32%),
    linear-gradient(135deg, rgba(92, 45, 20, 0.84), rgba(218, 120, 46, 0.64) 54%, rgba(46, 32, 24, 0.92));
  filter: blur(13px);
  transform: scale(1.14);
  animation: xy-placeholder-breathe 1.6s ease-in-out infinite;
}

.xy-dialog-progress {
  justify-content: space-between;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.xy-dialog-progress strong {
  color: #fff;
  font-weight: 800;
}

.xy-dialog-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0e0e0e;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.xy-dialog-composer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: #131313;
  padding: 18px 62px 66px 14px;
}

.xy-dialog-input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  outline: 0;
  padding-left: 46px;
}

.xy-dialog-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.xy-dialog-attachments {
  display: none;
  margin: -4px 0 10px;
}

.xy-dialog-attachments.visible {
  display: block;
}

.xy-dialog-attachments .xy-upload-list {
  padding: 0;
}

.xy-dialog-upload {
  position: absolute;
  left: 14px;
  top: 18px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #2f2f2f;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.xy-dialog-upload::before,
.xy-dialog-upload::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.xy-dialog-upload::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.xy-dialog-upload:active {
  transform: scale(0.94);
}

.xy-floating-composer {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 90;
  display: none;
  width: min(800px, calc(100vw - 112px));
  min-height: 0;
  padding-bottom: 14px;
  transform: translateX(-50%) translateY(26px) scale(0.98);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.56), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(255, 167, 82, 0.26), transparent 34%),
    linear-gradient(120deg, rgba(245, 245, 245, 0.42), rgba(211, 218, 216, 0.34), rgba(255, 255, 255, 0.46));
  box-shadow: 0 26px 100px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.xy-floating-composer.visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.xy-dialog-panel-visible .xy-floating-composer.visible {
  display: none;
}

.xy-floating-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 12px 0 0 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px;
}

.xy-floating-tabs button {
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #171717;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
}

.xy-floating-attachments {
  display: none;
  max-height: 74px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px 0;
}

.xy-floating-attachments.visible {
  display: block;
}

.xy-floating-attachments .xy-upload-list {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.xy-floating-attachments .xy-upload-item {
  width: 58px;
  min-width: 58px;
  height: 58px;
}

.xy-floating-body {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr 46px;
  gap: 12px;
  align-items: start;
  padding: 14px 16px 8px;
}

.xy-floating-upload {
  position: relative;
  width: 54px;
  height: 72px;
  justify-self: center;
  border: 1px dashed rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(-14deg);
}

.xy-floating-upload::before,
.xy-floating-upload::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
  transform: translate(-50%, -50%);
}

.xy-floating-upload::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.xy-floating-input {
  width: 100%;
  min-height: 78px;
  max-height: 116px;
  overflow-y: auto;
  resize: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  outline: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.xy-floating-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.xy-floating-send {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
}

.xy-floating-optimize {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 9;
  display: inline-flex;
  width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.xy-floating-optimize-icon,
.xy-floating-optimize-icon::before,
.xy-floating-optimize-icon::after {
  position: absolute;
  content: "";
}

.xy-floating-optimize-icon {
  inset: 0;
}

.xy-floating-optimize-icon::before {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-floating-optimize-icon::after {
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -13px 12px 0 -2px currentColor;
  transform: rotate(45deg);
}

[data-optimize-button].is-optimizing {
  pointer-events: none;
  animation: xy-optimize-breathe 1.05s ease-in-out infinite;
}

[data-optimize-button].is-optimizing::after {
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(255, 155, 42, 0.25);
  border-top-color: rgba(255, 189, 92, 0.98);
  border-radius: 50%;
  content: "";
  animation: xy-optimize-spin 0.78s linear infinite;
}

.xy-floating-bottom {
  position: relative;
  margin: 0 70px 0 102px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.xy-generation-controls {
  position: relative;
  z-index: 8;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xy-gen-control {
  position: relative;
  z-index: 9;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  pointer-events: auto;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  white-space: nowrap;
}

.xy-gen-control strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xy-gen-cost {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 183, 73, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 183, 73, 0.16), rgba(255, 122, 26, 0.1));
  color: rgba(255, 232, 186, 0.95);
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.xy-gen-cost i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf6b, #ff8a1f);
  color: #221207;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}

.xy-chip-separator {
  display: inline-block;
  width: 1px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.xy-gen-control:hover,
.xy-gen-control.active {
  background: rgba(255, 255, 255, 0.20);
}

.xy-gen-video {
  display: none;
}

.xy-video-mode .xy-gen-count,
.xy-video-mode .xy-gen-ratio {
  display: none;
}

.xy-video-mode .xy-gen-video {
  display: inline-flex;
}

.xy-dialog-generation-controls {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 78px);
}

.xy-gen-popover {
  position: fixed;
  z-index: 10080;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #35332f;
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  padding: 12px;
}

.xy-gen-popover.is-video-popover {
  width: min(352px, calc(100vw - 32px));
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #1b1d21;
  padding: 14px;
}

.xy-gen-popover.is-floating-glass {
  background: linear-gradient(180deg, rgba(70, 67, 62, 0.78), rgba(38, 37, 35, 0.68));
  backdrop-filter: blur(24px) saturate(1.28);
}

.xy-gen-popover.is-video-popover.is-floating-glass {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(24, 26, 31, 0.86);
  backdrop-filter: blur(24px) saturate(1.22);
}

.xy-gen-popover.visible {
  display: block;
}

.xy-gen-popover h3 {
  margin: 8px 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.xy-gen-popover .xy-popover-label {
  margin: 4px 0 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.xy-gen-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  padding: 4px;
}

.xy-gen-tabs button,
.xy-gen-option,
.xy-ratio-option {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
}

.xy-gen-tabs button {
  min-height: 36px;
}

.xy-gen-tabs button.active,
.xy-gen-option.active,
.xy-ratio-option.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.xy-gen-section-title {
  margin: 18px 8px 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.xy-model-list,
.xy-count-list {
  display: grid;
  gap: 8px;
}

.xy-gen-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.xy-model-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xy-model-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 22px;
}

.xy-model-icon-kling {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
  padding: 0;
}

.xy-kling-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.xy-control-kling-holder {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  padding: 0;
}

.xy-kling-control-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.xy-model-text strong,
.xy-gen-option strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.xy-model-text small,
.xy-gen-option small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.xy-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
}

.xy-ratio-option {
  display: block;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  white-space: nowrap;
}

.xy-ratio-icon {
  position: relative;
  display: flex;
  width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1;
}

.xy-ratio-icon::before {
  content: "";
  display: block;
  width: var(--ratio-icon-w, 16px);
  height: var(--ratio-icon-h, 16px);
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

.xy-ratio-icon.auto::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
}

.xy-ratio-icon.auto {
  color: rgba(255, 255, 255, 0.9);
}

.xy-ratio-icon.auto::after {
  position: absolute;
  left: 50%;
  top: 50%;
  color: currentColor;
  content: "✦";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.xy-ratio-option.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.xy-ratio-option.active .xy-ratio-icon {
  color: #fff;
}

.xy-resolution-tabs,
.xy-quality-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
}

.xy-resolution-tabs {
  margin-top: 2px;
}

.xy-resolution-tabs button,
.xy-quality-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
}

.xy-resolution-tabs button.active,
.xy-quality-tabs button.active {
  background: #fff;
  color: #111;
}

.xy-video-popover-section + .xy-video-popover-section {
  margin-top: 18px;
  padding-top: 0;
}

.xy-video-popover-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 18px;
}

.xy-video-popover-title span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.xy-video-popover-title small {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffeaa8, #ffd15a);
  color: #6b4500;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
}

.xy-video-popover-title i {
  color: rgba(255, 255, 255, 0.42);
  font-style: normal;
  font-size: 12px;
}

.xy-video-popover-segment {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: #24272b;
}

.xy-video-popover-segment.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xy-video-popover-segment.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xy-video-popover-segment.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xy-video-popover-segment button {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 750;
}

.xy-video-popover-segment button:not(:last-child)::after {
  position: absolute;
  right: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.xy-video-popover-segment button.active {
  background: #3c3f44;
  color: #fff;
  font-weight: 900;
}

.xy-video-popover-segment button.active::after,
.xy-video-popover-segment button.active + button::after {
  display: none;
}

.xy-video-popover-segment em {
  position: absolute;
  right: 4px;
  top: 3px;
  border-radius: 3px;
  background: #6f6846;
  color: #f8eebd;
  padding: 0 3px;
  font-style: normal;
  font-size: 8px;
  line-height: 10px;
}

.xy-video-popover-segment .xy-ratio-icon {
  width: 18px;
  height: 16px;
  margin: 0;
}

.xy-video-popover-segment .xy-ratio-icon::before {
  border-width: 1.4px;
  border-radius: 3px;
}

.xy-video-popover-audio {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xy-video-popover-audio .xy-video-popover-title {
  margin-bottom: 0;
}

.xy-video-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  padding: 3px;
}

.xy-video-toggle.active {
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
}

.xy-video-toggle span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.xy-video-toggle.active span {
  transform: translateX(22px);
}

.xy-dialog-send {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.xy-dialog-send:active {
  transform: scale(0.94);
}

.xy-video-studio {
  position: relative;
  z-index: 12;
  display: none;
  width: min(1540px, calc(100vw - 64px));
  min-height: 720px;
  margin: 82px auto 180px;
  grid-template-columns: 452px minmax(0, 1fr) 82px;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.xy-video-studio.visible {
  display: grid;
  animation: xy-dialog-morph-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.xy-video-mode-switch {
  position: absolute;
  left: -72px;
  top: 0;
  display: flex;
  width: 54px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(9, 9, 9, 0.72);
  padding: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.xy-video-mode-switch button {
  display: flex;
  width: 38px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.xy-video-mode-switch button.active {
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
  color: #201006;
}

.xy-video-config,
.xy-video-feed,
.xy-video-history {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 7, 0.92);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.46);
}

.xy-video-config {
  position: sticky;
  top: 92px;
  height: calc(100vh - 118px);
  min-height: 690px;
  border-radius: 18px;
  padding: 18px;
}

.xy-video-model-select {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #141414;
  color: #fff;
  padding: 12px;
  text-align: left;
}

.xy-video-model-select img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
}

.xy-video-model-select span {
  flex: 1;
}

.xy-video-model-select strong,
.xy-video-model-select small {
  display: block;
}

.xy-video-model-select strong {
  font-size: 15px;
}

.xy-video-model-select small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.xy-video-frame-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.xy-video-frame {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #191919;
  color: rgba(255, 255, 255, 0.74);
}

.xy-video-frame.active {
  border-color: rgba(255, 142, 44, 0.85);
}

.xy-video-frame-preview,
.xy-video-frame-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xy-video-frame-preview {
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
}

.xy-video-frame-preview:not([style])::before {
  content: none;
}

.xy-video-frame strong {
  position: absolute;
  left: 10px;
  bottom: 9px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.42);
  padding: 5px 8px;
  font-size: 12px;
}

.xy-video-frame-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
}

.xy-video-frame-preview {
  padding: 20px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 13px;
}

.xy-video-prompt {
  width: 100%;
  min-height: 220px;
  margin-top: 14px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #060606;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.8;
  outline: 0;
  padding: 14px;
}

.xy-video-prompt::placeholder,
.xy-video-audio-fields input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.xy-video-audio-panel {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #101010;
  overflow: hidden;
}

.xy-video-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.xy-video-audio-head > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 850;
}

.xy-video-audio-head i {
  color: rgba(255, 255, 255, 0.52);
  font-style: normal;
  font-size: 12px;
}

.xy-video-audio-head small {
  border-radius: 4px;
  background: rgba(255, 180, 74, 0.16);
  color: #ffbf71;
  padding: 2px 5px;
}

[data-video-sound-toggle] {
  position: relative;
  width: 34px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

[data-video-sound-toggle]::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.18s ease;
}

[data-video-sound-toggle].active {
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
}

[data-video-sound-toggle].active::after {
  transform: translateX(14px);
}

.xy-video-audio-fields {
  display: none;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xy-video-audio-fields.open {
  display: grid;
}

.xy-video-audio-fields.disabled,
.xy-video-audio-summary.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.xy-video-audio-summary {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  padding: 0 12px;
  text-align: left;
}

.xy-video-audio-summary strong {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.xy-video-audio-summary b {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.16s ease;
}

.xy-video-audio-summary.open b {
  transform: rotate(180deg);
}

.xy-video-audio-fields label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 12px;
}

.xy-video-audio-fields em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.82);
  padding: 2px 6px;
  font-style: normal;
  font-size: 12px;
}

.xy-video-audio-fields input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  outline: 0;
  padding: 0;
}

.xy-video-audio-note {
  display: none;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  padding: 10px 12px;
  font-size: 12px;
}

.xy-video-audio-fields.open + .xy-video-audio-note {
  display: block;
}

.xy-video-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 104px);
  gap: 6px;
  align-items: center;
}

.xy-video-settings-shell {
  position: relative;
  grid-column: 1;
  min-width: 0;
}

.xy-video-setting-pill,
.xy-video-submit {
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
}

.xy-video-setting-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0 8px;
  white-space: nowrap;
}

.xy-video-submit {
  grid-column: 2;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.xy-video-setting-pill i {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.8px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  font-style: normal;
}

.xy-video-setting-pill i::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.xy-video-setting-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xy-video-settings-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 9;
  display: none;
  width: min(352px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 170px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(27, 29, 33, 0.98);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
  padding: 12px;
}

.xy-video-settings-panel.visible {
  display: block;
  animation: xy-popover-enter 0.16s ease;
}

.xy-video-settings-group + .xy-video-settings-group {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.xy-video-settings-group h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.xy-video-settings-group h4 small {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffeaa8, #ffd15a);
  color: #6b4500;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
}

.xy-video-settings-options {
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #24272b;
}

.xy-video-settings-options.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xy-video-settings-options.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xy-video-settings-options.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xy-video-settings-options button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 0;
  border-right: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 750;
}

.xy-video-settings-options button:not(:last-child)::after {
  position: absolute;
  right: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.xy-video-settings-options button.active {
  background: #3c3f44;
  color: #fff;
  font-weight: 900;
}

.xy-video-settings-options button.active::after,
.xy-video-settings-options button.active + button::after {
  display: none;
}

.xy-video-settings-options button small {
  position: absolute;
  right: 4px;
  top: 3px;
  border-radius: 3px;
  background: #6f6846;
  color: #f8eebd;
  padding: 0 3px;
  font-size: 8px;
  line-height: 10px;
}

.xy-video-settings-options button.active small {
  background: #6f6846;
  color: #f8eebd;
}

.xy-video-settings-options .xy-ratio-icon {
  width: 18px;
  height: 16px;
  margin: 0;
}

.xy-video-settings-options .xy-ratio-icon::before {
  border-width: 1.4px;
  border-radius: 3px;
}

.xy-video-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  background: linear-gradient(135deg, #ff6a13, #ffb636);
  color: #191006;
}

.xy-video-submit .xy-generate-spark {
  color: #ff4fff;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 79, 255, 0.55);
}

.xy-video-feed {
  min-height: 720px;
  border-radius: 18px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.xy-video-feed-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(18px);
  padding: 0 22px;
}

.xy-video-feed-header strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.xy-video-feed-header strong::after {
  width: 1px;
  height: 16px;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.xy-video-feed-header strong i {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.xy-video-feed-header strong i::before {
  position: absolute;
  left: 3px;
  top: -4px;
  width: 7px;
  height: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}

.xy-video-feed-header strong i::after {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.9);
  content: "";
}

.xy-video-feed-header span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.xy-video-feed-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
  padding: 22px 22px 60px;
}

.xy-video-card {
  scroll-margin-top: 80px;
}

.xy-video-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.xy-video-card-title img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.xy-video-card-title strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.xy-video-card-title p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.xy-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: min(62vh, 620px);
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 170, 84, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(48, 48, 50, 0.95), rgba(33, 31, 30, 0.95));
}

.xy-video-player.xy-video-ratio-9x16 {
  width: min(56vh, 58%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 720px);
}

.xy-video-player.xy-video-ratio-1x1 {
  width: min(72vh, 72%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  max-height: min(68vh, 680px);
}

.xy-video-player.xy-video-ratio-auto {
  aspect-ratio: 16 / 9;
}

.xy-video-card.is-loading .xy-video-player::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 46% 38%, rgba(255, 186, 104, 0.58), transparent 28%),
    linear-gradient(135deg, rgba(81, 45, 24, 0.74), rgba(239, 130, 42, 0.46), rgba(21, 21, 22, 0.92));
  filter: blur(18px);
  transform: scale(1.12);
  content: "";
  animation: xy-placeholder-breathe 1.35s ease-in-out infinite;
}

.xy-video-loading-text {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.xy-video-player video,
.xy-video-player img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #111;
}

.xy-video-controlbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 32px max-content 1fr 32px 32px;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.xy-video-controlbar::before {
  display: none;
}

.xy-video-icon-button {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.xy-video-play::before {
  position: absolute;
  left: 10px;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  content: "";
}

.xy-video-play.playing::before,
.xy-video-play.playing::after {
  position: absolute;
  top: 7px;
  width: 4px;
  height: 14px;
  border: 0;
  background: #fff;
  content: "";
}

.xy-video-play.playing::before {
  left: 9px;
}

.xy-video-play.playing::after {
  left: 16px;
}

.xy-video-time {
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.xy-video-progress {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.xy-video-progress::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
  content: "";
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.xy-video-progress span {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a22, #ffd36a);
  box-shadow: 0 0 12px rgba(255, 139, 35, 0.62);
}

.xy-video-fullscreen::before,
.xy-video-fullscreen::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #fff;
  content: "";
}

.xy-video-fullscreen::before {
  right: 7px;
  top: 7px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.xy-video-fullscreen::after {
  left: 7px;
  bottom: 7px;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.xy-video-more::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -7px 0 0 #fff, 7px 0 0 #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.xy-video-download-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 6;
  width: min(338px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(38, 39, 40, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.54);
}

.xy-video-download-row,
.xy-video-watermark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.xy-video-download-row div {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 18, 19, 0.58);
}

.xy-video-download-row button {
  min-width: 52px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
  text-align: center;
  text-decoration: none;
  line-height: 30px;
  cursor: pointer;
}

.xy-video-download-row button.active {
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
  color: #fff;
}

.xy-video-watermark-row {
  background: rgba(255, 255, 255, 0.06);
}

.xy-video-download-actions {
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 16, 17, 0.92);
  padding: 10px 12px 12px;
}

.xy-video-download-actions button {
  min-width: 62px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
  color: #17110a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.xy-video-watermark-row small {
  margin-left: 5px;
  border-radius: 4px;
  background: #6b9f39;
  color: #dfffaa;
  padding: 1px 4px;
  font-size: 10px;
}

.xy-video-watermark-row button {
  position: relative;
  width: 34px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.xy-video-watermark-row button::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.xy-video-watermark-row button.active {
  background: linear-gradient(135deg, #ff7a1a, #ffbd48);
}

.xy-video-watermark-row button.active::after {
  transform: translateX(14px);
}

.xy-video-watermark {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.82);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.xy-video-history {
  position: sticky;
  top: 92px;
  height: calc(100vh - 118px);
  min-height: 690px;
  overflow-y: auto;
  border-radius: 18px;
  padding: 8px;
  scrollbar-width: none;
}

.xy-video-history::-webkit-scrollbar {
  display: none;
}

.xy-video-history-note {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  width: 70px;
  height: 44px;
  place-items: center;
  row-gap: 3px;
  margin: 0 auto 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 142, 44, 0.58);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 29, 18, 0.96), rgba(21, 19, 18, 0.96));
  color: #ffd0a0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 204, 133, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 6px 0;
}

.xy-video-history-note::after {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 210px;
  transform: translateY(-50%) translateX(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(24, 24, 24, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.84);
  content: "视频仅保留24小时，请尽快保存下载";
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.xy-video-history-note:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.xy-video-history-note::after,
.xy-video-history-note:hover::after {
  display: none;
  content: none;
}

.xy-video-history-note strong {
  display: block;
  color: #fff4e4;
  font-size: 14px;
  line-height: 1;
}

.xy-video-history-note span {
  display: block;
  color: #ffb765;
  font-size: 11px;
  line-height: 1;
}

.xy-video-history-empty {
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  padding: 8px 6px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.xy-video-history-empty {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
}

.xy-video-history button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 112px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.xy-video-history button.active {
  border-color: #ff8a22;
}

.xy-video-history img,
.xy-video-history video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-previewable="true"] {
  cursor: zoom-in;
}

.xy-preview-open {
  overflow: hidden;
}

.xy-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.xy-preview-overlay.visible {
  display: flex;
}

.xy-preview-image {
  max-width: min(72vw, 920px);
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  transition: transform 0.18s ease;
  transform-origin: center;
}

.xy-preview-close {
  position: fixed;
  top: 40px;
  right: 40px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.xy-preview-close::before,
.xy-preview-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-preview-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-preview-actions {
  position: fixed;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.xy-preview-actions button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3a3a3a;
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.xy-preview-actions button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.xy-project-view {
  position: relative;
  min-height: 100vh;
  flex-direction: column;
  background: #0e0e0e;
  color: #fff;
  padding: 142px 72px 80px 242px;
}

.xy-project-inner {
  width: min(1640px, 100%);
}

.xy-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.xy-project-inner h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}

.xy-project-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(94px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.xy-project-tabs button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.xy-project-tabs button.active {
  background: linear-gradient(135deg, #ff7a1a, #ffb636);
  color: #1a0e04;
}

.xy-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  column-gap: 30px;
  row-gap: 54px;
  align-items: start;
}

.xy-hidden {
  display: none !important;
}

.xy-project-list {
  display: contents;
}

.xy-project-create,
.xy-project-card {
  min-height: 318px;
  border: 0;
  border-radius: 22px;
  color: #fff;
}

.xy-project-create {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #ff7a1a 0%, #ffb13b 52%, #ff6a3d 100%);
  cursor: pointer;
}

.xy-project-create span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
  font-weight: 300;
}

.xy-project-create strong {
  font-size: 16px;
}

.xy-project-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.xy-project-card:focus-visible .xy-project-thumb,
.xy-project-card:hover .xy-project-thumb {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.xy-project-thumb {
  position: relative;
  height: 204px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.xy-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-project-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.xy-project-video-card .xy-project-thumb::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  content: "";
}

.xy-project-video-card .xy-project-thumb::before {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translate(-38%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
  content: "";
}

.xy-project-video-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.92);
  color: #1a0e04;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.xy-project-card h2 {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.xy-project-card time {
  display: block;
  min-height: 24px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 1.55;
  white-space: normal;
}

.xy-project-meta {
  flex: 1;
  min-height: 96px;
  padding-top: 16px;
  padding-bottom: 10px;
}

.xy-project-delete {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  transition:
    background 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.xy-project-card:hover .xy-project-delete,
.xy-project-card:focus-visible .xy-project-delete {
  opacity: 1;
}

.xy-project-delete:hover {
  background: rgba(255, 70, 70, 0.86);
  transform: scale(1.06);
}

.xy-project-open-tip {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%) translateY(8px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  padding: 0 14px;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.xy-project-card:hover .xy-project-open-tip,
.xy-project-card:focus-visible .xy-project-open-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.xy-project-empty {
  grid-column: span 2;
  display: flex;
  min-height: 204px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.44);
}

.xy-login-open {
  overflow: hidden;
}

.xy-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.xy-login-overlay.visible {
  display: flex;
}

.xy-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(11px);
}

.xy-login-card {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  min-height: 588px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 36%),
    rgba(20, 20, 20, 0.94);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 128px 44px 32px;
  animation: xy-login-enter 0.24s ease-out both;
}

.xy-login-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 210px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 185, 56, 0.9), transparent 28%),
    radial-gradient(circle at 33% 22%, rgba(255, 76, 98, 0.92), transparent 36%),
    radial-gradient(circle at 62% 14%, rgba(204, 61, 255, 0.74), transparent 36%),
    radial-gradient(circle at 84% 14%, rgba(92, 70, 255, 0.38), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 82%);
  filter: blur(2px);
  opacity: 0.95;
  pointer-events: none;
}

.xy-login-glow::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.88) 82%);
}

.xy-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.xy-login-close::before,
.xy-login-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-login-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-login-icon {
  position: relative;
  z-index: 2;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: -68px auto 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.04));
  color: #d9ff4c;
  font-size: 24px;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.92);
}

.xy-login-card h2,
.xy-login-card p,
.xy-login-form {
  position: relative;
  z-index: 2;
}

.xy-login-card h2 {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

.xy-login-card p {
  margin: 18px 0 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.xy-login-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px;
}

.xy-login-tabs button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.xy-login-tabs button.active {
  background: rgba(255, 255, 255, 0.92);
  color: #151515;
}

.xy-login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.xy-register-only {
  display: none !important;
}

body.xy-auth-register .xy-register-only.visible {
  display: flex !important;
}

.xy-login-field {
  display: flex;
  height: 56px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.xy-login-field:focus-within {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
}

.xy-login-field span {
  flex: 0 0 auto;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 17px;
}

.xy-login-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  outline: 0;
}

.xy-login-field input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.xy-login-code-btn {
  flex: 0 0 auto;
  height: 22px;
  margin-right: 12px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  padding: 0 0 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.xy-login-code-btn:disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.48);
}

.xy-login-submit {
  height: 56px;
  margin-top: 15px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #dcdcdc);
  color: #151515;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    filter 0.16s ease;
}

.xy-login-submit:disabled {
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
  opacity: 0.58;
}

.xy-login-submit:not(:disabled):active {
  transform: scale(0.98);
}

#bg-login.xy-is-logged-in {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #111 !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.xy-user-avatar-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.xy-user-avatar-button img,
.xy-user-avatar-small img {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
  margin: auto;
}

.xy-user-popover {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 80;
  display: none;
  width: 300px;
  color: #fff;
}

.xy-user-popover.visible {
  display: block;
  animation: xy-user-popover-enter 0.18s ease-out both;
}

.xy-user-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(23, 23, 23, 0.96);
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px);
}

.xy-invite-bonus {
  display: none;
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.xy-invite-bonus.visible {
  display: inline-flex;
}

.xy-invite-bonus:hover {
  background: rgba(255, 255, 255, 0.13);
}

.xy-coin-pill {
  display: none;
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.xy-coin-pill.visible {
  display: inline-flex;
}

.xy-coin-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.xy-coin-pill:active {
  transform: scale(0.97);
}

.xy-coin-icon {
  color: #ff6add;
  font-size: 16px;
}

.xy-coin-count {
  color: #fff;
  font-size: 15px;
}

.xy-invite-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.xy-user-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.xy-user-avatar-small {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.xy-user-name {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

.xy-user-id {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.xy-wallet-card {
  border-radius: 12px;
  background: #070707;
  padding: 14px;
}

.xy-wallet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.xy-wallet-title button {
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #161616;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

.xy-wallet-balance {
  margin-top: 14px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.xy-wallet-balance span {
  color: #ff5bd8;
  font-size: 26px;
}

.xy-daily-reward {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  border: 0;
  border-radius: 10px;
  background: #080808;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.xy-daily-reward strong {
  color: #ff48df;
  font-size: 17px;
}

.xy-user-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xy-user-menu button {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  padding: 0 8px;
  text-align: left;
  font-size: 14px;
}

.xy-user-menu button:hover,
.xy-daily-reward:hover {
  background: rgba(255, 255, 255, 0.06);
}

.xy-user-menu-logout {
  margin-top: 4px;
  color: rgba(255, 118, 118, 0.92) !important;
}

.xy-user-menu-logout span {
  color: rgba(255, 118, 118, 0.95) !important;
}

.xy-user-menu button span {
  display: inline-flex;
  width: 18px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

@keyframes xy-user-popover-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes xy-login-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes xy-ai-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.96);
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.25);
  }
}

@keyframes xy-placeholder-breathe {
  0%, 100% {
    opacity: 0.78;
    filter: blur(14px);
  }
  50% {
    opacity: 1;
    filter: blur(10px);
  }
}

@keyframes xy-optimize-breathe {
  0%,
  100% {
    opacity: 0.62;
    filter: drop-shadow(0 0 0 rgba(255, 160, 48, 0));
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 160, 48, 0.55));
    transform: scale(1.04);
  }
}

@keyframes xy-optimize-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes xy-dialog-morph-in {
  0% {
    opacity: 0;
    transform: translateY(-44px) scaleX(1.58) scaleY(0.42);
    filter: blur(10px);
  }
  55% {
    opacity: 1;
    transform: translateY(-8px) scaleX(0.98) scaleY(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.xy-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.xy-result-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.xy-result-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-result-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.xy-download-link {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0e0e0e;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.xy-result-title {
  margin: 0 0 10px;
  font-size: 13px;
}

.xy-upload-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 4px 8px 6px;
}

.xy-upload-item {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.xy-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.xy-inspiration-grid {
  margin-top: 24px !important;
  gap: 14px !important;
  contain: layout;
  will-change: auto !important;
  align-items: flex-start;
}

.xy-inspiration-grid .masonry-column {
  gap: 14px !important;
  contain: layout;
  content-visibility: visible !important;
  will-change: auto !important;
}

.xy-inspire-card {
  width: 100%;
  margin-bottom: 14px !important;
  background: rgba(255, 255, 255, 0.06);
  contain: layout paint;
  content-visibility: visible !important;
  transform: translateZ(0);
  will-change: auto !important;
}

.xy-inspire-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.08);
  background-size: 220% 100%, 100% 100%;
  animation: xy-skeleton-shimmer 1.2s linear infinite;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.xy-inspire-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 0.28s ease;
}

.xy-inspire-card.is-loaded .xy-inspire-skeleton {
  opacity: 0;
  animation: none;
  visibility: hidden;
}

.xy-inspire-card.is-error::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 180, 96, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.62);
  content: "图片加载失败";
  font-size: 13px;
}

.xy-inspire-card.is-error .xy-inspire-img {
  opacity: 0.18;
}

.xy-card-keyword {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 10;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  padding: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: opacity 0.3s ease;
}

.xy-same-button {
  position: absolute;
  inset-inline: 9px;
  bottom: 9px;
  z-index: 10;
  display: inline-flex;
  width: auto;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #0e0e0e;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background 0.2s ease;
}

.xy-same-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.xy-same-button:disabled {
  cursor: wait;
  opacity: 1;
}

.xy-same-button.is-loading span {
  animation: xy-spin 0.9s linear infinite;
}

@keyframes xy-spin {
  to {
    transform: rotate(360deg);
  }
}

.xy-inspire-card:hover .xy-same-button {
  opacity: 1;
}

.xy-inspire-card::after {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0);
  content: "";
  pointer-events: none;
  transition: background 0.3s ease;
}

.xy-inspire-card:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.xy-art-1 { min-height: 318px; background: radial-gradient(circle at 50% 36%, rgba(255,244,220,0.96), transparent 20%), radial-gradient(circle at 44% 58%, rgba(255,255,255,0.75), transparent 30%), linear-gradient(150deg, #202750, #7f6dff 48%, #171717); }
.xy-art-2 { min-height: 238px; background: radial-gradient(circle at 54% 32%, rgba(154,236,255,0.9), transparent 20%), linear-gradient(135deg, #111827, #5468ff 48%, #111); }
.xy-art-3 { min-height: 360px; background: linear-gradient(155deg, #ffe0b5, #93b8ff 35%, #f9fbff 36%, #111 72%); }
.xy-art-4 { min-height: 280px; background: radial-gradient(circle at 50% 42%, rgba(255,245,218,0.95), transparent 30%), linear-gradient(145deg, #090909, #5f6f8d 65%, #111); }
.xy-art-5 { min-height: 340px; background: linear-gradient(135deg, #07111f, #7327ff 42%, #00d4ff 58%, #101010); }
.xy-art-6 { min-height: 220px; background: radial-gradient(circle at 52% 45%, rgba(255,255,255,0.92), transparent 28%), linear-gradient(160deg, #2e3150, #f3b9ff 55%, #1a1a1a); }
.xy-art-7 { min-height: 310px; background: radial-gradient(circle at 47% 42%, rgba(198,250,255,0.85), transparent 24%), linear-gradient(150deg, #dffaff, #3bbbd4 45%, #0e2832); }
.xy-art-8 { min-height: 260px; background: radial-gradient(circle at 50% 36%, rgba(255,216,110,0.92), transparent 22%), linear-gradient(145deg, #210505, #a3172d 55%, #f1c15a); }
.xy-art-9 { min-height: 380px; background: radial-gradient(circle at 72% 20%, rgba(119,186,255,0.8), transparent 16%), linear-gradient(160deg, #050914, #2b3a65 44%, #c9cbd2 45%, #171717); }
.xy-art-10 { min-height: 330px; background: radial-gradient(circle at 52% 32%, rgba(255,210,178,0.88), transparent 18%), linear-gradient(145deg, #211914, #8b5b47 56%, #111); }
.xy-art-11 { min-height: 250px; background: linear-gradient(150deg, #f7f1e8, #b8b4ac 55%, #1b1b1b); }
.xy-art-12 { min-height: 300px; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.94), transparent 26%), linear-gradient(155deg, #1a1f38, #86a8ff 50%, #111); }
.xy-art-13 { min-height: 350px; background: radial-gradient(circle at 40% 45%, rgba(108,255,191,0.8), transparent 12%), radial-gradient(circle at 68% 35%, rgba(190,150,255,0.78), transparent 18%), linear-gradient(150deg, #06160f, #1d5540 55%, #080808); }
.xy-art-14 { min-height: 270px; background: radial-gradient(circle at 50% 45%, rgba(255,212,105,0.75), transparent 20%), linear-gradient(135deg, #030303, #151b2f 48%, #8d6a24); }
.xy-art-15 { min-height: 322px; background: linear-gradient(180deg, #ffb56b 0%, #ff7a7a 35%, #1c2747 72%, #090909 100%); }

@keyframes xy-skeleton-shimmer {
  from {
    background-position: 140% 0, 0 0;
  }
  to {
    background-position: -80% 0, 0 0;
  }
}

.xy-recharge-modal-open {
  overflow: hidden;
}

.xy-recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.xy-recharge-modal.visible {
  display: flex;
}

.xy-recharge-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.xy-recharge-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 42px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 22px;
  background: #111;
  color: #fff;
  padding: 34px 58px 48px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  animation: xy-recharge-enter 0.22s ease-out both;
}

.xy-recharge-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 28px;
  padding-right: 48px;
}

.xy-recharge-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.xy-recharge-ticker {
  min-width: 300px;
  max-width: min(430px, calc(100% - 56px));
  overflow: hidden;
  text-align: right;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  white-space: nowrap;
}

.xy-recharge-buyer {
  display: inline-block;
}

.xy-recharge-buyer.is-swapping {
  animation: xy-recharge-ticker 0.45s ease both;
}

.xy-recharge-buyer strong {
  color: #ffbd43;
}

.xy-recharge-close {
  position: absolute;
  top: 34px;
  right: 42px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
}

.xy-recharge-close::before,
.xy-recharge-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-recharge-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-recharge-header {
  margin: 0 0 34px;
  text-align: center;
}

.xy-recharge-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.xy-recharge-header p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.xy-recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.xy-recharge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.xy-recharge-plan {
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #171717;
  padding: 22px;
}

.xy-recharge-plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
}

.xy-recharge-plan h3 span {
  color: #ff67d6;
  font-size: 22px;
}

.xy-recharge-plan p {
  margin: 16px 0 18px;
  color: #d9ffff;
  font-size: 13px;
  line-height: 1.45;
}

.xy-recharge-plan div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.xy-recharge-plan strong {
  font-size: 27px;
  font-weight: 900;
}

.xy-recharge-plan button {
  min-width: 88px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #303030;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.xy-recharge-plan button:hover {
  background: #3b3b3b;
}

.xy-recharge-side {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 150, 51, 0.20), transparent 34%),
    linear-gradient(180deg, #181818, #121212);
  padding: 24px;
}

.xy-recharge-side > div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.xy-recharge-side span,
.xy-recharge-side p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.xy-recharge-side strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.15;
}

.xy-recharge-side strong em {
  color: #ffbd43;
  font-style: normal;
  font-size: 32px;
  margin-right: 6px;
}

.xy-recharge-side ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.xy-recharge-side li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.xy-recharge-side li b {
  color: #fff;
  font-size: 14px;
}

.xy-recharge-side li span {
  text-align: right;
}

.xy-pay-choice-modal,
.xy-pay-result-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.xy-pay-choice-modal.visible,
.xy-pay-result-modal.visible {
  display: flex;
}

.xy-pay-choice-backdrop,
.xy-pay-result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.xy-pay-choice-dialog,
.xy-pay-result-dialog {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 160, 54, 0.18), transparent 34%),
    linear-gradient(180deg, #181818, #101010);
  color: #fff;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  animation: xy-recharge-enter 0.22s ease-out both;
}

.xy-pay-choice-close,
.xy-pay-result-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.xy-pay-choice-close::before,
.xy-pay-choice-close::after,
.xy-pay-result-close::before,
.xy-pay-result-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-pay-choice-close::after,
.xy-pay-result-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-pay-choice-header span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 183, 64, 0.14);
  color: #ffbd43;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.xy-pay-choice-header h2,
.xy-pay-result-dialog h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.xy-pay-choice-header p,
.xy-pay-result-dialog p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.xy-pay-choice-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 15px 16px;
}

.xy-pay-choice-summary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.xy-pay-choice-summary strong {
  color: #ffbd43;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.xy-pay-choice-summary em {
  font-style: normal;
}

.xy-pay-choice-options {
  display: grid;
  gap: 12px;
}

.xy-pay-choice-options button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.xy-pay-choice-options button:hover {
  border-color: rgba(255, 189, 67, 0.46);
  background: rgba(255, 189, 67, 0.12);
  transform: translateY(-1px);
}

.xy-pay-choice-options button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.xy-pay-icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.xy-pay-icon-wechat {
  background: linear-gradient(135deg, #20c56b, #0a9f55);
}

.xy-pay-icon-alipay {
  background: linear-gradient(135deg, #2e9cff, #1677ff);
}

.xy-pay-choice-options strong {
  font-size: 17px;
  font-weight: 900;
}

.xy-pay-choice-options small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.xy-pay-result-dialog {
  width: min(420px, calc(100vw - 32px));
  text-align: center;
}

.xy-pay-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffbd43, #ff7a1a);
  box-shadow: 0 18px 38px rgba(255, 132, 32, 0.28);
}

.xy-pay-result-icon::before {
  width: 26px;
  height: 14px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  content: "";
  transform: rotate(-45deg) translate(2px, -2px);
}

.xy-pay-result-modal.is-failed .xy-pay-result-icon {
  background: linear-gradient(135deg, #ff6b6b, #ef4444);
}

.xy-pay-result-modal.is-failed .xy-pay-result-icon::before {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 #fff;
  transform: rotate(45deg);
}

.xy-pay-result-modal.is-failed .xy-pay-result-icon::after {
  position: absolute;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: rotate(-45deg);
}

.xy-pay-result-ok {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffbd43, #ff7a1a);
  color: #191919;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

@keyframes xy-recharge-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes xy-recharge-ticker {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .xy-side-dock {
    left: 10px;
  }

  .xy-dock-button {
    width: 42px;
    height: 42px;
  }

  .xy-login-card {
    min-height: auto;
    padding: 112px 24px 26px;
  }

  .xy-login-card p {
    margin-bottom: 42px;
    font-size: 15px;
  }

  .xy-login-card h2 {
    font-size: 22px;
  }

  .xy-inspiration-grid {
    gap: 10px !important;
  }

  .xy-inspiration-grid .masonry-column {
    gap: 10px !important;
  }

  .xy-inspire-card {
    min-height: 0;
    margin-bottom: 10px !important;
  }

  .xy-card-keyword {
    left: 8px;
    top: 8px;
    border-radius: 8px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 16px;
  }

  .xy-same-button {
    display: none;
  }

  .xy-floating-composer {
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: auto;
    min-height: 0;
    padding-bottom: 12px;
    transform: translateY(22px) scale(0.98);
  }

  .xy-floating-composer.visible {
    transform: translateY(0) scale(1);
  }

  .xy-floating-body {
    grid-template-columns: 54px 1fr 42px;
    gap: 10px;
    padding: 12px 12px 8px;
  }

  .xy-floating-upload {
    width: 42px;
    height: 56px;
  }

  .xy-floating-input {
    min-height: 64px;
    max-height: 96px;
    font-size: 14px;
    line-height: 1.5;
  }

  .xy-floating-optimize {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 34px;
  }

  .xy-floating-send {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .xy-floating-bottom {
    margin: 0 58px 0 76px;
    gap: 6px;
    min-height: 34px;
  }

  .xy-floating-bottom .xy-gen-control {
    min-height: 32px;
    border-radius: 10px;
    padding: 0 9px;
    font-size: 12px;
  }

  .xy-gen-cost {
    min-height: 32px;
    border-radius: 10px;
    padding: 0 9px;
    font-size: 12px;
  }

  .xy-gen-cost i {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .xy-project-view {
    padding: 110px 18px 80px 76px;
  }

  .xy-project-inner h1 {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .xy-project-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
    column-gap: 16px;
  }

  .xy-project-create,
  .xy-project-card {
    min-height: 266px;
  }

  .xy-project-thumb {
    height: 156px;
    border-radius: 16px;
  }

  .xy-project-card h2 {
    min-height: 46px;
    font-size: 16px;
  }

  .xy-project-card time {
    min-height: 20px;
    font-size: 12px;
  }

  .xy-project-meta {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .xy-project-empty {
    grid-column: span 1;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .xy-inspiration-grid {
    gap: 12px !important;
  }

  .xy-inspiration-grid .masonry-column {
    gap: 12px !important;
  }

  .xy-project-view {
    padding-left: 110px;
  }

  .xy-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .xy-video-studio {
    width: min(100%, calc(100vw - 24px));
    padding-top: 58px;
  }

  .xy-video-mode-switch {
    left: 0;
    top: 0;
    width: auto;
    flex-direction: row;
  }

  .xy-video-mode-switch button {
    width: 64px;
    height: 38px;
    writing-mode: horizontal-tb;
    letter-spacing: 0;
  }

  .xy-coin-pill {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .xy-recharge-modal {
    padding: 14px;
  }

  .xy-recharge-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 28px);
    padding: 28px 16px 32px;
  }

  .xy-recharge-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-right: 44px;
  }

  .xy-recharge-ticker {
    min-width: 0;
    width: calc(100% - 44px);
    max-width: calc(100% - 44px);
    text-align: left;
  }

  .xy-recharge-close {
    top: 22px;
    right: 16px;
    width: 34px;
    height: 34px;
  }

  .xy-recharge-header {
    margin: 22px 0 28px;
  }

  .xy-recharge-header h2 {
    font-size: 28px;
  }

  .xy-recharge-header p {
    font-size: 15px;
  }

  .xy-recharge-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .xy-recharge-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .xy-recharge-plan {
    min-height: 160px;
    padding: 20px;
  }

  .xy-recharge-side {
    padding: 18px;
  }
}

.xy-invite-open {
  overflow: hidden;
}

.xy-record-modal-open {
  overflow: hidden;
}

.xy-record-modal {
  position: fixed;
  inset: 0;
  z-index: 10035;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.xy-record-modal.visible {
  display: flex;
}

.xy-record-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.xy-record-dialog {
  position: relative;
  display: grid;
  width: min(1080px, calc(100vw - 44px));
  height: min(884px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 420px);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.12), transparent 30%), #101010;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
  padding: 18px;
  color: #fff;
  animation: xy-invite-modal-enter 0.2s ease-out both;
}

.xy-record-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.xy-record-close::before,
.xy-record-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.86);
  content: "";
}

.xy-record-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-record-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-record-preview {
  position: relative;
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.xy-record-preview > .xy-record-image {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 98px);
  min-height: 0;
  border-radius: 14px;
  object-fit: contain;
}

.xy-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.xy-confirm-modal.visible {
  display: flex;
}

.xy-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.xy-confirm-dialog {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 138, 34, 0.20), transparent 32%),
    linear-gradient(180deg, rgba(39, 39, 39, 0.98), rgba(20, 20, 20, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 30px;
  animation: xy-confirm-enter 0.18s ease-out both;
}

.xy-confirm-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.xy-confirm-close::before,
.xy-confirm-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-confirm-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-confirm-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8a22, #ff4f2e);
  box-shadow: 0 16px 34px rgba(255, 95, 38, 0.24);
  font-size: 24px;
  font-weight: 900;
}

.xy-confirm-title {
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.xy-confirm-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.xy-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.xy-confirm-actions button {
  min-width: 92px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
}

.xy-confirm-cancel {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.xy-confirm-ok {
  background: linear-gradient(135deg, #ff9d2f, #ff5b34);
  color: #fff;
}

@keyframes xy-confirm-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.xy-record-download-main {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.xy-record-gallery {
  display: flex;
  width: calc(100% - 28px);
  flex: 0 0 auto;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
}

.xy-record-gallery figure {
  position: relative;
  flex: 0 0 92px;
  height: 76px;
  margin: 0;
}

.xy-record-gallery button {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.xy-record-gallery figure.active button {
  border-color: #ff8a22;
}

.xy-record-gallery button img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.xy-record-gallery button span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
}

.xy-record-gallery figure a {
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  text-decoration: none;
}

.xy-record-chat {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.xy-record-chat header {
  padding: 22px 20px 14px;
}

.xy-record-chat h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.xy-record-chat time {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.xy-record-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.xy-record-message {
  max-width: 94%;
  border-radius: 16px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.xy-record-message strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.xy-record-message p {
  margin: 0;
}

.xy-record-message-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.34), rgba(255, 177, 59, 0.18));
}

.xy-record-message-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
}

.xy-record-generating {
  min-width: min(280px, 100%);
}

.xy-record-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff8a22;
  box-shadow: 0 0 0 0 rgba(255, 138, 34, 0.65);
  animation: xy-record-dot-pulse 1.05s ease-in-out infinite;
}

.xy-record-generating-card {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  margin: 12px 0 6px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 204, 151, 0.5), transparent 30%),
    linear-gradient(135deg, #8a3216, #ff7a18 48%, #3b1d12);
  box-shadow: inset 0 0 60px rgba(255, 190, 128, 0.18), 0 16px 40px rgba(0, 0, 0, 0.24);
  animation: xy-record-orange-pulse 1.25s ease-in-out infinite;
}

.xy-record-generating small {
  color: rgba(255, 196, 130, 0.9);
  font-weight: 800;
}

.xy-record-result-image {
  display: block;
  width: min(240px, 100%);
  margin-top: 12px;
  border-radius: 14px;
}

.xy-record-message-download {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 138, 34, 0.18);
  color: #ffc28a;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
}

@keyframes xy-record-orange-pulse {
  0%,
  100% {
    opacity: 0.74;
    filter: saturate(0.95);
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    filter: saturate(1.22);
    transform: scale(1);
  }
}

@keyframes xy-record-dot-pulse {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(255, 138, 34, 0.65);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(255, 138, 34, 0);
  }
}

.xy-record-composer {
  position: relative;
  flex: 0 0 auto;
  margin: 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.32);
}

.xy-record-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  outline: 0;
  padding: 16px 60px 18px 16px;
}

.xy-record-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.xy-record-send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.xy-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.xy-invite-modal.visible {
  display: flex;
}

.xy-invite-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(12px);
}

.xy-invite-dialog {
  position: relative;
  width: min(800px, calc(100vw - 32px));
  min-height: min(730px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 88%, rgba(255, 255, 255, 0.05), transparent 13%),
    linear-gradient(180deg, #222, #1f1f1f);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  color: #fff;
  padding: 58px 32px 34px;
  animation: xy-invite-modal-enter 0.22s ease-out both;
}

.xy-invite-close {
  position: absolute;
  top: 58px;
  right: 34px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.xy-invite-close::before,
.xy-invite-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.xy-invite-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xy-invite-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.xy-invite-header h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.xy-invite-header button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  padding: 0;
  font-size: 15px;
}

.xy-invite-summary {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.xy-invite-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xy-invite-code-row span,
.xy-invite-summary p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
}

.xy-invite-code-row strong {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 900;
}

.xy-copy-invite {
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
}

.xy-copy-invite:hover {
  background: rgba(255, 255, 255, 0.18);
}

.xy-invite-summary p {
  margin: 18px 0;
}

.xy-invite-summary p strong {
  color: #fff;
}

.xy-invite-tip {
  border-radius: 10px;
  background: rgba(113, 74, 38, 0.45);
  color: rgba(255, 255, 255, 0.86);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
}

.xy-invite-tip strong {
  color: #ffdd45;
}

.xy-invite-table {
  margin-top: 16px;
}

.xy-invite-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.3fr;
  align-items: center;
  height: 68px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.xy-invite-empty {
  display: flex;
  height: 250px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.xy-invite-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.3fr;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  padding: 0 16px;
  font-size: 14px;
}

@keyframes xy-invite-modal-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .xy-record-modal {
    padding: 12px;
  }

  .xy-record-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding: 12px;
  }

  .xy-record-preview {
    min-height: 240px;
    height: auto;
  }

  .xy-record-preview > .xy-record-image {
    max-height: 46vh;
  }

  .xy-record-chat {
    min-height: 360px;
    height: min(520px, 58vh);
  }

  .xy-record-close {
    right: 14px;
    top: 14px;
  }

  .xy-invite-modal {
    padding: 14px;
  }

  .xy-invite-dialog {
    min-height: min(620px, calc(100vh - 28px));
    padding: 38px 16px 24px;
  }

  .xy-invite-close {
    top: 34px;
    right: 18px;
  }

  .xy-invite-header h2 {
    font-size: 22px;
  }

  .xy-invite-code-row {
    flex-wrap: wrap;
  }

  .xy-copy-invite {
    width: 100%;
    margin-left: 0;
  }

  .xy-invite-table-head {
    grid-template-columns: 0.8fr 0.7fr 1.2fr 1fr;
    padding: 0 10px;
    font-size: 13px;
  }
}

.local-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 11000;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, -16px);
  border-radius: 16px;
  background: rgba(33, 33, 33, 0.96);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.local-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
