﻿:root {
  --bg: #17191c;
  --ink: #eceef0;
  --muted: #9a9ea3;
  --line: #3a3d42;
  --panel: #24272b;
  --panel-strong: #2b2f34;
  --panel-soft: #1d2024;
  --sidebar: #1b1d21;
  --accent: #787f88;
  --accent-2: #b56d63;
  --gold: #b8a07a;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.45 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
  transition:
    color 360ms ease,
    background 420ms ease;
}

img,
video {
  image-rendering: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app,
.stage {
  width: 100vw;
  height: 100vh;
}

.stage {
  position: relative;
  overflow: hidden;
  --canvas-sidebar-offset: 0px;
}

.stage:not(.assetSidebarCollapsed) {
  --canvas-sidebar-offset: var(--sidebar-width);
}

.assetSidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 8;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid rgba(214, 224, 218, 0.12);
  background: var(--sidebar);
  box-shadow: 18px 0 36px rgba(0, 0, 0, 0.26);
  transition:
    border-color 420ms ease,
    background 420ms ease,
    box-shadow 420ms ease,
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform, opacity;
}

.stage.assetSidebarCollapsed .assetSidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-1 * var(--sidebar-width) - 18px));
}

.assetSidebarToggle {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 88px;
  padding: 0;
  border: 1px solid rgba(214, 224, 218, 0.16);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  color: #f2f4f5;
  background: linear-gradient(180deg, rgba(28, 31, 36, 0.9), rgba(18, 20, 24, 0.92));
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transform: translateY(-50%);
  transition:
    left 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-radius 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(14px);
}

.assetSidebarToggle::before {
  margin: 0;
  color: var(--gold);
  content: "›";
  font-size: 22px;
  line-height: 1;
}

.assetSidebarToggle:hover {
  border-color: rgba(214, 224, 218, 0.32);
  background: linear-gradient(180deg, rgba(41, 45, 52, 0.96), rgba(24, 27, 31, 0.98));
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%) translateX(2px);
}

.stage:not(.assetSidebarCollapsed) .assetSidebarToggle {
  left: var(--sidebar-width);
  border-right: 0;
  border-left: 1px solid rgba(214, 224, 218, 0.16);
  border-radius: 14px 0 0 14px;
}

.stage:not(.assetSidebarCollapsed) .assetSidebarToggle::before {
  content: "‹";
}

.stage:not(.assetSidebarCollapsed) .assetSidebarToggle:hover {
  transform: translateY(-50%) translateX(-2px);
}

.assetToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 10px;
  color: var(--muted);
  font-size: 12px;
}

.assetTabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 132px;
  overflow: hidden;
  border: 1px solid rgba(214, 224, 218, 0.12);
  border-radius: 8px;
  background: rgba(10, 12, 14, 0.28);
}

.assetTab {
  height: 30px;
  padding: 0 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.assetTab.active {
  color: #f4f6f8;
  background: rgba(214, 224, 218, 0.12);
  box-shadow: inset 0 0 0 1px rgba(214, 224, 218, 0.08);
}

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

.assetTools button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(214, 224, 218, 0.12);
  border-radius: 6px;
  color: var(--ink);
  background: #202328;
  font-size: 12px;
}

.assetTools .canvasSaveBtn {
  border-color: rgba(212, 176, 104, 0.36);
  color: #fff2c9;
  background: linear-gradient(180deg, rgba(212, 176, 104, 0.22), rgba(130, 101, 53, 0.18));
}

.assetTools .canvasSaveBtn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.workflowSavePanel {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid rgba(212, 176, 104, 0.2);
  border-radius: 10px;
  background: rgba(24, 27, 31, 0.72);
}

.workflowSavePanel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflowSavePanel input {
  height: 32px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(214, 224, 218, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(11, 13, 15, 0.58);
  outline: none;
}

.workflowSavePanel input:focus {
  border-color: rgba(212, 176, 104, 0.58);
  box-shadow: 0 0 0 3px rgba(212, 176, 104, 0.12);
}

.workflowSaveActions {
  display: flex;
  gap: 8px;
}

.workflowSaveActions button {
  flex: 1;
  height: 30px;
  border: 1px solid rgba(214, 224, 218, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

#workflowSaveConfirmBtn {
  color: #fff2c9;
  background: linear-gradient(180deg, rgba(212, 176, 104, 0.24), rgba(130, 101, 53, 0.2));
}

.assetHistoryList {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 137, 147, 0.68) rgba(255, 255, 255, 0.04);
}

.assetHistoryList::-webkit-scrollbar {
  width: 10px;
}

.assetHistoryList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.assetHistoryList::-webkit-scrollbar-thumb {
  border: 2px solid rgba(0, 0, 0, 0);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(136, 145, 156, 0.9), rgba(98, 107, 118, 0.9));
  background-clip: padding-box;
}

.assetHistoryList::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(165, 176, 188, 0.95), rgba(118, 128, 140, 0.95));
  background-clip: padding-box;
}

.assetGroup {
  display: grid;
  gap: 8px;
}

.assetGroupTitle {
  color: #c5c9ce;
  font-size: 12px;
  font-weight: 800;
}

.assetGroupItems {
  display: grid;
  gap: 8px;
}

.assetItem {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(214, 224, 218, 0.08);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(26, 29, 33, 0.42);
  text-align: left;
}

.assetItemMain {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.assetItem:hover,
.assetItem.active {
  border-color: rgba(214, 224, 218, 0.12);
  background: #1a1d21;
}

.assetItemMain[draggable="true"] {
  cursor: grab;
}

.assetItemMain[draggable="true"]:active {
  cursor: grabbing;
}

.assetPreview {
  position: relative;
  display: block;
  width: 48px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(214, 224, 218, 0.1);
  border-radius: 6px;
  background: #171a1d;
  aspect-ratio: 1 / 1;
}

.assetPreview img,
.assetPreview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assetPreviewVideo,
.assetPreviewMissing {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(212, 176, 104, 0.24), transparent 44%),
    linear-gradient(145deg, rgba(38, 42, 47, 0.96), rgba(18, 20, 23, 0.96));
}

.assetPreviewVideo::before,
.assetPreviewMissing::before {
  color: rgba(238, 242, 246, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.assetPreviewVideo::before {
  content: "VIDEO";
}

.assetPreviewMissing::before {
  content: "预览";
}

.assetPreviewWorkflow {
  display: grid;
  place-items: center;
  color: #f4e5bd;
  background:
    radial-gradient(circle at 32% 28%, rgba(212, 176, 104, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(37, 42, 46, 0.96), rgba(22, 25, 28, 0.96));
}

.assetPreviewWorkflow span {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.workflowAssetItem {
  border-color: rgba(212, 176, 104, 0.18);
  background: rgba(42, 35, 25, 0.34);
}

.assetWorkflowActions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.assetPlay {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #f5f8f6;
  background: rgba(0, 0, 0, 0.58);
  font-size: 9px;
}

.assetPlay::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f5f8f6;
  content: "";
}

.assetItemMeta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assetEmpty {
  padding: 24px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.assetItemTitle,
.assetItemSub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetItemTitle {
  color: #eef2f6;
  font-size: 13px;
  font-weight: 800;
}

.assetItemSub {
  color: var(--muted);
  font-size: 12px;
}

.assetWorkflowBtn {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(23, 111, 102, 0.28);
  border-radius: 6px;
  color: #dcece8;
  background: rgba(23, 111, 102, 0.12);
  backdrop-filter: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.assetWorkflowBtn:hover {
  background: rgba(23, 111, 102, 0.18);
}

.assetWorkflowRenameBtn {
  border-color: rgba(212, 176, 104, 0.26);
  color: #f3e4c2;
  background: rgba(212, 176, 104, 0.11);
}

.assetWorkflowRenameBtn:hover {
  background: rgba(212, 176, 104, 0.18);
}

.assetWorkflowDeleteBtn,
.assetOutputDeleteBtn {
  border-color: rgba(240, 107, 107, 0.28);
  color: #ffd2d2;
  background: rgba(240, 107, 107, 0.11);
}

.assetWorkflowDeleteBtn:hover,
.assetOutputDeleteBtn:hover {
  background: rgba(240, 107, 107, 0.2);
}

.assetWorkflowBtnDisabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.assetToolbar > span {
  font-size: 12px;
  font-weight: 700;
}

.assetItemType {
  display: none;
}

.assetLoadMoreBtn {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(212, 176, 104, 0.24);
  border-radius: 10px;
  color: #f2dfb5;
  background: rgba(212, 176, 104, 0.1);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.assetLoadMoreBtn:hover {
  background: rgba(212, 176, 104, 0.16);
}

.assetHistoryCount {
  padding: 8px 4px 2px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.topbar {
  position: absolute;
  top: 16px;
  right: 18px;
  left: calc(var(--sidebar-width) + 18px);
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.brand,
.topActions,
.footerStatus,
.accountPanel,
.accountToggleBtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(31, 37, 42, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #101417;
  background: linear-gradient(135deg, var(--accent), #174e4a);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.topActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 980px);
  padding: 8px;
}

.topActions button,
.topActions span {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #33403b;
  border-radius: 6px;
  color: var(--ink);
  background: #1f2328;
}

.topActions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.footerStatus {
  display: none !important;
}

.accountWidget {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 18;
  pointer-events: auto;
}

.accountToggleBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  max-width: min(150px, calc(100vw - 48px));
  padding: 0 9px;
  border-radius: 999px;
  color: #f5f8fa;
  background: rgba(25, 27, 31, 0.95);
}

#accountName {
  display: inline-block;
  max-width: 54px;
  flex: 0 1 54px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountExpiry {
  flex: 0 0 auto;
  white-space: nowrap;
}

.accountToggleChevron {
  color: #8e959d;
  font-size: 12px;
}

.accountAvatar {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff7b32, #f95f16);
  font-size: 13px;
  font-weight: 800;
  text-transform: lowercase;
}

.accountAvatarLarge {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  font-size: 24px;
}

.accountPanel {
  position: absolute;
  top: 42px;
  right: 0;
  display: grid;
  gap: 14px;
  width: min(330px, calc(100vw - 36px));
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: rgba(24, 24, 27, 0.98);
}

.accountPanel::before {
  position: absolute;
  top: -7px;
  right: 30px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 27, 0.98);
  transform: rotate(45deg);
  content: "";
}

.accountPanelProfile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.accountName {
  color: #f4f6f8;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accountEmail {
  margin-top: 4px;
  color: #8d949c;
  font-size: 12px;
}

.accountMetaCards {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 10px auto 0;
}

.accountMetaCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.accountMetaLabel {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  color: rgba(235, 240, 245, 0.68);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.accountCrown {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  transform: translateY(-1px);
}

.accountCrown::before {
  content: "\265B";
  font-size: 14px;
  line-height: 1;
}

.accountCrown-active::before {
  color: #ffd35a;
  text-shadow:
    0 0 8px rgba(255, 186, 51, 0.72),
    0 0 18px rgba(255, 128, 42, 0.32);
}

.accountCrown-inactive::before {
  color: rgba(165, 172, 181, 0.68);
  text-shadow: none;
}

.accountMetaValue {
  min-width: 0;
  flex: 1 1 auto;
  color: #f7f9fb;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accountMetaCard-balance .accountMetaValue,
.accountMetaCard-unlimited .accountMetaValue {
  color: #ffd56b;
  text-shadow: 0 0 16px rgba(255, 190, 68, 0.34);
}

.accountMetaCard-unlimited {
  border-color: rgba(255, 213, 107, 0.24);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 213, 107, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 213, 107, 0.12), rgba(255, 255, 255, 0.035));
}

.accountMetaCard-inactive .accountMetaValue {
  color: rgba(210, 218, 226, 0.72);
  font-weight: 850;
}

.accountMetaLine {
  line-height: 1.55;
}

.accountMetaLineUnlimited {
  color: #7ff5df;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(127, 245, 223, 0.35);
}

.footerStatusLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#viewerStatus {
  color: #f1f6f3;
}

.accountBalanceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accountRules,
.accountPaymentSection,
.accountLogs {
  display: grid;
  gap: 6px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accountSectionTitle {
  color: #f3f6f8;
  font-size: 12px;
  font-weight: 700;
}

.accountMutedText {
  color: #8d949c;
  font-size: 12px;
  line-height: 1.45;
}

.accountBalanceMeta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.accountBalanceIcon {
  color: #ffb20f;
  font-size: 14px;
}

.logoutBtn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.accountActionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #ffffff;
  color: #111317;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.accountActionBtn-accent {
  color: #201407;
  background: linear-gradient(135deg, #ffd46a, #ff9f43);
  box-shadow: 0 10px 22px rgba(255, 159, 67, 0.22);
}

.accountActionBtn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 159, 67, 0.28);
}

.accountPanelFooter {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

.logoutBtn {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.billingStatus {
  color: #f5f7f8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.billingLogs {
  display: grid;
  gap: 6px;
  max-height: 148px;
  overflow: auto;
}

.paymentGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.paymentCard {
  display: grid;
  gap: 8px;
}

.paymentCardTitle {
  color: #eef2f5;
  font-size: 12px;
  font-weight: 700;
}

.paymentQrFrame {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.paymentQrFrame img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.paymentPlaceholder {
  color: #8d949c;
  font-size: 12px;
}

.billingLogItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.billingLogMain {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.billingLogTitle {
  color: #eef2f5;
  font-size: 12px;
  font-weight: 700;
}

.billingLogSub {
  color: #8d949c;
  font-size: 11px;
}

.billingLogCost {
  color: #f5f7f8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.billingDetailsModal[hidden] {
  display: none !important;
}

.billingDetailsModal {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.billingDetailsBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 196, 87, 0.24), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(71, 163, 255, 0.22), transparent 30%),
    rgba(8, 10, 16, 0.68);
  backdrop-filter: blur(14px);
}

.billingDetailsCard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  color: #17202a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92)),
    radial-gradient(circle at 16% 0%, rgba(255, 210, 112, 0.2), transparent 34%);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.36);
  animation: rechargePop 240ms cubic-bezier(.2, .9, .22, 1.08);
}

.billingDetailsCloseBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #5c6670;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(35, 48, 58, 0.14);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.billingDetailsHeader {
  padding: 28px 34px 14px;
}

.billingDetailsKicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6f4300;
  background: rgba(255, 198, 90, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.billingDetailsHeader h2 {
  margin: 0;
  color: #151a21;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.05em;
}

.billingDetailsHeader p {
  max-width: 660px;
  margin: 8px 0 0;
  color: #5f6b76;
  font-size: 14px;
  line-height: 1.7;
}

.billingDetailsSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 34px 16px;
}

.billingDetailsSummaryItem {
  min-width: 132px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f3f6fb;
}

.billingDetailsSummaryItem span {
  display: block;
  color: #75808c;
  font-size: 12px;
  font-weight: 800;
}

.billingDetailsSummaryItem strong {
  display: block;
  margin-top: 4px;
  color: #151a21;
  font-size: 20px;
  line-height: 1.1;
}

.billingDetailsStatus {
  padding: 0 34px 12px;
  color: #697582;
  font-size: 14px;
  font-weight: 700;
}

.billingDetailsStatus-error {
  color: #c0392b;
}

.billingDetailsList {
  display: grid;
  gap: 12px;
  padding: 0 34px 30px;
  overflow: auto;
}

.billingDetailsItem {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(28, 39, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(28, 39, 52, 0.06);
}

.billingDetailsItemHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.billingDetailsAction {
  color: #17202a;
  font-size: 16px;
  font-weight: 900;
}

.billingDetailsTime {
  margin-top: 3px;
  color: #7d8791;
  font-size: 12px;
}

.billingDetailsCost {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #7a3300;
  background: #ffe3b0;
  font-size: 13px;
  font-weight: 900;
}

.billingDetailsParams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billingDetailsParam {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 10px;
  color: #42505c;
  background: #eef3f8;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.contactModal[hidden] {
  display: none !important;
}

.contactModal {
  position: fixed;
  inset: 0;
  z-index: 3400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contactBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(88, 194, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 76%, rgba(255, 205, 103, 0.18), transparent 30%),
    rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(14px);
}

.contactCard {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(420px, calc(100vw - 34px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  color: #17202a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(104, 202, 255, 0.18), transparent 35%);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.38);
  animation: rechargePop 240ms cubic-bezier(.2, .9, .22, 1.08);
}

.contactCloseBtn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #5c6670;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(35, 48, 58, 0.14);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contactHeader {
  display: grid;
  gap: 8px;
  padding-right: 28px;
}

.contactHeader span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0b5b7b;
  background: rgba(100, 199, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contactHeader h2 {
  margin: 0;
  color: #111821;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.contactHeader p {
  margin: 0;
  color: #60707d;
  font-size: 14px;
  line-height: 1.7;
}

.contactQrFrame {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow:
    inset 0 0 0 1px rgba(19, 31, 45, 0.08),
    0 18px 36px rgba(20, 32, 46, 0.1);
}

.contactQrFrame img {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  border-radius: 16px;
}

.authOverlay {
  --auth-accent: #6ea8ff;
  --auth-accent-2: #b8d7ff;
  --auth-accent-rgb: 110, 168, 255;
  --auth-accent-soft-rgb: 184, 215, 255;
  --auth-warm: #ffc280;
  --auth-warm-rgb: 255, 194, 128;
  --auth-focus-rgb: 110, 168, 255;
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(var(--auth-accent-rgb), 0.18), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(var(--auth-warm-rgb), 0.08), transparent 18%),
    linear-gradient(180deg, #101218, #0b0d12);
  overflow: hidden;
}

body.authActive .canvasLocateBtn,
body.authActive .shortcutHelpBtn,
body.authActive .usageNotes,
body.authActive .contactFloatingBtn,
body.authActive .creditRateHint,
body.authActive .creditRatePanel,
body.authActive .shortcutHelpPanel {
  display: none !important;
}

.authBackdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.authFluidCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  mix-blend-mode: normal;
  filter: saturate(0.9) contrast(0.94);
  transform: translateZ(0);
}

.authBackdrop::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(7, 9, 14, 0.8) 0%, rgba(7, 9, 14, 0.68) 28%, rgba(7, 9, 14, 0.18) 52%, transparent 74%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.06), transparent 24%, transparent 76%, rgba(5, 8, 12, 0.06));
  content: "";
}

.authGlow {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.26;
  animation: authGlowFloat 12s ease-in-out infinite;
}

.authGlowTop {
  top: -120px;
  right: 12%;
  width: 460px;
  height: 260px;
  background: radial-gradient(circle, rgba(var(--auth-accent-rgb), 0.34), rgba(var(--auth-accent-rgb), 0.02) 68%, transparent 80%);
}

.authGlowLeft {
  top: 38%;
  left: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(var(--auth-warm-rgb), 0.14), rgba(var(--auth-warm-rgb), 0.01) 70%, transparent 78%);
  animation-delay: -2.4s;
}

.authGlowRight {
  right: -120px;
  bottom: 14%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(var(--auth-accent-rgb), 0.14), rgba(var(--auth-accent-rgb), 0.02) 70%, transparent 78%);
  animation-delay: -4.2s;
}

.authOrbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.06);
  border-radius: 999px;
  animation: authOrbitSpin 26s linear infinite;
}

.authOrbitOne {
  top: 12%;
  left: 18%;
  width: 300px;
  height: 300px;
}

.authOrbitTwo {
  right: 7%;
  bottom: 10%;
  width: 430px;
  height: 430px;
  animation-direction: reverse;
  animation-duration: 32s;
}

.authShell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 604px;
  align-items: stretch;
  gap: 24px;
  width: min(968px, calc(100vw - 96px));
  min-height: min(620px, calc(100vh - 48px));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.authShowcase {
  position: relative;
  display: grid;
  place-items: center end;
  padding: 0;
  background: transparent;
  animation: authShowcaseEnter 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: hidden;
}

.authShowcase::before {
  display: none;
  content: none;
}

.authShowcase::after {
  display: none;
  content: none;
}

.authVisual {
  position: relative;
  width: min(82%, 380px);
  aspect-ratio: 0.68;
  border-radius: 42px;
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 28px 60px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 28px rgba(var(--auth-accent-rgb), 0.16));
  animation: none;
}

.authVisual span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.authVideoFrame {
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: #090d16;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.4),
    0 0 54px rgba(var(--auth-warm-rgb), 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  filter: none;
  overflow: hidden;
  animation: authVideoFloat 6s ease-in-out infinite;
}

.authVideoFrame::before {
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 52% 22%, rgba(var(--auth-warm-rgb), 0.18), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2));
  content: "";
  pointer-events: none;
}

.authShowcaseVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #090d16;
}

.authCard {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  justify-self: start;
  align-self: center;
  width: min(100%, 604px);
  min-height: 586px;
  padding: 60px 48px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 28px;
  background:
    radial-gradient(circle at 62% 18%, rgba(var(--auth-warm-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 20, 27, 0.78), rgba(12, 14, 20, 0.88));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: authCardEnter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.authCardHeader {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(100%, 340px);
  margin-bottom: 18px;
}

.authCardHeader strong {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.authCardHeader span {
  color: rgba(223, 228, 232, 0.58);
  font-size: 13px;
  text-align: center;
}

.authTabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(100%, 340px);
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.authTabs::before {
  display: none;
  position: absolute;
  top: 4px;
  left: var(--auth-tab-slider-left, 4px);
  z-index: 0;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  box-shadow:
    0 10px 24px rgba(var(--auth-accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  content: "";
  transition:
    left 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    background 220ms ease;
  will-change: left;
}

.authTabs[data-mode="register"]::before {
  left: var(--auth-tab-slider-left, calc(50% + 4px));
}

.authTab,
.authSubmitBtn {
  height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    color 220ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.authTabsIndicator {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 0;
  display: block;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  box-shadow:
    0 10px 24px rgba(var(--auth-accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateX(var(--auth-tab-indicator-x, 0px));
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.authTabs[data-mode="register"] .authTabsIndicator {
  transform: translateX(var(--auth-tab-indicator-x, 0px));
}

.authTab.active,
.authSubmitBtn {
  border-color: rgba(var(--auth-accent-rgb), 0.18);
  background: transparent;
  box-shadow: none;
}

.authTab:hover,
.authSubmitBtn:hover {
  transform: translateY(-1px);
}

.authTab:not(.active):hover {
  background: rgba(255, 255, 255, 0.055);
}

.authTab {
  position: relative;
  z-index: 1;
}

.authForm {
  display: grid;
  gap: 12px;
  width: min(100%, 340px);
  transform-origin: 50% 0;
}

.authForm.authFormSwitching {
  animation: authFormSwitch 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.authForm label {
  display: grid;
  gap: 6px;
  color: rgba(226, 231, 236, 0.66);
  font-size: 12px;
}

.authForm .authRememberRow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: end;
  gap: 8px;
  margin: -2px 0 2px;
  color: rgba(226, 231, 236, 0.72);
  font-size: 12px;
  line-height: 1;
  user-select: none;
  cursor: pointer;
}

.authForm .authRememberRow input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  accent-color: var(--auth-accent);
  box-shadow: none;
  cursor: pointer;
}

.authOptionalField {
  height: 0;
  max-height: 0;
  margin-top: -12px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition:
    height 360ms cubic-bezier(0.16, 1, 0.3, 1),
    max-height 360ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height, opacity, transform;
}

.authOptionalField.isVisible,
.authForm[data-mode="register"] .authOptionalField {
  height: 62px;
  max-height: 72px;
  margin-top: 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.authOptionalField:not([hidden]) {
  height: auto;
  max-height: none;
  margin-top: 0;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  transform: none;
}

.authForm input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.authForm input:focus {
  border-color: rgba(var(--auth-focus-rgb), 0.3);
  box-shadow: 0 0 0 4px rgba(var(--auth-focus-rgb), 0.14);
}

.authForm button {
  height: 44px;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.18);
  border-radius: 12px;
  color: #07100f;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  font-weight: 900;
}

.appDialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.appDialog[hidden] {
  display: none !important;
}

.appDialogBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 176, 104, 0.12), transparent 28%),
    rgba(5, 7, 9, 0.58);
  backdrop-filter: blur(5px);
}

.appDialogCard {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(460px, calc(100vw - 48px));
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(214, 224, 218, 0.12);
  border-radius: 20px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(34, 37, 42, 0.96), rgba(18, 20, 24, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  animation: appDialogIn 180ms ease-out both;
}

.appDialogGlow {
  position: absolute;
  inset: -40% -20% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 176, 104, 0.2), transparent 62%);
  pointer-events: none;
}

.appDialogHeader {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.appDialogMark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #16100a;
  background: linear-gradient(135deg, #f1d08b, #9f7140);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(212, 176, 104, 0.18);
}

.appDialog[data-icon="social"] .appDialogMark {
  position: relative;
  display: block;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.appDialogSocialIcon {
  position: absolute;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  font-weight: 950;
  line-height: 1;
}

.appDialogSocialXhs {
  top: 1px;
  left: 1px;
  z-index: 2;
  color: #fff6f5;
  background: linear-gradient(135deg, #ff2442, #cb1230);
  box-shadow: 0 8px 18px rgba(255, 36, 66, 0.28);
  font-size: 8px;
  letter-spacing: -0.12em;
}

.appDialogSocialDy {
  right: 1px;
  bottom: 1px;
  color: #f8ffff;
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.9), transparent 35%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.9), transparent 38%),
    #08090c;
  box-shadow: 0 8px 18px rgba(37, 244, 238, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-shadow:
    -1px 0 0 #25f4ee,
    1px 0 0 #fe2c55;
}

.appDialogHeader h2 {
  margin: 0;
  color: #f6f1e7;
  font-size: 18px;
  line-height: 1.2;
}

.appDialogHeader p {
  margin: 5px 0 0;
  color: rgba(230, 235, 240, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.appDialogInput {
  position: relative;
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(214, 224, 218, 0.14);
  border-radius: 14px;
  color: #fbfcfd;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.appDialogInput:focus {
  border-color: rgba(212, 176, 104, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 176, 104, 0.12);
}

.appDialogActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.appDialogActions button {
  height: 40px;
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid rgba(214, 224, 218, 0.12);
  border-radius: 999px;
  font-weight: 900;
}

.appDialogCancelBtn {
  color: #d8dee4;
  background: rgba(255, 255, 255, 0.07);
}

.appDialogConfirmBtn {
  color: #1c1308;
  background: linear-gradient(135deg, #f4d58f, #c09053);
  box-shadow: 0 12px 24px rgba(212, 176, 104, 0.18);
}

@keyframes appDialogIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.authTabs button {
  position: relative;
  z-index: 1;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: rgba(235, 241, 245, 0.72);
  background: transparent;
  transition:
    color 240ms ease,
    transform 180ms ease,
    text-shadow 240ms ease;
}

.authTabs button.active {
  color: #07100f;
  background: transparent;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.22);
}

.authStatus {
  width: min(100%, 340px);
  min-height: 20px;
  margin-top: 12px;
  color: #ffcf98;
  font-size: 12px;
}

.authField {
  display: grid;
  gap: 6px;
}

.authField span {
  color: rgba(226, 231, 236, 0.66);
  font-size: 12px;
}

.authField input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.authField input:focus {
  transform: translateY(-1px);
  border-color: rgba(var(--auth-focus-rgb), 0.3);
  box-shadow:
    0 0 0 4px rgba(var(--auth-focus-rgb), 0.14),
    0 10px 26px rgba(7, 19, 28, 0.1);
}

.authHint {
  width: min(100%, 340px);
  margin-top: 12px;
  color: rgba(225, 230, 235, 0.52);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

@keyframes authCardEnter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authFormSwitch {
  0% {
    opacity: 0.55;
    transform: translateY(8px) scale(0.985);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes authGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes authOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes authShowcaseEnter {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authShowcaseSweep {
  0%, 100% {
    opacity: 0.28;
    transform: translateX(-18%) skewX(-8deg);
  }
  48% {
    opacity: 0.75;
    transform: translateX(18%) skewX(-8deg);
  }
}

@keyframes authStarDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 84px 42px;
  }
}

@keyframes authGridFloat {
  0%, 100% {
    transform: perspective(760px) rotateX(58deg) rotateZ(-12deg) translateY(0);
  }
  50% {
    transform: perspective(760px) rotateX(58deg) rotateZ(-8deg) translateY(-10px);
  }
}

@keyframes authCorePulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes authRingSpin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes authOrbitTravel {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

@keyframes authBeamScan {
  0%, 100% {
    transform: translateY(-18px) scaleX(0.72);
    opacity: 0;
  }
  35%, 65% {
    transform: translateY(0) scaleX(1);
    opacity: 0.75;
  }
}

@keyframes authParticleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: 0.52;
  }
  50% {
    transform: translate3d(10px, -18px, 0) scale(1.1);
    opacity: 1;
  }
}

@keyframes authVideoFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.012);
  }
}

@media (max-width: 960px) {
  .authShell {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(460px, calc(100vw - 24px));
    min-height: auto;
    border-radius: 24px;
  }

  .authShowcase {
    min-height: 260px;
    padding: 28px 24px;
  }

  .authVisual {
    width: min(62%, 220px);
  }

  .authVideoFrame {
    width: min(48%, 170px);
  }

  .authCard {
    padding: 30px 24px 32px;
  }
}

.canvas {
  position: absolute;
  inset: 0;
  left: var(--canvas-sidebar-offset);
  cursor: grab;
  touch-action: none;
  user-select: none;
  background-color: #1b1d20;
  background-image: radial-gradient(circle, rgba(228, 232, 236, 0.14) 1.1px, transparent 1.35px);
  background-size: 56px 56px;
  transition:
    background-color 480ms ease,
    background-image 480ms ease,
    left 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.canvas::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(248, 250, 252, 0.28) 1px, transparent 1.26px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0.9px, transparent 1.18px);
  background-size: 56px 56px, 112px 112px;
  background-position: 0 0, 28px 20px;
  animation: canvasDotTwinkle 7.6s ease-in-out infinite;
  content: "";
  pointer-events: none;
  opacity: 0.26;
  transition:
    background-image 480ms ease,
    opacity 480ms ease;
}

.canvas::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.3) 20%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 62%);
  clip-path: circle(0% at 100% 0%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: clip-path, opacity;
  contain: paint;
}

html[data-theme="cream"] .canvas::after {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 248, 226, 0.9), rgba(224, 191, 135, 0.34) 22%, transparent 50%),
    linear-gradient(135deg, rgba(255, 250, 236, 0.42), transparent 66%);
}

html[data-theme="night"] .canvas::after {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.56), rgba(52, 58, 70, 0.56) 24%, transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(8, 10, 13, 0.08) 58%, transparent 76%);
}

.selectionBox {
  position: absolute;
  z-index: 18;
  border: 1px solid rgba(99, 196, 255, 0.9);
  background: rgba(57, 143, 214, 0.12);
  box-shadow: 0 0 0 1px rgba(99, 196, 255, 0.24) inset;
  pointer-events: none;
}

.canvas.dragging {
  cursor: grabbing;
}

.canvas.dropActive::after {
  position: absolute;
  inset: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(200, 160, 89, 0.72);
  border-radius: 14px;
  color: rgba(239, 243, 238, 0.86);
  background: rgba(8, 10, 13, 0.18);
  box-shadow: inset 0 0 0 1px rgba(200, 160, 89, 0.12);
  content: "拖到这里创建媒体窗口";
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
}

.edgeLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 20000px;
  height: 20000px;
  overflow: visible;
  pointer-events: none;
}

.nodeQuickGenerate {
  position: absolute;
  z-index: 80;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 220ms ease;
}

.nodeQuickGenerate:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nodeQuickGenerate.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.nodeQuickGenerate.hiding {
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
}

.nodeQuickGenerateBtn,
.nodeQuickStoryboardBtn,
.nodeQuickReverseBtn,
.nodeQuickCropBtn,
.nodeQuickReplaceBtn,
.nodeQuickLinkBtn {
  display: grid;
  min-width: 96px;
  gap: 1px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f8fafb;
  background: rgba(7, 8, 9, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 255, 255, 0.2);
  font-weight: 900;
  line-height: 1.1;
  pointer-events: auto;
}

.nodeQuickStoryboardBtn[hidden],
.nodeQuickReverseBtn[hidden],
.nodeQuickCropBtn[hidden],
.nodeQuickReplaceBtn[hidden],
.nodeQuickLinkBtn[hidden] {
  display: none !important;
}

.nodeQuickGenerateBtn:hover,
.nodeQuickStoryboardBtn:hover,
.nodeQuickReverseBtn:hover,
.nodeQuickCropBtn:hover,
.nodeQuickReplaceBtn:hover,
.nodeQuickLinkBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(255, 255, 255, 0.34);
}

.nodeQuickGenerateBtn small,
.nodeQuickStoryboardBtn small,
.nodeQuickReverseBtn small,
.nodeQuickCropBtn small,
.nodeQuickReplaceBtn small,
.nodeQuickLinkBtn small {
  color: rgba(248, 250, 251, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.nodeQuickLinkBtn {
  order: -1;
  min-width: 112px;
}

.cropModal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cropModal:not([hidden]) {
  display: grid;
}

.cropModal.show {
  opacity: 1;
  pointer-events: auto;
}

.cropBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 217, 154, 0.12), transparent 36%),
    rgba(5, 6, 8, 0.68);
  backdrop-filter: blur(14px);
}

.cropPanel {
  position: relative;
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 211, 132, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(20, 18, 16, 0.98), rgba(8, 9, 12, 0.98));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.cropModal.show .cropPanel {
  transform: translateY(0) scale(1);
}

.cropHeader,
.cropFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cropHeader strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.cropOriginalSize,
.cropInfo span {
  display: inline-flex;
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.cropCloseBtn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.cropStageShell {
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
    rgba(0, 0, 0, 0.34);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.cropStage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: min(62vh, 620px);
  user-select: none;
}

.cropStage img {
  display: block;
  max-width: min(100%, 900px);
  max-height: min(62vh, 620px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.cropBox {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid rgba(255, 248, 232, 0.96);
  border-radius: 10px;
  cursor: move;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(255, 213, 144, 0.42);
  overflow: visible;
  touch-action: none;
}

.cropGrid {
  position: absolute;
  background: rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.cropGridV {
  top: 0;
  bottom: 0;
  width: 1px;
}

.cropGridH {
  left: 0;
  right: 0;
  height: 1px;
}

.cropGridV1 { left: 33.333%; }
.cropGridV2 { left: 66.666%; }
.cropGridH1 { top: 33.333%; }
.cropGridH2 { top: 66.666%; }

.cropHandle {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #111318;
  border-radius: 999px;
  background: #fff7df;
  box-shadow: 0 0 0 2px rgba(255, 247, 223, 0.54);
  pointer-events: auto;
}

.cropHandleN { left: 50%; top: -8px; transform: translateX(-50%); cursor: ns-resize; }
.cropHandleE { right: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.cropHandleS { left: 50%; bottom: -8px; transform: translateX(-50%); cursor: ns-resize; }
.cropHandleW { left: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.cropHandleNE { right: -8px; top: -8px; cursor: nesw-resize; }
.cropHandleNW { left: -8px; top: -8px; cursor: nwse-resize; }
.cropHandleSE { right: -8px; bottom: -8px; cursor: nwse-resize; }
.cropHandleSW { left: -8px; bottom: -8px; cursor: nesw-resize; }

.cropInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cropActions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.cropGhostBtn,
.cropConfirmBtn,
.cropRatioSelect {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.cropRatioSelect {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding: 10px 28px 10px 14px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}

.cropRatioSelect:focus {
  border-color: rgba(255, 222, 166, 0.62);
  box-shadow: 0 0 0 3px rgba(199, 149, 77, 0.16);
}

.cropConfirmBtn {
  border-color: rgba(255, 222, 166, 0.68);
  color: #1d1408;
  background: linear-gradient(135deg, #ffe1a7, #c7954d);
  box-shadow: 0 12px 28px rgba(199, 149, 77, 0.24);
}

.cropGhostBtn:hover,
.cropConfirmBtn:hover,
.cropCloseBtn:hover {
  transform: translateY(-1px);
}

html[data-theme="cream"] .cropBackdrop {
  background:
    radial-gradient(circle at 28% 22%, rgba(111, 75, 31, 0.1), transparent 36%),
    rgba(246, 235, 216, 0.62);
}

html[data-theme="cream"] .cropPanel {
  color: #302313;
  border-color: rgba(116, 84, 46, 0.16);
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 170, 94, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 250, 240, 0.98), rgba(237, 221, 197, 0.98));
}

html[data-theme="cream"] .cropOriginalSize,
html[data-theme="cream"] .cropInfo span {
  color: rgba(55, 42, 26, 0.66);
}

html[data-theme="cream"] .cropCloseBtn,
html[data-theme="cream"] .cropGhostBtn,
html[data-theme="cream"] .cropRatioSelect {
  color: #302313;
  border-color: rgba(116, 84, 46, 0.16);
  background: rgba(255, 255, 255, 0.54);
}

html[data-theme="cream"] .cropStageShell {
  border-color: rgba(116, 84, 46, 0.14);
  background:
    linear-gradient(45deg, rgba(99, 72, 40, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(99, 72, 40, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(99, 72, 40, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(99, 72, 40, 0.06) 75%),
    rgba(255, 252, 246, 0.72);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.edgeGroup {
  pointer-events: none;
}

.edgeDeleteHandle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.edgeGroup:hover .edgeDeleteHandle,
.edgeGroup.selected .edgeDeleteHandle {
  opacity: 1;
  pointer-events: all;
}

.edgeDeleteBtn {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(222, 230, 236, 0.42);
  border-radius: 999px;
  color: #e8edf2;
  background: rgba(20, 25, 30, 0.94);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  pointer-events: auto;
}

.edgeDeleteBtn:hover {
  border-color: rgba(240, 196, 107, 0.8);
  color: #ffe2a1;
  background: rgba(39, 32, 22, 0.96);
}

.edge {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
}

.edgeHit {
  stroke: transparent;
  stroke-width: 18;
}

.edgeBase {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.32));
  stroke: rgba(7, 8, 9, 0.96);
  stroke-width: 2.5;
}

.edgeFlow {
  animation: edgeFlow 1.25s linear infinite;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
  stroke: rgba(255, 255, 255, 0.98);
  stroke-dasharray: 22 96;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.edgeLightningGlow,
.edgeLightning {
  pointer-events: none;
}

.edgeLightningGlow {
  animation: edgeLightningOrbit 1.9s linear infinite;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.76))
    drop-shadow(0 0 15px rgba(255, 255, 255, 0.24));
  opacity: 0.52;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-dasharray: 3 34 12 70;
  stroke-dashoffset: 0;
  stroke-width: 5.8;
}

.edgeLightning {
  animation: edgeLightningOrbit 1.08s linear infinite reverse, edgeLightningFlicker 1.7s steps(2, end) infinite;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.42));
  opacity: 0.88;
  stroke: #ffffff;
  stroke-dasharray: 2 18 16 86;
  stroke-dashoffset: 30;
  stroke-width: 1.25;
}

.edgeGroup.selected .edgeBase {
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 1))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  stroke: rgba(0, 0, 0, 0.98);
  stroke-width: 3;
}

.edgeGroup.selected .edgeFlow {
  stroke: #ffffff;
  stroke-width: 2;
}

.edgeGroup.selected .edgeLightning {
  opacity: 1;
  stroke-width: 1.55;
}

.edge.draft {
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.42));
  stroke: rgba(0, 0, 0, 0.96);
  stroke-dasharray: 10 12;
  stroke-width: 2.1;
  pointer-events: none;
}

.canvasWindow {
  position: absolute;
  width: 430px;
  border: 1px solid rgb(119, 171, 206);
  border-radius: 18px;
  overflow: visible;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: grab;
  transition:
    border-color 420ms ease,
    background 420ms ease,
    box-shadow 420ms ease,
    filter 420ms ease,
    opacity 420ms ease;
}

.nodeResizeHandle {
  position: absolute;
  z-index: 4;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(240, 244, 247, 0.8);
  border-radius: 50%;
  background: rgba(20, 25, 30, 0.92);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.14s ease;
}

.canvasWindow:hover .nodeResizeHandle,
.canvasWindow.selected .nodeResizeHandle {
  opacity: 1;
}

.nodeResizeHandle-nw {
  top: -12px;
  left: -12px;
  cursor: nwse-resize;
}

.nodeResizeHandle-ne {
  top: -12px;
  right: -12px;
  cursor: nesw-resize;
}

.nodeResizeHandle-sw {
  bottom: -12px;
  left: -12px;
  cursor: nesw-resize;
}

.nodeResizeHandle-se {
  right: -12px;
  bottom: -12px;
  cursor: nwse-resize;
}

.canvasWindow:active {
  cursor: grabbing;
}

.canvasWindow input,
.canvasWindow textarea,
.canvasWindow select,
.canvasWindow button,
.canvasWindow label,
.canvasWindow a,
.canvasWindow video {
  cursor: auto;
}

.canvasWindow::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgb(76, 111, 150);
  content: "";
}

.imageNode {
  width: 560px;
}

.imageNode:not([data-manual-size="true"]) .imageHero {
  min-height: 220px;
}

.outputNode {
  width: 520px;
  min-height: 220px;
  overflow: visible;
}

.outputNode header {
  display: grid;
  grid-template-columns: 12px minmax(0, auto) minmax(0, 1fr);
}

.canvasWindow > header {
  display: none !important;
}

.canvasWindow > header + .windowBody {
  border-radius: 18px;
}

.outputHeaderMeta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: end;
  color: #98a39d;
  font-size: 11px;
  font-weight: 600;
}

.imageGenSequentialGroup {
  display: none !important;
}

.imageGenResponseFormatGroup {
  display: none !important;
}

#addImageGenNodeBtn {
  display: none !important;
}

.canvasWindow header {
  display: grid;
  grid-template-columns: 12px 1fr 30px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  cursor: move;
  background: var(--panel-strong);
}

.statusDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.canvasWindow[data-status="succeeded"] .statusDot {
  background: var(--accent);
}

.canvasWindow[data-status="failed"] .statusDot,
.canvasWindow[data-status="error"] .statusDot {
  background: var(--accent-2);
}

.canvasWindow[data-status="creating"] .statusDot,
.canvasWindow[data-status="submitting"] .statusDot,
.canvasWindow[data-status="queued"] .statusDot,
.canvasWindow[data-status="pending"] .statusDot,
.canvasWindow[data-status="running"] .statusDot,
.canvasWindow[data-status="checking"] .statusDot {
  animation: pulseDot 1.1s ease-in-out infinite;
  background: var(--gold);
}

.windowTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.windowBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 78vh;
  overflow: auto;
  padding: 12px;
  border-radius: 0 0 18px 18px;
  background: var(--panel);
  transition:
    background 420ms ease,
    color 360ms ease;
}

.canvasWindow[data-manual-size="true"] {
  display: flex;
  flex-direction: column;
}

.canvasWindow[data-manual-size="true"] .windowBody {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.port {
  position: absolute;
  z-index: 6;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: rgba(6, 7, 8, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.34),
    0 0 10px rgba(255, 255, 255, 0.44),
    0 3px 12px rgba(24, 32, 29, 0.22);
}

.port::before {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  content: "";
}

.outputPort {
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
}

.inputPort {
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
}

.port:hover {
  border-color: #ffffff;
  background: #000000;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 0 14px rgba(255, 255, 255, 0.72),
    0 3px 12px rgba(24, 32, 29, 0.22);
}

.canvasWindow.connecting .outputPort {
  border-color: #ffffff;
  background: #000000;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.2),
    0 0 18px rgba(255, 255, 255, 0.78),
    0 3px 12px rgba(24, 32, 29, 0.22);
}

.canvasWindow.connecting {
  outline: 2px solid rgba(189, 139, 47, 0.65);
}

.canvasWindow.selected {
  outline: 2px solid rgba(200, 160, 89, 0.74);
  box-shadow: 0 0 0 6px rgba(200, 160, 89, 0.12), var(--shadow);
}

label,
.fieldGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label span,
.fieldHeader span {
  color: #d4ddd7;
  font-size: 13px;
  font-weight: 800;
}

.fieldHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fieldHeader button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #33403b;
  border-radius: 6px;
  color: var(--ink);
  background: #151a1f;
  font-size: 18px;
}

.imageList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.imageRow {
  display: grid;
  grid-template-columns: 74px 1fr 32px;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 8px;
  border: 1px solid #33403b;
  border-radius: 8px;
  background: var(--panel-soft);
}

.imageThumb {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #33403b;
  border-radius: 6px;
  color: #69756f;
  background:
    linear-gradient(135deg, rgba(23, 111, 102, 0.12), rgba(189, 139, 47, 0.12)),
    #14191c;
  font-size: 11px;
  font-weight: 800;
}

.imageThumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.imageRow.loaded .imageThumb img {
  opacity: 1;
}

.imageRow.broken .imageThumb {
  color: var(--accent-2);
  background: #1014177f4;
}

.imageCardBody {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.imageCardMeta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imageRow button {
  width: 32px;
  height: 32px;
  border: 1px solid #33403b;
  border-radius: 6px;
  color: var(--ink);
  background: #151a1f;
}

.imageRow button:disabled {
  cursor: default;
  opacity: 0.38;
}

.imageHero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #33403b;
  border-radius: 16px;
  color: #69756f;
  background:
    linear-gradient(135deg, rgba(23, 111, 102, 0.12), rgba(189, 139, 47, 0.12)),
    #14191c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.imageHero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.imageHero video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.imageHero audio.mediaAudioPreview {
  position: relative;
  z-index: 2;
  width: min(92%, 320px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
  display: none;
}

.imageHero.loaded img {
  opacity: 1;
}

.imageHero.loaded:has(video[src]) img {
  opacity: 0;
}

.imageHero.loaded:has(video[src]) video {
  display: block;
}

.imageHero.videoReady video {
  display: block;
}

.imageHero.audioReady {
  min-height: 150px;
  background:
    radial-gradient(circle at 28% 24%, rgba(242, 213, 155, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(212, 176, 104, 0.16), rgba(255, 255, 255, 0.04)),
    #14191c;
}

.imageHero.audioReady img,
.imageHero.audioReady video {
  display: none;
}

.imageHero.audioReady audio.mediaAudioPreview {
  display: block;
}

.imageHero.audioReady::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(242, 213, 155, 0.95) 8px 15px, transparent 15px 24px, rgba(242, 213, 155, 0.68) 24px 31px, transparent 31px 40px, rgba(242, 213, 155, 0.48) 40px 47px, transparent 47px);
  opacity: 0.35;
  transform: translateY(-22px);
}

.imageHero.videoReady > span {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: start;
  margin: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #d8e0dc;
  background: rgba(11, 16, 18, 0.64);
}

.imageHero.resolving {
  border-color: rgba(212, 176, 104, 0.78);
  color: #f2d59b;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 176, 104, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(23, 111, 102, 0.16), rgba(189, 139, 47, 0.18)),
    #14191c;
}

.imageHero.resolving > span {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f7dfaa;
  background: rgba(10, 13, 15, 0.72);
  box-shadow: 0 0 18px rgba(212, 176, 104, 0.18);
}

.imageHero.broken {
  color: var(--accent-2);
  background: #1014177f4;
}

.imageFileInput {
  display: none;
}

.mediaUrlBtn,
.mediaStoryboardBtn {
  position: absolute;
  bottom: 10px;
  z-index: 3;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(184, 199, 191, 0.26);
  border-radius: 6px;
  color: #d8e0dc;
  background: rgba(18, 24, 27, 0.76);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mediaUrlBtn {
  right: 10px;
}

.imageNode .mediaUrlBtn {
  display: none !important;
}

.mediaStoryboardBtn {
  right: 58px;
  border-color: rgba(212, 176, 104, 0.38);
  color: #fff0c4;
  background: rgba(85, 60, 24, 0.72);
}

.mediaUrlBtn:hover,
.mediaStoryboardBtn:hover {
  border-color: rgba(85, 190, 165, 0.72);
  background: rgba(27, 46, 45, 0.88);
}

.mediaStoryboardBtn:hover {
  border-color: rgba(244, 200, 122, 0.76);
  background: rgba(116, 80, 28, 0.88);
}

.mediaUrlBtn:disabled,
.mediaStoryboardBtn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.imageNode .windowBody {
  position: relative;
  gap: 0;
  padding: 0;
}

.imageNode.loaded:not([data-manual-size="true"]) .windowBody,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) .windowBody {
  gap: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.imageNode.loaded:not([data-manual-size="true"]) header,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) header {
  display: none;
}

.imageNode.loaded:not([data-manual-size="true"]),
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) {
  width: auto;
  max-width: min(1400px, calc(100vw - var(--canvas-sidebar-offset) - 48px));
}

.imageNode.loaded:not([data-manual-size="true"]) .imageHero,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) .imageHero {
  min-height: 420px;
  border-color: rgba(214, 224, 218, 0.22);
  border-radius: 18px;
  background: #f6f7f5;
  cursor: grab;
}

.imageNode.loaded:not([data-manual-size="true"]) .imageHero:active,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) .imageHero:active {
  cursor: grabbing;
}

.imageNode.loaded:not([data-manual-size="true"]) .imageHero img,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) .imageHero img {
  object-fit: contain;
}

.imageNode.loaded:not([data-manual-size="true"]) label,
.imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) label {
  display: none;
}

.imageNode[data-manual-size="true"],
.imageNode.loaded[data-manual-size="true"],
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) {
  max-width: none;
}

.imageNode[data-manual-size="true"] .windowBody,
.imageNode.loaded[data-manual-size="true"] .windowBody,
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) .windowBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.imageNode[data-manual-size="true"] .imageHero,
.imageNode.loaded[data-manual-size="true"] .imageHero,
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) .imageHero {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  border-radius: 18px;
}

.connectedImages {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151b1f;
  color: #43504a;
}

.connectedImages strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #101417;
  background: var(--accent);
}

.seedanceNode,
.imageGenNode {
  width: min(920px, calc(100vw - var(--canvas-sidebar-offset) - 96px));
  container-type: inline-size;
  container-name: generationNode;
}

.seedanceNode .windowBody,
.imageGenNode .windowBody {
  gap: 0;
  padding: 0;
}

.seedanceSurface {
  overflow-x: hidden;
  overflow-y: visible;
  border: 0;
  border-radius: 18px;
  background: #262626;
  box-shadow: none;
  transition:
    background 420ms ease,
    box-shadow 420ms ease;
}

.generationModeSwitch {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin: 12px 18px 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  isolation: isolate;
  --mode-offset: 0%;
}

.generationModeSwitch[data-active-mode="video"] {
  --mode-offset: calc(100% + 4px);
}

.generationModeSwitch::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 12px) / 2);
  border-radius: 999px;
  background: #f7f7f2;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  content: "";
  transform: translateX(var(--mode-offset));
  transition:
    transform 260ms cubic-bezier(0.2, 0.9, 0.22, 1),
    background 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.generationModeBtn {
  position: relative;
  z-index: 1;
  min-width: 54px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(236, 238, 240, 0.68);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.generationModeBtn:hover {
  color: #f7f8f9;
  transform: translateY(-1px);
}

.generationModeBtn.active {
  color: #08090a;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
}

.seedanceReferenceModes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  vertical-align: top;
}

.referenceModeBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(232, 238, 244, 0.62);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.referenceModeBtn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.referenceModeBtn:hover {
  transform: translateY(-1px);
  color: #f7f8f9;
}

.referenceModeBtn.active[data-reference-mode="omni"] {
  border-color: rgba(103, 178, 255, 0.4);
  color: #d9efff;
  background: linear-gradient(135deg, rgba(69, 136, 255, 0.24), rgba(255, 255, 255, 0.055));
}

.referenceModeBtn.active[data-reference-mode="multi_image"] {
  border-color: rgba(248, 210, 122, 0.42);
  color: #ffe5a6;
  background: linear-gradient(135deg, rgba(248, 210, 122, 0.2), rgba(255, 255, 255, 0.055));
}

.referenceModeBtn.active::before {
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.seedancePromptWrap {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 48px;
}

.promptActionsTop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "mentions cancel submit"
    "prompt prompt prompt";
  align-items: start;
  gap: 10px 12px;
  margin-top: 10px;
  padding: 0 18px 16px;
}

.promptActionsTop .seedanceMentionBar {
  grid-area: mentions;
  min-height: 36px;
  padding: 0;
  padding-right: 0;
}

.promptActionsTop .seedanceSendBtn {
  position: static;
  grid-area: submit;
  align-self: start;
  justify-self: end;
  transform: translateY(-5px);
}

.promptActionsTop .seedanceCancelBtn {
  position: static;
  grid-area: cancel;
  align-self: start;
  justify-self: end;
  transform: translateY(-5px);
}

.promptActionsTop .seedancePromptInput {
  grid-area: prompt;
}

.seedanceNode .promptActionsTop,
.imageGenNode .promptActionsTop {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "mentions"
    "prompt";
}

.seedanceNode .promptActionsTop .seedanceMentionBar:empty,
.imageGenNode .promptActionsTop .seedanceMentionBar:empty {
  min-height: 0;
  height: 0;
}

.seedanceNode .promptActionsTop .seedanceSendBtn,
.imageGenNode .promptActionsTop .seedanceSendBtn,
.seedanceNode .promptActionsTop .seedanceCancelBtn {
  position: absolute;
  top: -44px;
  bottom: auto;
  transform: none;
  z-index: 4;
}

.seedanceNode .promptActionsTop .seedanceSendBtn,
.imageGenNode .promptActionsTop .seedanceSendBtn {
  right: 20px;
  width: 88px;
  min-width: 88px;
  height: 36px;
  border-radius: 13px;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.seedanceNode .promptActionsTop .seedanceCancelBtn {
  right: 118px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 13px;
}

.seedancePromptInput {
  min-height: 132px;
  max-height: 280px;
  border: 0;
  outline: none;
  padding: 0;
  color: #eceef0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  resize: none;
  box-shadow: none;
}

.seedanceNode .seedancePromptInput,
.imageGenNode .seedancePromptInput {
  border: 1px solid rgba(228, 234, 238, 0.28);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 0 1px rgba(0, 0, 0, 0.16);
}

.seedanceNode .seedancePromptInput:focus,
.imageGenNode .seedancePromptInput:focus {
  border-color: rgba(244, 248, 250, 0.46);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(228, 234, 238, 0.075);
}

.richPromptInput {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(135, 142, 150, 0.62) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  white-space: pre-wrap;
  word-break: break-word;
}

.richPromptInput::-webkit-scrollbar {
  width: 8px;
}

.richPromptInput::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.richPromptInput::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(135, 142, 150, 0.66);
  background-clip: padding-box;
}

.richPromptInput:empty::before {
  content: attr(data-placeholder);
  color: #c7ccd2;
}

.inlineMentionThumb {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0 6px 0 3px;
  vertical-align: middle;
  place-items: center;
  border: 1px solid rgba(23, 111, 102, 0.35);
  border-radius: 999px;
  background: rgba(23, 111, 102, 0.12);
  overflow: visible;
}

.inlineMentionThumbMedia {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
}

.inlineMentionThumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inlineMentionThumbFallback .inlineMentionThumbMedia,
.mentionThumb.mentionThumbFallback {
  position: relative;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, rgba(20, 25, 28, 0.96), rgba(7, 10, 12, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 255, 0.08);
}

.inlineMentionThumb-video .inlineMentionThumbMedia::before,
.mentionThumb-video::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.92);
}

.mentionThumb-video::before {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 9px;
}

.inlineMentionThumb-image .inlineMentionThumbMedia::before,
.mentionThumb-image::before {
  content: "";
  grid-area: 1 / 1;
  width: 18px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 4px;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.86) 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.74) 43% 56%, transparent 57%),
    linear-gradient(45deg, transparent 0 46%, rgba(255, 255, 255, 0.58) 47% 62%, transparent 63%);
}

.mentionThumb-image::before {
  transform: scale(0.82);
}

.inlineMentionThumb-image:not(.inlineMentionThumbFallback) .inlineMentionThumbMedia::before,
.mentionThumb-image:not(.mentionThumbFallback)::before {
  display: none;
}

.inlineMentionThumb-audio .inlineMentionThumbMedia::before,
.mentionThumb-audio::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.9) 2px 5px, transparent 5px 8px, rgba(255, 255, 255, 0.72) 8px 11px, transparent 11px 14px, rgba(255, 255, 255, 0.55) 14px 17px, transparent 17px);
}

.mentionThumb-audio::before {
  transform: scale(0.82);
}

.inlineMentionThumb-text .inlineMentionThumbMedia::before,
.inlineMentionThumb-file .inlineMentionThumbMedia::before,
.mentionThumb-text::before,
.mentionThumb-file::before {
  content: "";
  width: 17px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) 4px 6px / 8px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)) 4px 11px / 7px 2px no-repeat;
}

.mentionThumb-text::before,
.mentionThumb-file::before {
  transform: scale(0.78);
}

.inlineMentionThumbEmpty {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.inlineMentionRemove {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #d44848;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.seedancePromptInput::placeholder {
  color: #c7ccd2;
}

.seedancePromptInput:focus {
  border: 0;
  box-shadow: none;
}

.seedanceMentionBar {
  display: flex;
  min-height: 28px;
  padding: 14px 0 0;
  padding-right: 108px;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
}

.seedanceToolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #222223;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  scrollbar-width: none;
}

.seedanceToolbar::-webkit-scrollbar {
  display: none;
}

@container generationNode (max-width: 760px) {
  .promptActionsTop {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mentions mentions"
      "cancel submit"
      "prompt prompt";
  }

  .promptActionsTop .seedanceSendBtn {
    justify-self: end;
  }

  .promptActionsTop .seedanceCancelBtn {
    justify-self: end;
  }

  .seedanceToolbar {
    align-items: center;
    gap: 8px 10px;
    flex-wrap: nowrap !important;
  }

  .seedanceToolbarGroup {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .seedanceInlineInput {
    width: 220px;
    min-width: 220px;
  }

  .seedanceInlineSelect {
    max-width: none;
  }
}

.seedanceToolbarGroup {
  display: inline-flex;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  min-width: 0 !important;
  white-space: nowrap !important;
  color: #f1f2f3;
  font-size: 14px;
  font-weight: 700;
}

.seedanceNode[data-provider="seedance"] .seedanceField[data-model-scope="kling"] {
  display: none !important;
}

.seedanceNode[data-provider="kling"] .seedanceField[data-model-scope="seedance"] {
  display: none !important;
}

.seedanceNode[data-provider="seedance"] .seedanceField[data-model-scope="common"],
.seedanceNode[data-provider="kling"] .seedanceField[data-model-scope="common"],
.seedanceNode[data-provider="seedance"] .seedanceField[data-model-scope="seedance"],
.seedanceNode[data-provider="kling"] .seedanceField[data-model-scope="kling"] {
  display: inline-flex;
}

.seedanceModelGroup {
  min-width: 0;
}

.seedanceToggleGroup {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  cursor: pointer;
}

.seedanceToggleGroup input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #f0f1f2;
}

.seedanceToolIcon {
  position: relative;
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  color: #d7dbe0;
}

.seedanceToolIconImage {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.seedanceToolIconImage::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 9px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 100%, 38% 42%, 58% 66%, 78% 32%, 100% 100%);
  opacity: 0.92;
}

.seedanceToolIconImage::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
}

.seedanceToolIconVideo {
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.seedanceToolIconVideo::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid currentColor;
}

.seedanceInlineInput,
.seedanceInlineSelect {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 28px 0 12px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 10px;
  color: #f1f2f3;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.seedanceInlineInput {
  min-width: 220px;
  width: 220px;
}

.seedanceInlineInput:focus,
.seedanceInlineSelect:focus {
  border-color: rgba(255, 213, 107, 0.44);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(255, 213, 107, 0.09),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.seedanceInlineSelect {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a8adb3 50%), linear-gradient(135deg, #a8adb3 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.seedanceNode .modelInput.seedanceInlineSelect {
  width: 172px;
}

.seedanceNode .resolutionInput.seedanceInlineSelect {
  width: 84px;
}

.seedanceNode .ratioInput.seedanceInlineSelect,
.seedanceNode .durationInput.seedanceInlineSelect,
.seedanceNode .batchCountInput.seedanceInlineSelect {
  width: 76px;
}

.seedanceNode .connectedImages {
  display: none;
}

.seedanceSendBtn {
  position: absolute;
  right: 18px;
  bottom: 10px;
  display: inline-flex;
  width: 56px;
  min-width: 56px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #111214;
  background: #f4f5f6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.seedanceCancelBtn {
  position: absolute;
  right: 100px;
  bottom: 10px;
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 110, 84, 0.38);
  border-radius: 8px;
  color: #fff7f2;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 190, 134, 0.28), transparent 38%),
    linear-gradient(135deg, #ff724f, #c72f24);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(255, 82, 50, 0.2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.seedanceCancelBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 180, 140, 0.58);
  filter: brightness(1.07);
}

.promptActionsTop .seedanceCancelBtn:hover {
  transform: translateY(-6px);
}

.seedanceNode .promptActionsTop .seedanceSendBtn:hover,
.seedanceNode .promptActionsTop .seedanceCancelBtn:hover {
  transform: translateY(-1px);
}

.seedanceCancelBtn.seedanceCancelBtnLocked {
  border-color: rgba(148, 154, 164, 0.28);
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #6c737d, #3f454d);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.16),
    0 0 12px rgba(140, 150, 160, 0.12);
  cursor: not-allowed;
  filter: saturate(0.65);
  opacity: 0.72;
}

.seedanceCancelBtn.seedanceCancelBtnLocked:hover {
  border-color: rgba(160, 168, 178, 0.36);
  filter: saturate(0.65) brightness(1.02);
}

.seedanceCancelBtn:disabled {
  pointer-events: auto;
}

.seedanceCancelBtn[hidden] {
  display: none !important;
}

.seedanceSendBtn:disabled {
  color: #111214;
  background-image: linear-gradient(90deg, #d8dbe0, #ffffff, #d8dbe0);
}

.seedanceMentionBar .mentionEmpty {
  display: inline-flex;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 123, 114, 0.18);
  border-radius: 999px;
  color: #8e949b;
  background: rgba(31, 123, 114, 0.06);
}

.seedanceMentionBar .mentionChip {
  gap: 8px;
}

.seedanceMentionBar .mentionType {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #aeb5bc;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

@media (max-width: 1380px) {
  .seedanceToolbar {
    gap: 12px 14px;
  }
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #33403b;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #151a1f;
  font-size: 15px;
  font-weight: 600;
}

input::placeholder,
textarea::placeholder {
  color: #74807a;
}

option {
  color: var(--ink);
  background: #151a1f;
}

input,
select {
  height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 10px;
}

.mentionBar {
  display: flex;
  min-height: 32px;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.mentionChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 180px;
  height: 34px;
  padding: 0 10px 0 4px;
  border: 1px solid rgba(23, 111, 102, 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(23, 111, 102, 0.08);
  font-weight: 700;
}

.mentionLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentionThumb {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #69756f;
  background: #14191c;
  font-size: 9px;
}

.mentionThumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentionThumbEmpty {
  border: 1px solid rgba(23, 111, 102, 0.18);
}

.mentionEmpty {
  display: inline-flex;
  align-items: center;
  height: 28px;
  color: var(--muted);
  font-size: 12px;
}

.mentionAutocomplete {
  position: fixed;
  z-index: 3600;
  display: grid;
  gap: 4px;
  max-height: 240px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(18, 22, 25, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.mentionAutocomplete[hidden] {
  display: none !important;
}

.mentionAutocompleteItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #e6ece8;
  background: transparent;
  text-align: left;
}

.mentionAutocompleteItem:hover,
.mentionAutocompleteItem.active {
  border-color: rgba(214, 182, 110, 0.42);
  background: rgba(214, 182, 110, 0.14);
}

.mentionAutocompleteThumb {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #14191c;
}

.mentionAutocompleteThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentionAutocompleteThumb.mentionThumbFallback {
  position: relative;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, rgba(20, 25, 28, 0.96), rgba(7, 10, 12, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 255, 0.08);
}

.mentionAutocompleteText {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mentionAutocompleteText strong,
.mentionAutocompleteText small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentionAutocompleteText strong {
  font-size: 13px;
}

.mentionAutocompleteText small,
.mentionAutocompleteEmpty {
  color: #9fa8a2;
  font-size: 11px;
}

.mentionAutocompleteEmpty {
  padding: 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 111, 102, 0.14);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.switches {
  display: flex;
  gap: 12px;
}

.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.generateBtn {
  height: 42px;
  border: 0;
  border-radius: 6px;
  color: #06100f;
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.generateBtn:disabled {
  cursor: wait;
  opacity: 0.62;
  background-image: linear-gradient(90deg, var(--accent), #249283, var(--accent));
  background-size: 200% 100%;
  animation: buttonFlow 1s linear infinite;
}

.resultArea {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
}

.imageGenModelHint {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 189, 89, 0.26);
  border-radius: 10px;
  color: #ffdca5;
  background: rgba(255, 189, 89, 0.1);
  font-size: 12px;
  line-height: 1.45;
}

.resultMeta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.resultError {
  color: #ff6b6b;
  font-weight: 800;
}

.resultWarning {
  color: #f4c35f;
  font-weight: 800;
}

.resultArea video {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090b0d;
}

.resultArea audio,
.outputAudioPreview audio {
  width: 100%;
}

.storyboardPreview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tokenUsageBadge {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  width: max-content;
  max-width: calc(100% - 10px);
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px auto;
  padding: 6px 10px;
  border: 1px solid rgba(214, 176, 104, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(48, 39, 22, 0.96), rgba(18, 20, 22, 0.94)),
    rgba(18, 20, 22, 0.94);
  color: rgba(250, 241, 218, 0.92);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tokenUsageBadge span {
  color: rgba(229, 234, 231, 0.72);
}

.tokenUsageBadge strong {
  margin: 0;
  color: #f6d06d;
  font-size: inherit;
  letter-spacing: 0;
}

.storyboardPreview article {
  padding: 11px 12px;
  border: 1px solid rgba(216, 197, 151, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(14, 17, 19, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 20px rgba(0, 0, 0, 0.16);
}

.storyboardPreview strong {
  display: block;
  margin-bottom: 6px;
  color: #f3e8c6;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.storyboardPreview p {
  margin: 0;
  color: rgba(229, 234, 231, 0.82);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}


.videoStoryboardNode,
.videoPlotNode,
.imageReverseNode {
  width: min(560px, calc(100vw - var(--canvas-sidebar-offset) - 96px));
}

.imageReverseNode {
  width: min(680px, calc(100vw - var(--canvas-sidebar-offset) - 96px));
}

.videoStoryboardNode,
.textStoryboardNode {
  width: min(680px, calc(100vw - var(--canvas-sidebar-offset) - 96px));
}

.storyboardToolbar {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, max-content);
  padding: 0;
  overflow: visible;
}

.storyboardModelGroup {
  display: none !important;
}

.imageReverseNode .storyboardToolbar {
  display: none !important;
}

.videoStoryboardNode .storyboardBtn,
.videoStoryboardNode .storyboardCopyBtn,
.videoStoryboardNode .storyboardSegmentInput,
.textStoryboardNode .storyboardBtn,
.textStoryboardNode .storyboardCopyBtn,
.videoPlotNode .plotBtn,
.videoPlotNode .plotCopyBtn,
.videoPlotNode .plotSegmentInput,
.imageReverseNode .reverseBtn,
.imageReverseNode .reverseCopyBtn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.storyboardActionRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.silhouetteNode .silhouetteBtn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.audioExtractNode .audioExtractBtn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.poseNode .poseBtn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.storyboardResult,
.plotResult,
.reverseResult {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 176, 104, 0.52) rgba(255, 255, 255, 0.045);
}

.imageReverseNode .windowBody {
  min-height: 260px;
}

.videoStoryboardNode .windowBody,
.textStoryboardNode .windowBody {
  min-height: 300px;
}

.imageReverseNode .reverseResult {
  min-height: 176px;
  border-top: 0;
  padding-top: 0;
}

.videoStoryboardNode .storyboardResult,
.textStoryboardNode .storyboardResult {
  min-height: 210px;
  border-top: 0;
  padding-top: 0;
}

.imageReverseNode .outputLoading,
.imageReverseNode .outputIdle {
  position: relative;
  min-height: 176px;
  border-radius: 16px;
}

.videoStoryboardNode .outputLoading,
.videoStoryboardNode .outputIdle,
.textStoryboardNode .outputLoading,
.textStoryboardNode .outputIdle {
  position: relative;
  min-height: 210px;
  border-radius: 16px;
}

.videoStoryboardNode .storyboardToolbar,
.textStoryboardNode .storyboardToolbar {
  gap: 10px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.videoStoryboardNode .storyboardToolbar .seedanceToolbarGroup,
.textStoryboardNode .storyboardToolbar .seedanceToolbarGroup {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.imageReverseNode .reverseBtn {
  color: #f7ecd1;
  background: linear-gradient(135deg, #111317, #514733);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.videoStoryboardNode .storyboardBtn,
.textStoryboardNode .storyboardBtn {
  color: #f7ecd1;
  background: linear-gradient(135deg, #111317, #514733);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.imageReverseNode .reverseCopyBtn {
  color: #071011;
  background: linear-gradient(135deg, #d9dde2, #8f969e);
}

.videoStoryboardNode .storyboardCopyBtn,
.textStoryboardNode .storyboardCopyBtn {
  color: #071011;
  background: linear-gradient(135deg, #d9dde2, #8f969e);
}

.imageReverseNode .reverseBtn:disabled,
.imageReverseNode .reverseCopyBtn:disabled,
.videoStoryboardNode .storyboardBtn:disabled,
.videoStoryboardNode .storyboardCopyBtn:disabled,
.textStoryboardNode .storyboardBtn:disabled,
.textStoryboardNode .storyboardCopyBtn:disabled {
  color: rgba(245, 238, 224, 0.78);
  background-image: linear-gradient(90deg, #202227, #6f6759, #202227);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.storyboardResult::-webkit-scrollbar,
.plotResult::-webkit-scrollbar,
.reverseResult::-webkit-scrollbar {
  width: 8px;
}

.storyboardResult::-webkit-scrollbar-track,
.plotResult::-webkit-scrollbar-track,
.reverseResult::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.storyboardResult::-webkit-scrollbar-thumb,
.plotResult::-webkit-scrollbar-thumb,
.reverseResult::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(235, 199, 128, 0.9), rgba(142, 108, 54, 0.82));
  background-clip: padding-box;
}

.storyboardResult::-webkit-scrollbar-thumb:hover,
.plotResult::-webkit-scrollbar-thumb:hover,
.reverseResult::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 221, 151, 0.96), rgba(174, 132, 63, 0.9));
  background-clip: padding-box;
}

.plotPreview article:first-child {
  border-color: rgba(206, 176, 112, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(206, 176, 112, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.storyboardPrompt {
  border-color: rgba(214, 176, 104, 0.32) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 176, 104, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.035) !important;
}

.outputStoryboardPreview {
  width: 100%;
  padding: 10px;
}

.outputGallery {
  width: 100%;
  padding: 0;
  gap: 0 !important;
  place-items: stretch;
}

.outputImageGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.outputImageGridSingle {
  grid-template-columns: minmax(0, 1fr);
}

.batchResultGallery,
.outputVideoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.outputPreview.outputPreviewImage .outputGallery,
.outputPreview.outputPreviewImage .outputVideoGrid {
  max-width: 100%;
}

.outputGalleryItem {
  display: grid;
  place-items: stretch;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background: #ddd7cf;
  margin: 0;
  padding: 0;
  position: relative;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.outputImageGridSingle .outputGalleryItem {
  min-height: 0;
}

.outputGalleryItem img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  background: #f6f1ea;
  box-shadow: none;
  object-fit: contain;
}

.outputGalleryItem::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(214, 182, 110, 0);
  box-shadow: inset 0 0 0 0 rgba(214, 182, 110, 0);
  content: "";
  pointer-events: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.outputGalleryItem:hover {
  z-index: 1;
  transform: scale(0.988);
  filter: saturate(1.04) brightness(1.02);
}

.outputGalleryItem:hover::after {
  border-color: rgba(214, 182, 110, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 224, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(214, 182, 110, 0.03));
}

.batchResultPlaceholder,
.outputVideoCard {
  display: grid;
  gap: 6px;
}

.batchResultPlaceholder {
  min-height: 180px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #98a39d;
  background: #111416;
}

.outputVideoCard video {
  width: 100%;
  border-radius: 10px;
  background: #0a0d0f;
}

.outputVideoPreview {
  width: 100%;
  height: 100%;
}

.outputVideoLazy {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  gap: 10px;
  border: 1px solid rgba(212, 176, 104, 0.22);
  border-radius: 12px;
  color: #f2dfb5;
  background:
    radial-gradient(circle at 34% 24%, rgba(212, 176, 104, 0.28), transparent 42%),
    linear-gradient(145deg, rgba(34, 37, 42, 0.98), rgba(9, 11, 13, 0.98));
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.outputVideoLazy .assetPlay {
  position: relative;
  right: auto;
  bottom: auto;
  width: 34px;
  height: 34px;
  background: rgba(212, 176, 104, 0.28);
}

.outputVideoLazy:hover {
  border-color: rgba(212, 176, 104, 0.38);
  background:
    radial-gradient(circle at 34% 24%, rgba(212, 176, 104, 0.36), transparent 42%),
    linear-gradient(145deg, rgba(39, 42, 47, 0.98), rgba(12, 14, 16, 0.98));
}

.outputVideoPreview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0d0f;
}

.outputVideoCard figcaption,
.batchResultGallery figcaption {
  display: none;
}

.outputPreview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #33403b;
  border-radius: 16px;
  color: #69756f;
  background: #090b0d;
  font-size: 13px;
  font-weight: 800;
}

.outputPreview.outputPreviewImage .outputGallery {
  min-height: 100%;
  align-content: start;
  margin-top: 0;
}

.outputPreview.outputPreviewImage {
  background: #f6f7f5;
}

.outputNode .windowBody {
  position: relative;
  gap: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.outputNode .outputPreview {
  height: auto;
  flex: 0 0 auto;
  min-height: 220px;
  border: 0;
  border-radius: 16px;
}

.outputNode[data-output-fit="image"] .outputPreview,
.outputNode[data-output-fit="video"] .outputPreview {
  min-height: 180px;
}

.outputNode[data-output-fit="image"] .outputPreview {
  display: block;
}

.outputNode[data-output-fit="image"] .outputGallery,
.outputNode[data-output-fit="image"] .outputGalleryItem,
.outputNode[data-output-fit="image"] .outputGalleryItem img {
  max-width: 100%;
}

.outputNode[data-manual-size="false"]:not([data-output-fit="image"]) .outputPreview {
  min-height: 220px;
}

.outputNode[data-manual-size="false"]:not([data-output-fit="image"]):not([data-output-fit="video"]) {
  min-height: 220px;
}

.outputNode[data-manual-size="false"][data-output-fit="image"] .outputPreview,
.outputNode[data-manual-size="false"][data-output-fit="video"] .outputPreview {
  align-self: stretch;
}

.outputPreview.outputPreviewImage img,
.outputPreview.outputPreviewImage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.outputNode[data-manual-size="true"] .outputPreview {
  aspect-ratio: auto !important;
}

.outputNode .outputMeta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
}

.outputNode .outputMeta a {
  pointer-events: auto;
}

.canvasWindow[data-manual-size="true"] {
  display: flex;
  flex-direction: column;
}

.canvasWindow[data-manual-size="true"] .windowBody {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.imageNode[data-manual-size="true"],
.imageNode.loaded[data-manual-size="true"],
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) {
  max-width: none;
}

.imageNode[data-manual-size="true"] .windowBody,
.imageNode.loaded[data-manual-size="true"] .windowBody,
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) .windowBody {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
}

.imageNode[data-manual-size="true"] .imageHero,
.imageNode.loaded[data-manual-size="true"] .imageHero,
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) .imageHero {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0;
}

.imageNode[data-manual-size="true"] .imageHero img,
.imageNode[data-manual-size="true"] .imageHero video {
  object-fit: contain;
}

.imageNode[data-manual-size="true"].loaded header,
.imageNode[data-manual-size="true"]:has(.imageHero.loaded) header {
  display: none;
}

.seedanceNode[data-manual-size="true"],
.imageGenNode[data-manual-size="true"] {
  max-width: none;
}

.seedanceNode[data-manual-size="true"] .windowBody,
.imageGenNode[data-manual-size="true"] .windowBody {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.seedanceNode[data-manual-size="true"] .seedanceSurface,
.imageGenNode[data-manual-size="true"] .seedanceSurface {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.seedanceNode[data-manual-size="true"] .seedancePromptWrap,
.imageGenNode[data-manual-size="true"] .seedancePromptWrap {
  flex: 1 1 auto;
  min-height: 0;
}

.seedanceNode[data-manual-size="true"] .seedancePromptInput,
.imageGenNode[data-manual-size="true"] .imageGenPromptInput {
  flex: 1 1 auto;
  min-height: 180px;
}

.seedanceNode[data-manual-size="true"] .seedanceToolbar,
.imageGenNode[data-manual-size="true"] .seedanceToolbar {
  flex-wrap: wrap;
  overflow-x: hidden;
  overflow-y: visible;
}

.seedanceNode[data-manual-size="true"] .seedanceToolbarGroup,
.imageGenNode[data-manual-size="true"] .seedanceToolbarGroup {
  min-width: 0;
  white-space: nowrap;
}

.seedanceNode[data-manual-size="true"] .seedanceInlineInput,
.imageGenNode[data-manual-size="true"] .seedanceInlineInput {
  min-width: 0;
  width: min(100%, 320px);
}

.seedanceNode[data-manual-size="true"] .seedanceInlineSelect,
.imageGenNode[data-manual-size="true"] .seedanceInlineSelect {
  min-width: 0;
  width: auto;
}

.seedanceNode[data-manual-size="true"] .seedanceMentionBar,
.imageGenNode[data-manual-size="true"] .seedanceMentionBar {
  padding-right: 0;
}

.seedanceNode[data-manual-size="true"] .seedanceSendBtn,
.imageGenNode[data-manual-size="true"] .seedanceSendBtn {
  right: 18px;
  bottom: 12px;
}

.seedanceNode[data-manual-size="true"] .promptActionsTop .seedanceSendBtn,
.imageGenNode[data-manual-size="true"] .promptActionsTop .seedanceSendBtn,
.seedanceNode[data-manual-size="true"] .promptActionsTop .seedanceCancelBtn {
  top: -44px;
  bottom: auto;
}

.seedanceNode[data-manual-size="true"] .promptActionsTop .seedanceSendBtn,
.imageGenNode[data-manual-size="true"] .promptActionsTop .seedanceSendBtn {
  right: 20px;
}

.seedanceNode[data-manual-size="true"] .promptActionsTop .seedanceCancelBtn {
  right: 118px;
}

.seedanceNode[data-manual-size="true"] .seedanceToolbarGroup,
.imageGenNode[data-manual-size="true"] .seedanceToolbarGroup {
  min-height: 30px;
}

.imageGenNode[data-manual-size="true"] .imageGenResultArea {
  flex: 0 0 auto;
  min-height: 140px;
  overflow: auto;
}

.seedanceNode[data-manual-size="true"] .resultArea,
.imageGenNode[data-manual-size="true"] .imageGenResultArea {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.outputNode[data-manual-size="true"] {
  max-width: none;
}

.outputNode[data-manual-size="true"] .windowBody {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.outputNode[data-manual-size="true"] .outputPreview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
}

.outputNode[data-manual-size="true"] .outputPreview {
  flex: 1 1 auto;
  height: auto;
  aspect-ratio: auto !important;
}

.outputNode[data-manual-size="true"] .outputPreview img,
.outputNode[data-manual-size="true"] .outputPreview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.assetLightbox {
  position: absolute;
  inset: 0;
  z-index: 120;
}

.assetLightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, 0.82);
}

.assetLightboxStage {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.assetLightboxStage img,
.assetLightboxStage video {
  max-width: 88vw;
  max-height: 88vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0f1114;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.assetLightboxStage img {
  transform-origin: center center;
  object-fit: contain;
  cursor: grab;
}

.assetLightboxStage video {
  cursor: auto;
}

.assetLightboxClose,
.assetLightboxDownload {
  position: absolute;
  top: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #eff3ee;
  background: rgba(31, 37, 42, 0.94);
}

.assetLightboxClose {
  right: 0;
}

.assetLightboxDownload {
  right: 50px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.assetLightboxDownload[hidden] {
  display: none !important;
}

.assetLightboxDownload svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.assetLightboxClose:hover,
.assetLightboxDownload:hover {
  background: rgba(52, 60, 68, 0.98);
}

.outputLoading,
.outputIdle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.outputLoading {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 52% 52%, rgba(255, 219, 128, 0.2), transparent 16%),
    radial-gradient(ellipse at 34% 48%, rgba(255, 132, 47, 0.38), transparent 24%),
    radial-gradient(ellipse at 66% 54%, rgba(255, 199, 74, 0.48), transparent 25%),
    linear-gradient(115deg, #050507 0%, #11100d 48%, #080604 100%);
  animation: outputLoadingAura 2.8s cubic-bezier(.37, 0, .2, 1) infinite;
}

.outputLoading::before {
  content: "";
  position: absolute;
  inset: -45% -20%;
  border: 0;
  border-radius: 42%;
  background:
    conic-gradient(from 20deg at 50% 50%,
      transparent 0deg,
      rgba(255, 105, 31, 0.12) 42deg,
      rgba(255, 210, 112, 0.42) 88deg,
      rgba(255, 255, 235, 0.18) 122deg,
      transparent 166deg,
      transparent 360deg);
  filter: blur(1px);
  opacity: 0.78;
  box-shadow:
    0 0 46px rgba(255, 170, 58, 0.18),
    inset 0 0 44px rgba(255, 201, 87, 0.1);
  animation: outputLoadingLiquidSweep 3.4s cubic-bezier(.45, 0, .16, 1) infinite;
}

.outputLoading::after {
  display: none;
  content: none;
}

.outputLoading span,
.outputIdle span {
  position: relative;
  z-index: 3;
  color: rgba(255, 246, 218, 0.98);
  letter-spacing: 0.16em;
  text-shadow:
    0 0 10px rgba(255, 213, 107, 0.72),
    0 0 24px rgba(255, 119, 42, 0.28);
}

.outputLoading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 213, 107, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(12, 9, 6, 0.42), rgba(56, 35, 13, 0.32), rgba(12, 9, 6, 0.42));
  color: #fff3cb;
  font-size: 14px;
  font-weight: 950;
  box-shadow:
    0 0 24px rgba(255, 168, 49, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.outputLoading span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd56b;
  box-shadow:
    0 0 10px rgba(255, 213, 107, 0.95),
    0 0 22px rgba(255, 111, 42, 0.48);
  animation: outputLoadingDot 0.9s ease-in-out infinite;
}

.outputPreview video,
.outputPreview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.imageHero img,
.imageHero video {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.outputMeta a {
  color: var(--accent);
  text-decoration: none;
}

.connectionMenu {
  position: absolute;
  z-index: 20;
  width: 248px;
  max-height: min(560px, calc(100vh - 28px));
  padding: 8px;
  border: 1px solid rgba(200, 160, 89, 0.42);
  border-radius: 8px;
  background: #151a1f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 159, 83, 0.68) rgba(255, 255, 255, 0.045);
}

.connectionMenu::-webkit-scrollbar {
  width: 8px;
}

.connectionMenu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.connectionMenu::-webkit-scrollbar-thumb {
  border: 2px solid #151a1f;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 182, 110, 0.86), rgba(31, 123, 114, 0.68));
}

.connectionMenu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(236, 204, 136, 0.95), rgba(42, 151, 139, 0.8));
}

.connectionMenu[hidden] {
  display: none;
}

.connectionMenuTitle {
  padding: 5px 6px 8px;
  color: #d4ddd7;
  font-size: 12px;
  font-weight: 800;
}

.connectionMenu button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.connectionMenu button:hover {
  border-color: rgba(31, 123, 114, 0.55);
  background: rgba(31, 123, 114, 0.18);
}

.connectionMenu button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.connectionMenu button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.toastLayer {
  position: absolute;
  top: 86px;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  transform: translateY(-8px);
  opacity: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 21, 24, 0.96);
  box-shadow: 0 14px 36px rgba(24, 32, 29, 0.16);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(23, 111, 102, 0.28);
}

.toast.error {
  border-color: rgba(208, 71, 49, 0.34);
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes buttonFlow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes edgeFlow {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes edgeLightningOrbit {
  from {
    stroke-dashoffset: 160;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes edgeLightningFlicker {
  0%, 100% {
    opacity: 0.52;
  }
  18% {
    opacity: 0.95;
  }
  31% {
    opacity: 0.36;
  }
  47% {
    opacity: 1;
  }
  68% {
    opacity: 0.62;
  }
}

@keyframes canvasThemeWash {
  0% {
    opacity: 0.985;
  }
  46% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes nodeThemeColorPulse {
  0% {
    opacity: 0.985;
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes themeLightWave {
  0% {
    clip-path: circle(0% at 100% 0%);
    opacity: 0;
  }
  10% {
    clip-path: circle(22% at 100% 0%);
    opacity: 0.92;
  }
  46% {
    clip-path: circle(92% at 100% 0%);
    opacity: 0.62;
  }
  78% {
    clip-path: circle(148% at 100% 0%);
    opacity: 0.28;
  }
  100% {
    clip-path: circle(170% at 100% 0%);
    opacity: 0;
  }
}

@keyframes sidebarThemeSettle {
  0% {
    opacity: 0.985;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes edgeThemeGlow {
  0% {
    opacity: 0.72;
  }
  48% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes outputLoadingAura {
  0%,
  100% {
    filter: saturate(0.98) brightness(0.9);
    background-position: 50% 50%, 32% 50%, 67% 52%, 0 0;
  }
  50% {
    filter: saturate(1.22) brightness(1.12);
    background-position: 52% 49%, 39% 46%, 60% 56%, 0 0;
  }
}

@keyframes outputLoadingLiquidSweep {
  0% {
    transform: translateX(-18%) rotate(0deg) scale(1.05);
    opacity: 0.48;
  }
  42% {
    opacity: 0.88;
  }
  100% {
    transform: translateX(18%) rotate(360deg) scale(1.12);
    opacity: 0.48;
  }
}

@keyframes outputLoadingBadge {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
  }
}

@keyframes outputLoadingDot {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes canvasDotTwinkle {
  0%,
  100% {
    opacity: 0.12;
    filter: brightness(0.88);
  }
  18% {
    opacity: 0.24;
    filter: brightness(1.02);
  }
  42% {
    opacity: 0.14;
    filter: brightness(0.92);
  }
  68% {
    opacity: 0.3;
    filter: brightness(1.08);
  }
  82% {
    opacity: 0.18;
    filter: brightness(0.96);
  }
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions a,
.actions button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #33403b;
  border-radius: 6px;
  color: var(--ink);
  background: #151a1f;
  text-decoration: none;
}

.noteWindow {
  width: 330px;
}

.textInputNode {
  width: min(520px, calc(100vw - var(--canvas-sidebar-offset) - 96px));
}

.textInputNode .windowBody {
  min-height: 240px;
}

.textInputText {
  min-height: 220px;
  border: 0;
  background: transparent;
  box-shadow: none;
  resize: vertical;
  line-height: 1.65;
}

.noteText {
  min-height: 160px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.videoSplitNode {
  width: 360px;
}

.videoSplitNode .windowBody {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.videoSplitToolbar {
  margin-bottom: 8px;
}

.videoSplitBtn {
  position: relative;
  z-index: 8;
  width: 100%;
  cursor: pointer;
}

.videoSplitResult {
  min-height: 110px;
  overflow: auto;
}

.videoSplitList {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.videoSplitItem {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(136, 160, 151, 0.22);
  border-radius: 12px;
  background: rgba(9, 12, 14, 0.62);
}

.videoSplitItem video {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  background: #050607;
}

.videoSplitItem strong,
.videoSplitItem span {
  display: block;
}

.videoSplitItem strong {
  color: var(--ink);
  font-size: 12px;
}

.videoSplitItem span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.themeFloatingBtn {
  position: absolute;
  top: 16px;
  right: 190px;
  z-index: 42;
  display: inline-grid;
  width: 58px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(25, 27, 31, 0.98), rgba(10, 12, 15, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.canvasLocateBtn {
  position: absolute;
  top: 16px;
  right: 260px;
  z-index: 42;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #edf2ee;
  background: rgba(31, 37, 42, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.shortcutHelpBtn {
  position: absolute;
  top: 16px;
  right: 314px;
  z-index: 42;
  display: grid;
  width: 92px;
  height: 34px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #edf2ee;
  background: rgba(31, 37, 42, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.rechargeFloatingBtn {
  right: 418px;
  width: 96px;
  color: #fff8ec;
  border-color: rgba(255, 151, 70, 0.26);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 220, 128, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(255, 121, 50, 0.94), rgba(218, 82, 26, 0.94));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(255, 113, 47, 0.18);
}

.rechargeFloatingBtn:hover {
  border-color: rgba(255, 214, 146, 0.42);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 232, 158, 0.36), transparent 36%),
    linear-gradient(135deg, rgba(255, 136, 54, 0.98), rgba(230, 91, 28, 0.98));
}

.creditRateHint {
  position: absolute;
  top: 16px;
  right: 526px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 177, 96, 0.22);
  border-radius: 999px;
  color: #ffe5bd;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 213, 128, 0.16), transparent 36%),
    rgba(31, 37, 42, 0.84);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
}

.contactFloatingBtn {
  position: absolute;
  top: 16px;
  right: 732px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(106, 190, 255, 0.34);
  border-radius: 999px;
  color: #dff3ff;
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 190, 255, 0.22), transparent 36%),
    rgba(31, 37, 42, 0.9);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(92, 185, 255, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.contactFloatingBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 210, 255, 0.56);
  background:
    radial-gradient(circle at 20% 18%, rgba(116, 210, 255, 0.32), transparent 36%),
    rgba(44, 50, 56, 0.94);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(92, 185, 255, 0.18);
}

.usageNotes {
  position: absolute;
  top: 16px;
  right: 632px;
  z-index: 43;
  min-width: 88px;
}

.usageNotesBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 88px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #edf2ee;
  background: rgba(31, 37, 42, 0.88);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  cursor: default;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.usageNotes:hover .usageNotesBtn,
.usageNotes:focus-within .usageNotesBtn {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(44, 50, 56, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.usageNotesPanel {
  position: absolute;
  top: 42px;
  right: 0;
  display: none;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  width: min(520px, calc(100vw - 32px));
  padding: 14px 44px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  color: #eef3ef;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(30, 34, 39, 0.98), rgba(11, 13, 16, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: shortcutPanelIn 180ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.usageNotes:hover .usageNotesPanel,
.usageNotes:focus-within .usageNotesPanel,
.usageNotes.isOpen .usageNotesPanel {
  display: grid;
}

.usageNotes.isDismissed:not(.isOpen):hover .usageNotesPanel,
.usageNotes.isDismissed:not(.isOpen):focus-within .usageNotesPanel {
  display: none;
}

.usageNotesCloseBtn {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #ff5d63;
  background: transparent;
  cursor: pointer;
  font-size: 32px;
  font-weight: 900;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 160ms ease,
    color 180ms ease,
    background 180ms ease;
}

.usageNotesCloseBtn:hover {
  transform: scale(1.08);
  color: #ff7075;
  background: rgba(255, 93, 99, 0.12);
}

.usageNotesCategory {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #15191c;
  background: #f3f4f0;
  font-size: 13px;
  font-weight: 900;
}

.usageNotesContent {
  display: grid;
  gap: 10px;
}

.usageNotesContent strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.usageNotesContent ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.usageNotesContent li {
  color: rgba(238, 243, 239, 0.78);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.creditRateHint:hover,
.creditRateHint[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(255, 205, 134, 0.38);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 224, 151, 0.22), transparent 36%),
    rgba(43, 48, 52, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.creditRatePanel {
  position: absolute;
  top: 58px;
  right: 418px;
  z-index: 44;
  width: min(460px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 177, 96, 0.2);
  border-radius: 22px;
  color: #f4efe4;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 184, 96, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(35, 39, 43, 0.96), rgba(20, 23, 27, 0.94));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  animation: creditRatePop 180ms ease both;
}

.creditRatePanelHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.creditRatePanelHeader strong {
  color: #ffe1b2;
  font-size: 15px;
  font-weight: 900;
}

.creditRatePanelHeader span {
  color: rgba(244, 239, 228, 0.54);
  font-size: 12px;
  font-weight: 700;
}

.creditRatePanel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creditRatePanel li {
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255, 249, 238, 0.88);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 219, 168, 0.08);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.45;
}

@keyframes creditRatePop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shortcutHelpBtn:hover,
.shortcutHelpBtn[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(44, 50, 56, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.shortcutHelpPanel {
  position: absolute;
  top: 58px;
  right: 168px;
  z-index: 72;
  width: min(360px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 82px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  color: #eef3ef;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(30, 34, 39, 0.98), rgba(11, 13, 16, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: shortcutPanelIn 180ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.shortcutHelpPanel[hidden] {
  display: none !important;
}

.shortcutHelpHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.shortcutHelpHeader strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.shortcutHelpHeader span {
  color: rgba(238, 243, 239, 0.56);
  font-size: 12px;
}

.shortcutHelpBody {
  display: grid;
  gap: 12px;
}

.shortcutHelpBody section {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.shortcutHelpBody h3 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.shortcutHelpBody p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  color: rgba(238, 243, 239, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.shortcutHelpBody kbd {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #f8fbf7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

@keyframes shortcutPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.canvasLocateBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(44, 50, 56, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.canvasLocateBtn::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow:
    0 -7px 0 -6px currentColor,
    0 7px 0 -6px currentColor,
    -7px 0 0 -6px currentColor,
    7px 0 0 -6px currentColor;
  content: "";
}

.canvasLocateBtn::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.themeFloatingBtn::before {
  position: absolute;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f7f7f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  content: "";
  transition:
    transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1),
    background 220ms ease,
    box-shadow 220ms ease;
}

.themeFloatingBtn::after {
  position: absolute;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111318;
  box-shadow:
    0 -7px 0 -4px #111318,
    5px -5px 0 -4px #111318,
    7px 0 0 -4px #111318,
    5px 5px 0 -4px #111318,
    0 7px 0 -4px #111318,
    -5px 5px 0 -4px #111318,
    -7px 0 0 -4px #111318,
    -5px -5px 0 -4px #111318;
  content: "";
  transition:
    transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1),
    background 180ms ease,
    box-shadow 180ms ease;
}

.themeFloatingBtn .themeIconText {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.themeFloatingBtn:hover::before {
  transform: translateX(2px) scale(1.04);
}

.themeFloatingBtn:hover::after {
  transform: translateX(2px) rotate(18deg) scale(1.04);
}

.assetTools button,
.topActions button,
.topActions span,
.actions button,
.actions a,
.accountToggleBtn,
.accountActionBtn,
.windowBody,
.seedanceSurface,
.seedancePromptWrap,
.promptActionsTop,
.seedanceToolbar,
.outputPreview,
.imageHero,
.mediaMentionBar,
.resultMeta,
.seedanceInlineInput,
.seedanceInlineSelect,
.richPromptInput,
.edgeBase,
.edgeFlow,
.port {
  transition:
    color 360ms ease,
    border-color 420ms ease,
    background 420ms ease,
    background-color 420ms ease,
    background-image 420ms ease,
    box-shadow 420ms ease,
    filter 420ms ease,
    stroke 420ms ease,
    opacity 360ms ease,
    transform 360ms ease;
}

html.themeSwitching .canvas {
  animation: canvasThemeWash 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

html.themeSwitching .canvas::after {
  animation: themeLightWave 780ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

html.themeSwitching .canvasWindow {
  animation: nodeThemeColorPulse 480ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

html.themeSwitching .assetSidebar {
  animation: sidebarThemeSettle 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

html.themeSwitching .edgeBase,
html.themeSwitching .edgeFlow {
  animation: edgeThemeGlow 420ms ease;
}

html[data-theme="cream"] {
  --bg: #f4efe6;
  --ink: #2d302a;
  --muted: #766f63;
  --line: #d8cab9;
  --panel: #fffaf0;
  --panel-strong: #f0e3cf;
  --panel-soft: #f7eedf;
  --sidebar: #eee1cf;
  --accent: #8f6a3b;
  --accent-2: #be6d51;
  --gold: #b68441;
  --shadow: 0 22px 52px rgba(101, 78, 45, 0.18);
}

html[data-theme="cream"] body {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 244, 214, 0.86), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(220, 199, 164, 0.54), transparent 32%),
    #f4efe6;
}

html[data-theme="cream"] .assetSidebar {
  border-right-color: rgba(128, 91, 49, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.76), rgba(238, 225, 207, 0.96)),
    var(--sidebar);
  box-shadow: 18px 0 34px rgba(121, 89, 50, 0.12);
}

html[data-theme="cream"] .assetSidebarToggle {
  border-color: rgba(141, 111, 73, 0.26);
  color: #2d302a;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(238, 225, 207, 0.96));
  box-shadow: 8px 0 22px rgba(101, 78, 45, 0.14);
}

html[data-theme="cream"] .assetSidebarToggle:hover {
  border-color: rgba(141, 111, 73, 0.38);
  background: linear-gradient(180deg, rgba(255, 246, 228, 0.98), rgba(232, 215, 190, 0.98));
}

html[data-theme="cream"] .assetTools button,
html[data-theme="cream"] .topActions button,
html[data-theme="cream"] .topActions span,
html[data-theme="cream"] .actions button,
html[data-theme="cream"] .actions a,
html[data-theme="cream"] .themeFloatingBtn,
html[data-theme="cream"] .canvasLocateBtn,
html[data-theme="cream"] .usageNotesBtn,
html[data-theme="cream"] .shortcutHelpBtn,
html[data-theme="cream"] .creditRateHint,
html[data-theme="cream"] .accountToggleBtn,
html[data-theme="cream"] .accountActionBtn {
  border-color: rgba(141, 111, 73, 0.24);
  color: #2d302a;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 24px rgba(101, 78, 45, 0.12);
}

html[data-theme="cream"] .canvasLocateBtn:hover,
html[data-theme="cream"] .usageNotes:hover .usageNotesBtn,
html[data-theme="cream"] .usageNotes:focus-within .usageNotesBtn,
html[data-theme="cream"] .shortcutHelpBtn:hover,
html[data-theme="cream"] .shortcutHelpBtn[aria-expanded="true"],
html[data-theme="cream"] .creditRateHint:hover,
html[data-theme="cream"] .creditRateHint[aria-expanded="true"] {
  border-color: rgba(141, 111, 73, 0.36);
  background: #fff6e8;
  box-shadow: 0 12px 28px rgba(101, 78, 45, 0.18);
}

html[data-theme="cream"] .rechargeFloatingBtn {
  border-color: rgba(224, 100, 28, 0.42);
  color: #fffaf0;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 232, 143, 0.42), transparent 36%),
    linear-gradient(135deg, #ff8a32 0%, #ef6322 52%, #c94817 100%);
  box-shadow:
    0 14px 30px rgba(202, 88, 24, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.38) inset,
    0 0 24px rgba(255, 111, 32, 0.2);
}

html[data-theme="cream"] .rechargeFloatingBtn:hover,
html[data-theme="cream"] .rechargeFloatingBtn[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(255, 128, 42, 0.56);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 241, 172, 0.52), transparent 36%),
    linear-gradient(135deg, #ff9a3f 0%, #f06a24 52%, #d44c16 100%);
  box-shadow:
    0 16px 34px rgba(202, 88, 24, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 0 30px rgba(255, 111, 32, 0.28);
}

html[data-theme="cream"] .creditRatePanel {
  border-color: rgba(141, 111, 73, 0.18);
  color: #332b20;
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 156, 79, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 250, 240, 0.98), rgba(247, 235, 213, 0.96));
  box-shadow: 0 22px 52px rgba(101, 78, 45, 0.18);
}

html[data-theme="cream"] .creditRatePanelHeader strong {
  color: #8a5628;
}

html[data-theme="cream"] .creditRatePanelHeader span {
  color: rgba(65, 52, 34, 0.56);
}

html[data-theme="cream"] .creditRatePanel li {
  color: rgba(45, 38, 26, 0.86);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(141, 111, 73, 0.12);
}

html[data-theme="cream"] .usageNotesPanel {
  border-color: rgba(141, 111, 73, 0.2);
  color: #2d302a;
  background:
    radial-gradient(circle at 20% 0%, rgba(187, 147, 92, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(237, 224, 206, 0.98));
  box-shadow: 0 24px 56px rgba(101, 78, 45, 0.2);
}

html[data-theme="cream"] .usageNotesCategory {
  color: #fff8ea;
  background: linear-gradient(135deg, #8b6434, #5b4328);
}

html[data-theme="cream"] .usageNotesContent strong {
  color: #211f1b;
}

html[data-theme="cream"] .usageNotesContent li {
  color: rgba(45, 48, 42, 0.76);
}

html[data-theme="cream"] .shortcutHelpPanel {
  border-color: rgba(141, 111, 73, 0.2);
  color: #2d302a;
  background:
    radial-gradient(circle at 20% 0%, rgba(187, 147, 92, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(237, 224, 206, 0.98));
  box-shadow: 0 24px 56px rgba(101, 78, 45, 0.2);
}

html[data-theme="cream"] .shortcutHelpHeader span {
  color: rgba(45, 48, 42, 0.58);
}

html[data-theme="cream"] .shortcutHelpBody section {
  border-color: rgba(141, 111, 73, 0.15);
  background: rgba(255, 255, 255, 0.48);
}

html[data-theme="cream"] .shortcutHelpBody h3 {
  color: #211f1b;
}

html[data-theme="cream"] .shortcutHelpBody p {
  color: rgba(45, 48, 42, 0.74);
}

html[data-theme="cream"] .shortcutHelpBody kbd {
  border-color: rgba(141, 111, 73, 0.22);
  color: #211f1b;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: inset 0 -1px 0 rgba(101, 78, 45, 0.12);
}

html[data-theme="cream"] .themeFloatingBtn {
  border-color: rgba(146, 109, 61, 0.3);
  background: linear-gradient(180deg, #fff8ea, #eadcc8);
  box-shadow: 0 12px 28px rgba(101, 78, 45, 0.18);
}

html[data-theme="cream"] .themeFloatingBtn::before {
  transform: translateX(24px);
  background: #111318;
  box-shadow:
    0 4px 12px rgba(101, 78, 45, 0.2),
    inset 7px -3px 0 #fff5d8;
}

html[data-theme="cream"] .themeFloatingBtn::after {
  transform: translateX(24px) rotate(180deg) scale(0.84);
  background: transparent;
  box-shadow:
    5px -2px 0 0 #fff5d8,
    9px 2px 0 -2px rgba(255, 245, 216, 0.78);
}

html[data-theme="cream"] .themeFloatingBtn:hover::before {
  transform: translateX(22px) scale(1.04);
}

html[data-theme="cream"] .themeFloatingBtn:hover::after {
  transform: translateX(22px) rotate(160deg) scale(0.9);
}

html[data-theme="cream"] .brand,
html[data-theme="cream"] .topActions,
html[data-theme="cream"] .footerStatus,
html[data-theme="cream"] .accountPanel {
  border-color: rgba(141, 111, 73, 0.2);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 16px 34px rgba(101, 78, 45, 0.14);
}

html[data-theme="cream"] .accountPanel::before {
  border-color: rgba(141, 111, 73, 0.2);
  background: rgba(255, 250, 240, 0.98);
}

html[data-theme="cream"] .accountPanel .accountName {
  color: #5f4218;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme="cream"] .accountPanel .accountEmail,
html[data-theme="cream"] .accountPanel .accountMutedText,
html[data-theme="cream"] .accountPanel .accountToggleChevron {
  color: #625846;
}

html[data-theme="cream"] .accountPanel .accountMetaLineUnlimited {
  color: #0f7a64;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="cream"] .accountPanel .accountMetaCard {
  border-color: rgba(141, 111, 73, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 246, 228, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="cream"] .accountPanel .accountMetaLabel {
  color: rgba(88, 70, 46, 0.72);
}

html[data-theme="cream"] .accountPanel .accountCrown-active::before {
  color: #d98c00;
  text-shadow:
    0 0 8px rgba(255, 191, 73, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="cream"] .accountPanel .accountCrown-inactive::before {
  color: rgba(127, 116, 101, 0.58);
}

html[data-theme="cream"] .accountPanel .accountMetaValue {
  color: #3d2f1f;
}

html[data-theme="cream"] .accountPanel .accountMetaCard-balance .accountMetaValue,
html[data-theme="cream"] .accountPanel .accountMetaCard-unlimited .accountMetaValue {
  color: #a45a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="cream"] .accountPanel .accountMetaCard-unlimited {
  border-color: rgba(191, 119, 24, 0.22);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 187, 70, 0.2), transparent 46%),
    linear-gradient(135deg, rgba(255, 239, 205, 0.92), rgba(255, 250, 240, 0.76));
}

html[data-theme="cream"] .accountPanel .accountMetaCard-inactive .accountMetaValue {
  color: rgba(92, 80, 63, 0.64);
}

html[data-theme="cream"] .accountPanel .accountActionBtn {
  color: #2d261b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(141, 111, 73, 0.1);
}

html[data-theme="cream"] .accountPanel .accountActionBtn:hover {
  color: #1f1a12;
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="cream"] .mark,
html[data-theme="cream"] .accountAvatar {
  color: #fffaf0;
  background: linear-gradient(135deg, #111318, #b68441);
}

html[data-theme="cream"] .canvas {
  background-color: #f3eadb;
  background-image: radial-gradient(circle, rgba(96, 83, 64, 0.24) 0.9px, transparent 1.2px);
  background-size: 56px 56px;
}

html[data-theme="cream"] .canvas::before {
  background-image: radial-gradient(circle, rgba(116, 88, 52, 0.12) 0.85px, transparent 1.1px);
  background-size: 112px 112px;
  background-position: 28px 20px;
  opacity: 0.2;
}

html[data-theme="cream"] .canvasWindow {
  border-color: rgba(116, 88, 52, 0.34);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(94, 68, 38, 0.18);
}

html[data-theme="cream"] .canvasWindow.selected {
  outline-color: rgba(176, 126, 54, 0.64);
  box-shadow: 0 0 0 6px rgba(176, 126, 54, 0.14), var(--shadow);
}

html[data-theme="cream"] .canvasWindow::before {
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="cream"] .canvasWindow header,
html[data-theme="cream"] .windowBody {
  background: var(--panel);
}

html[data-theme="cream"] .canvasWindow header {
  border-bottom-color: rgba(141, 111, 73, 0.22);
  background: linear-gradient(180deg, #fff7eb, #f2e5d2);
}

html[data-theme="cream"] .nodeResizeHandle {
  border-color: rgba(116, 96, 67, 0.34);
  background: #fffaf0;
  box-shadow: 0 3px 12px rgba(94, 68, 38, 0.16);
}

html[data-theme="cream"] .outputHeaderMeta,
html[data-theme="cream"] label span,
html[data-theme="cream"] .fieldHeader span,
html[data-theme="cream"] .windowTitle,
html[data-theme="cream"] .assetGroupTitle,
html[data-theme="cream"] .seedanceToolbarGroup,
html[data-theme="cream"] .seedanceToolIcon,
html[data-theme="cream"] .storyboardPreview strong,
html[data-theme="cream"] .videoSplitItem strong {
  color: #3a3a31;
}

html[data-theme="cream"] .assetToolbar,
html[data-theme="cream"] .assetToolbar > span {
  color: #4a3d2d;
}

html[data-theme="cream"] .assetTabs {
  border-color: rgba(126, 96, 56, 0.22);
  background: rgba(255, 249, 236, 0.62);
}

html[data-theme="cream"] .assetTab {
  color: #7b6a55;
}

html[data-theme="cream"] .assetTab.active {
  color: #3d2c19;
  background: #fff2d8;
  box-shadow: inset 0 0 0 1px rgba(126, 96, 56, 0.18);
}

html[data-theme="cream"] .workflowSavePanel {
  border-color: rgba(174, 121, 45, 0.24);
  background: rgba(255, 249, 236, 0.82);
}

html[data-theme="cream"] .workflowSavePanel label {
  color: #6d5c47;
}

html[data-theme="cream"] .workflowSavePanel input {
  border-color: rgba(126, 96, 56, 0.2);
  color: #3d2c19;
  background: #fffaf0;
}

html[data-theme="cream"] .workflowSaveActions button {
  border-color: rgba(126, 96, 56, 0.18);
  color: #5a4227;
  background: rgba(255, 247, 232, 0.92);
}

html[data-theme="cream"] #workflowSaveConfirmBtn {
  color: #6e4e1d;
  background: linear-gradient(180deg, #fff4d9, #ead2a7);
}

html[data-theme="cream"] .appDialogBackdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(190, 139, 65, 0.18), transparent 30%),
    rgba(64, 47, 25, 0.24);
}

html[data-theme="cream"] .appDialogCard {
  border-color: rgba(126, 96, 56, 0.22);
  color: #3d2c19;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(242, 229, 210, 0.98));
  box-shadow: 0 28px 80px rgba(94, 68, 38, 0.24);
}

html[data-theme="cream"] .appDialogGlow {
  background: radial-gradient(circle, rgba(190, 139, 65, 0.22), transparent 62%);
}

html[data-theme="cream"] .appDialogMark {
  color: #fffaf0;
  background: linear-gradient(135deg, #111318, #b68441);
}

html[data-theme="cream"] .appDialog[data-icon="social"] .appDialogMark {
  background: transparent;
  box-shadow: none;
}

html[data-theme="cream"] .appDialogSocialXhs {
  box-shadow: 0 8px 16px rgba(201, 36, 58, 0.2);
}

html[data-theme="cream"] .appDialogSocialDy {
  box-shadow: 0 8px 16px rgba(40, 35, 31, 0.2);
}

html[data-theme="cream"] .appDialogHeader h2 {
  color: #342617;
}

html[data-theme="cream"] .appDialogHeader p {
  color: #7a6a56;
}

html[data-theme="cream"] .appDialogInput {
  border-color: rgba(126, 96, 56, 0.22);
  color: #3d2c19;
  background: #fffaf0;
}

html[data-theme="cream"] .appDialogCancelBtn {
  color: #5a4227;
  background: rgba(255, 247, 232, 0.92);
}

html[data-theme="cream"] .appDialogConfirmBtn {
  color: #fffaf0;
  background: linear-gradient(135deg, #111318, #b68441);
  box-shadow: 0 12px 24px rgba(176, 126, 54, 0.2);
}

html[data-theme="cream"] .assetItemTitle {
  color: #4a3823;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

html[data-theme="cream"] .assetEmpty,
html[data-theme="cream"] .assetItemSub {
  color: #6d5c47;
}

html[data-theme="cream"] .assetWorkflowBtn {
  border-color: rgba(126, 96, 56, 0.34);
  color: #5a4227;
  background: rgba(255, 247, 232, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="cream"] .assetWorkflowBtn:hover {
  color: #3d2c19;
  background: #fff2d8;
}

html[data-theme="cream"] .assetWorkflowRenameBtn {
  border-color: rgba(174, 121, 45, 0.32);
  color: #704e1f;
  background: rgba(246, 225, 186, 0.72);
}

html[data-theme="cream"] .assetWorkflowRenameBtn:hover {
  background: #f5dda8;
}

html[data-theme="cream"] .assetWorkflowDeleteBtn,
html[data-theme="cream"] .assetOutputDeleteBtn {
  border-color: rgba(174, 74, 64, 0.28);
  color: #8f332b;
  background: rgba(255, 224, 217, 0.78);
}

html[data-theme="cream"] .assetWorkflowDeleteBtn:hover,
html[data-theme="cream"] .assetOutputDeleteBtn:hover {
  background: #ffd4c9;
}

html[data-theme="cream"] .assetWorkflowBtnDisabled {
  color: #8c7d6b;
  background: rgba(122, 92, 54, 0.08);
}

html[data-theme="cream"] .assetTools .canvasSaveBtn {
  border-color: rgba(174, 121, 45, 0.32);
  color: #6e4e1d;
  background: linear-gradient(180deg, #fff4d9, #ead2a7);
}

html[data-theme="cream"] .assetPreviewWorkflow {
  color: #6f4d1d;
  background:
    radial-gradient(circle at 34% 26%, rgba(190, 139, 65, 0.24), transparent 44%),
    linear-gradient(145deg, #fff8ea, #eadcc5);
}

html[data-theme="cream"] .workflowAssetItem {
  border-color: rgba(174, 121, 45, 0.24);
  background: rgba(255, 249, 236, 0.82);
}

html[data-theme="cream"] input,
html[data-theme="cream"] textarea,
html[data-theme="cream"] select,
html[data-theme="cream"] .promptInput,
html[data-theme="cream"] .imageGenPromptInput,
html[data-theme="cream"] .negativePromptInput,
html[data-theme="cream"] .storyboardText,
html[data-theme="cream"] .plotText,
html[data-theme="cream"] .noteText,
html[data-theme="cream"] .seedancePromptInput,
html[data-theme="cream"] .seedanceInlineInput,
html[data-theme="cream"] .seedanceInlineSelect {
  border-color: rgba(141, 111, 73, 0.24);
  color: #2d302a;
  background: #fffdf7;
}

html[data-theme="cream"] .seedancePromptInput,
html[data-theme="cream"] .seedancePromptInput.richPromptInput {
  border: 1px solid rgba(199, 164, 108, 0.34);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 253, 247, 0.58);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

html[data-theme="cream"] .seedancePromptInput:focus,
html[data-theme="cream"] .seedancePromptInput.richPromptInput:focus {
  border-color: rgba(174, 121, 45, 0.5);
  background: rgba(255, 253, 247, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 0 0 3px rgba(174, 121, 45, 0.09);
}

html[data-theme="cream"] input::placeholder,
html[data-theme="cream"] textarea::placeholder,
html[data-theme="cream"] .seedancePromptInput::placeholder,
html[data-theme="cream"] .richPromptInput:empty::before {
  color: #9a8c7b;
}

html[data-theme="cream"] .richPromptInput {
  scrollbar-color: rgba(146, 109, 61, 0.68) rgba(116, 88, 52, 0.08);
}

html[data-theme="cream"] .richPromptInput::-webkit-scrollbar-track {
  background: rgba(116, 88, 52, 0.08);
}

html[data-theme="cream"] .richPromptInput::-webkit-scrollbar-thumb {
  background: rgba(146, 109, 61, 0.72);
  background-clip: padding-box;
}

html[data-theme="cream"] .outputLoading {
  background:
    radial-gradient(ellipse at 52% 52%, rgba(255, 196, 86, 0.2), transparent 16%),
    radial-gradient(ellipse at 34% 48%, rgba(238, 111, 45, 0.3), transparent 24%),
    radial-gradient(ellipse at 66% 54%, rgba(255, 196, 86, 0.42), transparent 25%),
    linear-gradient(115deg, #fff8ea 0%, #edd7af 50%, #fff3d8 100%);
}

html[data-theme="cream"] .outputLoading::before {
  background:
    conic-gradient(from 20deg at 50% 50%,
      transparent 0deg,
      rgba(214, 83, 26, 0.11) 42deg,
      rgba(202, 116, 23, 0.32) 88deg,
      rgba(255, 245, 215, 0.32) 122deg,
      transparent 166deg,
      transparent 360deg);
  box-shadow:
    0 0 30px rgba(202, 115, 24, 0.18),
    inset 0 0 26px rgba(255, 198, 82, 0.14);
}

html[data-theme="cream"] .outputLoading::after {
  border-color: rgba(178, 105, 18, 0.3);
  color: #9b4d00;
  background:
    linear-gradient(90deg, rgba(255, 232, 184, 0.5), rgba(255, 250, 238, 0.72), rgba(255, 232, 184, 0.5));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-theme="cream"] .outputLoading span {
  border-color: rgba(178, 105, 18, 0.2);
  color: #6f3900;
  background: rgba(255, 251, 241, 0.58);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="cream"] .outputLoading span::before {
  background: #d87800;
  box-shadow:
    0 0 10px rgba(216, 120, 0, 0.65),
    0 0 20px rgba(255, 190, 80, 0.48);
}

html[data-theme="cream"] .storyboardResult,
html[data-theme="cream"] .plotResult,
html[data-theme="cream"] .reverseResult {
  scrollbar-color: rgba(146, 109, 61, 0.72) rgba(116, 88, 52, 0.08);
}

html[data-theme="cream"] .storyboardResult::-webkit-scrollbar-track,
html[data-theme="cream"] .plotResult::-webkit-scrollbar-track,
html[data-theme="cream"] .reverseResult::-webkit-scrollbar-track {
  background: rgba(116, 88, 52, 0.08);
}

html[data-theme="cream"] .storyboardResult::-webkit-scrollbar-thumb,
html[data-theme="cream"] .plotResult::-webkit-scrollbar-thumb,
html[data-theme="cream"] .reverseResult::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(174, 133, 77, 0.88), rgba(106, 76, 39, 0.78));
  background-clip: padding-box;
}

html[data-theme="cream"] option {
  color: #2d302a;
  background: #fffaf0;
}

html[data-theme="cream"] select {
  background-image:
    linear-gradient(45deg, transparent 50%, #776b5d 50%),
    linear-gradient(135deg, #776b5d 50%, transparent 50%);
}

html[data-theme="cream"] .assetItem,
html[data-theme="cream"] .imageRow,
html[data-theme="cream"] .mediaMentionBar,
html[data-theme="cream"] .resultMeta,
html[data-theme="cream"] .videoSplitItem,
html[data-theme="cream"] .outputIdle,
html[data-theme="cream"] .outputLoading,
html[data-theme="cream"] .connectedImages,
html[data-theme="cream"] .storyboardPreview article,
html[data-theme="cream"] .batchResultPlaceholder,
html[data-theme="cream"] .storyboardPrompt {
  border-color: rgba(141, 111, 73, 0.2);
  background: rgba(255, 250, 240, 0.74);
}

html[data-theme="cream"] .storyboardPreview article,
html[data-theme="cream"] .storyboardPrompt,
html[data-theme="cream"] .plotPreview article:first-child {
  border-color: rgba(141, 111, 73, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(174, 121, 45, 0.12), transparent 38%),
    rgba(255, 250, 240, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 18px rgba(101, 78, 45, 0.1);
}

html[data-theme="cream"] .storyboardPreview p,
html[data-theme="cream"] .videoSplitItem span,
html[data-theme="cream"] .assetItemSub,
html[data-theme="cream"] .imageCardMeta,
html[data-theme="cream"] .resultMeta,
html[data-theme="cream"] .mentionEmpty,
html[data-theme="cream"] .seedanceMentionBar .mentionEmpty,
html[data-theme="cream"] .seedanceMentionBar .mentionType {
  color: #766f63;
}

html[data-theme="cream"] .resultError {
  color: #c54b45;
}

html[data-theme="cream"] .assetItem:hover,
html[data-theme="cream"] .assetItem.active {
  background: #fff8ec;
}

html[data-theme="cream"] .assetPreview,
html[data-theme="cream"] .imageThumb,
html[data-theme="cream"] .mentionThumb,
html[data-theme="cream"] .imageHero,
html[data-theme="cream"] .outputVideoPreview,
html[data-theme="cream"] .outputAudioPreview,
html[data-theme="cream"] .outputImagePreview,
html[data-theme="cream"] .outputPreview,
html[data-theme="cream"] .resultArea video {
  border-color: rgba(141, 111, 73, 0.22);
  color: #82715d;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.04), rgba(182, 132, 65, 0.1)),
    #efe3d0;
}

html[data-theme="cream"] .imageHero.loaded,
html[data-theme="cream"] .imageNode.loaded:not([data-manual-size="true"]) .imageHero,
html[data-theme="cream"] .imageNode:not([data-manual-size="true"]):has(.imageHero.loaded) .imageHero,
html[data-theme="cream"] .outputPreview.outputPreviewImage,
html[data-theme="cream"] .outputGalleryItem img {
  background: #fffaf0;
}

html[data-theme="cream"] .imageHero.resolving {
  border-color: rgba(182, 132, 65, 0.56);
  color: #8a642b;
  background:
    radial-gradient(circle at 30% 30%, rgba(182, 132, 65, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(17, 19, 24, 0.04), rgba(182, 132, 65, 0.12)),
    #fff6e7;
}

html[data-theme="cream"] .imageHero.resolving > span,
html[data-theme="cream"] .imageHero.videoReady > span {
  color: #5c4728;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 0 18px rgba(182, 132, 65, 0.16);
}

html[data-theme="cream"] .imageHero.broken,
html[data-theme="cream"] .imageRow.broken .imageThumb {
  background: #fff0e8;
}

html[data-theme="cream"] .seedanceSurface {
  background: #fffaf0;
}

html[data-theme="cream"] .generationModeSwitch {
  border-color: rgba(141, 111, 73, 0.18);
  background: rgba(116, 88, 52, 0.08);
}

html[data-theme="cream"] .generationModeSwitch::before {
  background: linear-gradient(180deg, #fffaf0, #efd7ad);
  box-shadow:
    0 8px 18px rgba(112, 78, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="cream"] .generationModeBtn {
  color: #6f6251;
}

html[data-theme="cream"] .generationModeBtn:hover {
  color: #2d302a;
}

html[data-theme="cream"] .generationModeBtn.active {
  color: #302313;
  background: transparent;
  box-shadow: none;
}

html[data-theme="cream"] .nodeQuickGenerateBtn,
html[data-theme="cream"] .nodeQuickStoryboardBtn,
html[data-theme="cream"] .nodeQuickReverseBtn,
html[data-theme="cream"] .nodeQuickCropBtn,
html[data-theme="cream"] .nodeQuickReplaceBtn,
html[data-theme="cream"] .nodeQuickLinkBtn {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fffaf0;
  background: #111318;
  box-shadow:
    0 0 0 1px rgba(80, 59, 34, 0.12),
    0 12px 28px rgba(101, 78, 45, 0.2),
    0 0 22px rgba(255, 255, 255, 0.46);
}

html[data-theme="cream"] .nodeQuickGenerateBtn small,
html[data-theme="cream"] .nodeQuickStoryboardBtn small,
html[data-theme="cream"] .nodeQuickReverseBtn small,
html[data-theme="cream"] .nodeQuickCropBtn small,
html[data-theme="cream"] .nodeQuickReplaceBtn small,
html[data-theme="cream"] .nodeQuickLinkBtn small {
  color: rgba(255, 250, 240, 0.68);
}

html[data-theme="cream"] .seedancePromptWrap,
html[data-theme="cream"] .promptActionsTop {
  background:
    radial-gradient(circle at 6% 12%, rgba(116, 88, 52, 0.08), transparent 32%),
    #fffaf0;
}

html[data-theme="cream"] .seedanceToolbar {
  border-color: rgba(141, 111, 73, 0.18);
  border-top-color: rgba(141, 111, 73, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(240, 225, 203, 0.96));
}

html[data-theme="cream"] .seedanceToolbarGroup {
  color: #4b4032;
}

html[data-theme="cream"] .seedanceToolbarGroup > span,
html[data-theme="cream"] .seedanceToggleGroup > span,
html[data-theme="cream"] .seedanceToolIcon {
  color: #4b4032;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

html[data-theme="cream"] .seedanceInlineInput,
html[data-theme="cream"] .seedanceInlineSelect {
  min-height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid rgba(132, 102, 63, 0.2);
  border-radius: 9px;
  color: #363025;
  background-color: rgba(255, 252, 245, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 4px 10px rgba(111, 80, 44, 0.08);
}

html[data-theme="cream"] .seedanceInlineInput:focus,
html[data-theme="cream"] .seedanceInlineSelect:focus {
  border-color: rgba(146, 109, 61, 0.52);
  background-color: #fffdf7;
  box-shadow:
    0 0 0 3px rgba(146, 109, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="cream"] .seedanceInlineSelect {
  background-image:
    linear-gradient(45deg, transparent 50%, #6f5535 50%),
    linear-gradient(135deg, #6f5535 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% - 1px), calc(100% - 8px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

html[data-theme="cream"] .seedanceToggleGroup input {
  accent-color: #111318;
  filter: drop-shadow(0 1px 1px rgba(111, 80, 44, 0.16));
}

html[data-theme="cream"] .seedanceMentionBar .mentionType,
html[data-theme="cream"] .mentionChip,
html[data-theme="cream"] .inlineMentionThumb {
  border-color: rgba(116, 88, 52, 0.24);
  color: #5c4728;
  background: rgba(116, 88, 52, 0.1);
}

html[data-theme="cream"] .mentionAutocomplete {
  border-color: rgba(141, 111, 73, 0.24);
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 18px 44px rgba(101, 78, 45, 0.18);
}

html[data-theme="cream"] .mentionAutocompleteItem {
  color: #4d3920;
}

html[data-theme="cream"] .mentionAutocompleteItem:hover,
html[data-theme="cream"] .mentionAutocompleteItem.active {
  border-color: rgba(174, 121, 45, 0.36);
  background: rgba(174, 121, 45, 0.12);
}

html[data-theme="cream"] .mentionAutocompleteText small,
html[data-theme="cream"] .mentionAutocompleteEmpty {
  color: #8b7b67;
}

html[data-theme="cream"] .inlineMentionRemove {
  color: #fffaf0;
  background: #be6d51;
}

html[data-theme="cream"] .fieldHeader button,
html[data-theme="cream"] .imageRow button,
html[data-theme="cream"] .generateBtn,
html[data-theme="cream"] .seedanceSendBtn,
html[data-theme="cream"] .storyboardBtn,
html[data-theme="cream"] .storyboardCopyBtn,
html[data-theme="cream"] .plotBtn,
html[data-theme="cream"] .plotCopyBtn,
html[data-theme="cream"] .silhouetteBtn,
html[data-theme="cream"] .audioExtractBtn,
html[data-theme="cream"] .poseBtn,
html[data-theme="cream"] .videoSplitBtn,
html[data-theme="cream"] .imageGenBtn,
html[data-theme="cream"] .mediaUrlBtn,
html[data-theme="cream"] .mediaStoryboardBtn {
  border-color: rgba(116, 88, 52, 0.24);
  color: #211b13;
  background: linear-gradient(135deg, #fff7e8, #e8d5b9);
  box-shadow: 0 8px 18px rgba(101, 78, 45, 0.12);
}

html[data-theme="cream"] .mediaStoryboardBtn {
  border-color: rgba(174, 121, 45, 0.34);
  color: #5f4218;
  background: linear-gradient(135deg, #fff1cc, #dab576);
}

html[data-theme="cream"] .generateBtn:disabled,
html[data-theme="cream"] .seedanceSendBtn:disabled {
  color: #5a655f;
  background-image: linear-gradient(90deg, #d6c8b5, #fff7e9, #d6c8b5);
}

html[data-theme="night"] .seedanceSendBtn,
html[data-theme="night"] .imageGenBtn.seedanceSendBtn {
  width: 56px;
  min-width: 56px;
  height: 28px;
  color: #111214;
  background: #f4f5f6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme="cream"] .port {
  border-color: #ffffff;
  background: rgba(6, 7, 8, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(255, 255, 255, 0.62),
    0 5px 14px rgba(94, 68, 38, 0.16);
}

html[data-theme="cream"] .port:hover,
html[data-theme="cream"] .canvasWindow.connecting .outputPort {
  border-color: #ffffff;
  background: #000000;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 255, 255, 0.82),
    0 5px 14px rgba(94, 68, 38, 0.16);
}

html[data-theme="cream"] .edgeDeleteBtn {
  border-color: rgba(141, 111, 73, 0.28);
  color: #4d4235;
  background: rgba(255, 250, 240, 0.95);
  box-shadow: 0 6px 16px rgba(94, 68, 38, 0.18);
}

html[data-theme="cream"] .edgeDeleteBtn:hover {
  border-color: rgba(182, 132, 65, 0.72);
  color: #8a642b;
  background: #fff4df;
}

html[data-theme="cream"] .edgeBase {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.42));
  stroke: rgba(7, 8, 9, 0.96);
  stroke-width: 2.5;
}

html[data-theme="cream"] .edgeFlow {
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.46));
  stroke: #ffffff;
  stroke-width: 1.7;
}

html[data-theme="cream"] .edgeLightningGlow {
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.34));
  opacity: 0.48;
  stroke: rgba(255, 255, 255, 0.78);
}

html[data-theme="cream"] .edgeLightning {
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 1))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  stroke: #ffffff;
}

html[data-theme="cream"] .edgeGroup.selected .edgeBase,
html[data-theme="cream"] .edgeGroup.selected .edgeFlow,
html[data-theme="cream"] .edgeGroup.selected .edgeLightning,
html[data-theme="cream"] .edge.draft {
  stroke: #ffffff;
}

html[data-theme="cream"] .edgeGroup.selected .edgeBase,
html[data-theme="cream"] .edge.draft {
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 1))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.52));
  stroke: rgba(0, 0, 0, 0.98);
  stroke-width: 3;
}

html[data-theme="cream"] .connectionMenu,
html[data-theme="cream"] .toast {
  border-color: rgba(141, 111, 73, 0.22);
  color: #2d302a;
  background: rgba(255, 250, 240, 0.96);
}

html[data-theme="cream"] .assetLightboxStage {
  color: #eff3ee;
  background: transparent;
}

html[data-theme="cream"] .connectionMenu button,
html[data-theme="cream"] .connectionMenu [role="button"] {
  color: #2d302a;
  background: transparent;
}

html[data-theme="cream"] .assetLightboxBackdrop {
  background: rgba(5, 6, 7, 0.82);
}

html[data-theme="cream"] .assetHistoryList {
  scrollbar-color: rgba(174, 135, 82, 0.7) rgba(91, 69, 43, 0.08);
}

html[data-theme="cream"] .assetHistoryList::-webkit-scrollbar-track {
  background: rgba(91, 69, 43, 0.08);
}

html[data-theme="cream"] .assetHistoryList::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(198, 154, 82, 0.9), rgba(117, 157, 139, 0.85));
  background-clip: padding-box;
}

html[data-theme="cream"] .authOverlay {
  --auth-accent: #d7a35a;
  --auth-accent-2: #f0cf91;
  --auth-accent-rgb: 215, 163, 90;
  --auth-accent-soft-rgb: 240, 207, 145;
  --auth-warm: #fff0bf;
  --auth-warm-rgb: 255, 224, 154;
  --auth-focus-rgb: 215, 163, 90;
  background:
    radial-gradient(circle at 82% 10%, rgba(var(--auth-accent-rgb), 0.18), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(var(--auth-warm-rgb), 0.08), transparent 18%),
    linear-gradient(180deg, #101218, #0b0d12);
}

html[data-theme="cream"] .authFluidCanvas {
  opacity: 0.28;
  filter: saturate(0.88) contrast(0.92) sepia(0.06);
}

html[data-theme="cream"] .authBackdrop::after {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(12, 10, 8, 0.74) 0%, rgba(12, 10, 8, 0.62) 30%, rgba(12, 10, 8, 0.16) 54%, transparent 74%),
    linear-gradient(90deg, rgba(24, 17, 10, 0.08), transparent 24%, transparent 76%, rgba(24, 17, 10, 0.08));
}

html[data-theme="cream"] .authShell {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[data-theme="cream"] .authShowcase {
  background: transparent;
}

html[data-theme="cream"] .authCard {
  color: #f5f7f8;
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 62% 18%, rgba(var(--auth-warm-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 20, 27, 0.78), rgba(12, 14, 20, 0.88));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-theme="cream"] .authForm label,
html[data-theme="cream"] .authField span,
html[data-theme="cream"] .authCardHeader span,
html[data-theme="cream"] .authHint {
  color: rgba(226, 231, 236, 0.66);
}

html[data-theme="cream"] .authForm input,
html[data-theme="cream"] .authField input {
  border-color: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

html[data-theme="cream"] .authForm input:focus,
html[data-theme="cream"] .authField input:focus {
  border-color: rgba(var(--auth-focus-rgb), 0.3);
  box-shadow: 0 0 0 4px rgba(var(--auth-focus-rgb), 0.14);
}

html[data-theme="cream"] .authTabs {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

html[data-theme="cream"] .authTabs button {
  color: rgba(235, 241, 245, 0.72);
  background: transparent;
}

html[data-theme="cream"] .authTabs button.active,
html[data-theme="cream"] .authForm button {
  color: #07100f;
  background: transparent;
}

html[data-theme="cream"] .authForm button {
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
}

html[data-theme="cream"] .authStatus {
  color: #ffcf98;
}

html[data-theme="cream"] .seedanceNode .seedanceToolbar .seedanceInlineInput,
html[data-theme="cream"] .seedanceNode .seedanceToolbar .seedanceInlineSelect,
html[data-theme="cream"] .imageGenNode .seedanceToolbar .seedanceInlineInput,
html[data-theme="cream"] .imageGenNode .seedanceToolbar .seedanceInlineSelect {
  min-height: 30px !important;
  padding: 0 26px 0 10px !important;
  border: 1px solid rgba(132, 102, 63, 0.2) !important;
  border-radius: 9px !important;
  color: #363025 !important;
  background-color: rgba(255, 252, 245, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(111, 80, 44, 0.08) !important;
}

html[data-theme="cream"] .seedanceNode .seedanceToolbar .seedanceInlineSelect,
html[data-theme="cream"] .imageGenNode .seedanceToolbar .seedanceInlineSelect {
  appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f5535 50%),
    linear-gradient(135deg, #6f5535 50%, transparent 50%) !important;
  background-position: calc(100% - 13px) calc(50% - 1px), calc(100% - 8px) calc(50% - 1px) !important;
  background-repeat: no-repeat !important;
  background-size: 5px 5px, 5px 5px !important;
}

html[data-theme="cream"] .seedanceNode .seedanceToolbar .seedanceToolbarGroup,
html[data-theme="cream"] .imageGenNode .seedanceToolbar .seedanceToolbarGroup,
html[data-theme="cream"] .seedanceNode .seedanceToolbar .seedanceToolbarGroup > span,
html[data-theme="cream"] .imageGenNode .seedanceToolbar .seedanceToolbarGroup > span {
  color: #3c3429 !important;
}

.imageGenNode .seedanceToolbar {
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-gutter: auto;
}

.imageGenNode .imageGenModelInput.seedanceInlineSelect {
  width: clamp(180px, 28vw, 240px) !important;
  min-width: 180px !important;
}

.imageGenNode .imageGenBatchCountInput.seedanceInlineSelect {
  width: 94px !important;
  min-width: 94px !important;
}

.imageGenNode .imageGenSizeInput.seedanceInlineSelect,
.imageGenNode .imageGenCustomSizePresetInput.seedanceInlineSelect {
  width: clamp(136px, 18vw, 166px) !important;
  min-width: 136px !important;
}

.imageGenNode .imageGenCustomSizeInput.seedanceInlineInput {
  width: 150px !important;
  min-width: 150px !important;
}

html[data-theme="night"] .seedanceNode .seedanceToolbar .seedanceInlineInput,
html[data-theme="night"] .seedanceNode .seedanceToolbar .seedanceInlineSelect,
html[data-theme="night"] .imageGenNode .seedanceToolbar .seedanceInlineInput,
html[data-theme="night"] .imageGenNode .seedanceToolbar .seedanceInlineSelect {
  border: 1px solid rgba(226, 232, 240, 0.18) !important;
  border-radius: 10px !important;
  color: #f6f2e8 !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="night"] .seedanceNode .seedanceToolbar .seedanceInlineInput:focus,
html[data-theme="night"] .seedanceNode .seedanceToolbar .seedanceInlineSelect:focus,
html[data-theme="night"] .imageGenNode .seedanceToolbar .seedanceInlineInput:focus,
html[data-theme="night"] .imageGenNode .seedanceToolbar .seedanceInlineSelect:focus {
  border-color: rgba(255, 213, 107, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.085) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(255, 213, 107, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.rechargeModal[hidden] {
  display: none !important;
}

.rechargeModal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 28px;
}

.rechargeBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(120, 202, 255, 0.26), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(255, 185, 96, 0.22), transparent 28%),
    rgba(3, 5, 10, 0.62);
  backdrop-filter: blur(14px);
}

.rechargeShell {
  position: relative;
  width: min(1220px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  color: #1e2a33;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)),
    radial-gradient(circle at 18% 18%, rgba(118, 217, 255, 0.2), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(255, 209, 132, 0.34), transparent 30%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: rechargePop 260ms cubic-bezier(.2, .9, .22, 1.08);
}

@keyframes rechargePop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rechargeCloseBtn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #55636e;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(35, 48, 58, 0.12);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.rechargeCloseBtn:hover {
  transform: rotate(8deg) scale(1.06);
  color: #17202a;
  background: #ffffff;
}

.rechargeHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 32px 10px;
}

.rechargeHeader h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.rechargeHeader p {
  margin: 8px 0 0;
  color: rgba(30, 42, 51, 0.66);
  font-size: 15px;
}

.rechargeSortHint {
  flex: 0 0 auto;
  margin: 4px 42px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(38, 119, 151, 0.14);
  border-radius: 999px;
  color: #22647b;
  background: rgba(226, 248, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.rechargeRules {
  display: none !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 32px 14px;
}

.rechargeRules strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff3df;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 236, 174, 0.34), transparent 38%),
    linear-gradient(135deg, rgba(255, 127, 52, 0.96), rgba(219, 83, 27, 0.96));
  box-shadow: 0 12px 26px rgba(220, 91, 34, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rechargeRules span {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(36, 51, 60, 0.74);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(42, 69, 82, 0.07);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}

.rechargePackageGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 32px 12px;
}

.rechargePackageSection {
  display: grid;
  gap: 6px;
}

.rechargeSectionTitle {
  margin: 0;
  padding-left: 2px;
  color: rgba(24, 35, 44, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rechargeSectionCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rechargeCard {
  position: relative;
  min-height: 126px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 22px;
  color: #17202a;
  background: #eef8ff;
  box-shadow:
    0 18px 42px rgba(31, 48, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rechargeCard::before {
  content: "";
  position: absolute;
  inset: auto -30px -48px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.rechargeCard:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 52px rgba(31, 48, 62, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rechargeCard-image {
  background: linear-gradient(145deg, #e9f7ff, #cbeefe);
}

.rechargeCard-video {
  background: linear-gradient(145deg, #fff2ce, #ffd89a);
}

.rechargeCard-credits {
  background: linear-gradient(145deg, #ecfff4, #bdf3d3);
}

.rechargeCardBadge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(18, 31, 42, 0.68);
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.rechargeCardIcon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f2a36, #435568);
  box-shadow: 0 14px 28px rgba(20, 30, 40, 0.22);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.rechargeCard h3 {
  margin: 8px 42px 12px 0;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.rechargeModelTitle {
  margin: 12px 42px 0 0;
  color: rgba(21, 32, 43, 0.72);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rechargeCard p {
  min-height: 34px;
  margin: 0 0 14px;
  color: rgba(24, 35, 44, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.rechargeCard .rechargeBenefitText {
  min-height: 0;
  margin: -6px 42px 10px 0;
  color: rgba(21, 32, 43, 0.66);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

.rechargeCustomCreditField {
  display: grid;
  gap: 4px;
  margin: 8px 0 9px;
  color: rgba(24, 35, 44, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.rechargeCustomCreditInput {
  width: 100%;
  height: 31px;
  box-sizing: border-box;
  border: 1px solid rgba(21, 32, 43, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  font-size: 15px;
  font-weight: 900;
}

.rechargeCustomCreditInput:focus {
  border-color: rgba(31, 42, 54, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.rechargeBuyBtn {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #141b23, #334557);
  box-shadow: 0 14px 24px rgba(21, 30, 40, 0.2);
  cursor: pointer;
  font-weight: 850;
  transition: transform 150ms ease, filter 150ms ease;
}

.rechargeBuyBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.rechargeStatus {
  min-height: 18px;
  padding: 0 32px 6px;
  color: rgba(29, 44, 55, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.rechargeStatusActions {
  display: flex;
  justify-content: center;
  padding: 0 32px 8px;
}

.rechargeRefreshBtn {
  height: 32px;
  padding: 0 18px;
  border: 1px solid rgba(29, 44, 55, 0.16);
  border-radius: 999px;
  color: rgba(29, 44, 55, 0.82);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.rechargeRefreshBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 44, 55, 0.28);
  background: rgba(255, 255, 255, 0.76);
}

.rechargeRefreshBtn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.rechargeFooter {
  padding: 0 32px 18px;
  color: rgba(29, 44, 55, 0.52);
  font-size: 12px;
}

.rechargeEmpty {
  grid-column: 1 / -1;
  padding: 42px;
  border-radius: 24px;
  color: rgba(29, 44, 55, 0.62);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

html[data-theme="cream"] .rechargeBackdrop {
  background:
    radial-gradient(circle at 24% 18%, rgba(214, 156, 79, 0.22), transparent 24%),
    radial-gradient(circle at 76% 82%, rgba(117, 87, 52, 0.18), transparent 28%),
    rgba(40, 31, 22, 0.42);
}

html[data-theme="cream"] .rechargeShell {
  color: #342d24;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(251, 240, 220, 0.94)),
    radial-gradient(circle at 20% 18%, rgba(226, 174, 91, 0.22), transparent 32%);
}

html[data-theme="cream"] .rechargeRules strong {
  color: #fff8ec;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 238, 181, 0.38), transparent 38%),
    linear-gradient(135deg, rgba(205, 120, 48, 0.96), rgba(142, 88, 42, 0.96));
  box-shadow: 0 12px 26px rgba(142, 88, 42, 0.16);
}

html[data-theme="cream"] .rechargeRules span {
  color: rgba(57, 48, 35, 0.82);
  background: rgba(255, 249, 237, 0.78);
  box-shadow: inset 0 0 0 1px rgba(141, 111, 73, 0.12);
}

@media (max-width: 1120px) {
  .rechargeSectionCards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rechargeCard {
    min-height: 118px;
  }
}

@media (max-width: 760px) {
  .rechargeHeader {
    flex-direction: column;
    padding: 32px 24px 16px;
  }

  .rechargeSortHint {
    margin: 0;
  }

  .rechargeRules,
  .rechargePackageGrid,
  .rechargeStatus,
  .rechargeFooter {
    padding-left: 24px;
    padding-right: 24px;
  }

  .rechargePackageGrid {
    grid-template-columns: 1fr;
  }

  .rechargeSectionCards {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .rechargeModal {
    align-items: start;
    padding-top: 14px;
  }

  .rechargeShell {
    transform-origin: top center;
    scale: 0.86;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topActions {
    flex-wrap: wrap;
  }

  .canvasWindow {
    width: min(430px, calc(100vw - 28px));
  }
}
