body[data-comic-drama-style] {
  color: #eef8ff;
  background:
    radial-gradient(circle at 72% 16%, rgba(94, 129, 255, 0.12), transparent 30%),
    radial-gradient(circle at 20% 78%, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, #030712 0%, #050816 46%, #02040a 100%),
    #02040a !important;
}

body[data-comic-drama-style] #root {
  background: transparent !important;
  min-height: 100vh;
}

body[data-comic-drama-style] .comic-drama-agent-surface,
body[data-comic-drama-style] #root > div[style*="background"],
body[data-comic-drama-style] #root > div[style*="background-color"] {
  background:
    radial-gradient(circle at 9% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2.2px),
    radial-gradient(circle at 38% 42%, rgba(147, 197, 253, 0.58) 0 1px, transparent 2.4px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.74) 0 1px, transparent 2.2px),
    radial-gradient(circle at 62% 78%, rgba(191, 219, 254, 0.46) 0 1px, transparent 2.4px),
    radial-gradient(circle at 74% 20%, rgba(70, 91, 255, 0.12), transparent 30%),
    radial-gradient(circle at 22% 76%, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, #030712 0%, #050816 52%, #02040a 100%),
    #02040a !important;
  background-size:
    180px 146px,
    230px 188px,
    286px 232px,
    340px 276px,
    auto,
    auto,
    auto,
    auto !important;
  background-position:
    18px 24px,
    44px 72px,
    0 0,
    90px 44px,
    center,
    center,
    center,
    center !important;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.52);
}

body[data-comic-drama-style] #root main[style],
body[data-comic-drama-style] #root section[style],
body[data-comic-drama-style] #root aside[style] {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body[data-comic-drama-style] #root .ant-layout,
body[data-comic-drama-style] #root .ant-layout-content,
body[data-comic-drama-style] #root .ant-layout-header,
body[data-comic-drama-style] #root .ant-layout-sider {
  background: transparent !important;
}

body[data-comic-drama-style] #root .ant-card,
body[data-comic-drama-style] #root .ant-modal-content,
body[data-comic-drama-style] #root .ant-drawer-content,
body[data-comic-drama-style] #root .ant-table-wrapper .ant-table,
body[data-comic-drama-style] #root .ant-list-item {
  background: rgba(3, 8, 16, 0.82) !important;
  border-color: rgba(147, 197, 253, 0.16) !important;
  color: #eef8ff !important;
}

body[data-comic-drama-style] #root .ant-card-head,
body[data-comic-drama-style] #root .ant-card-bordered,
body[data-comic-drama-style] #root .ant-table-thead > tr > th,
body[data-comic-drama-style] #root .ant-table-tbody > tr > td {
  background: rgba(3, 8, 16, 0.62) !important;
  border-color: rgba(147, 197, 253, 0.14) !important;
  color: #eef8ff !important;
}

body[data-comic-drama-style] #root .ant-table-tbody > tr.ant-table-row:hover > td {
  background: rgba(18, 54, 74, 0.72) !important;
}

body[data-comic-drama-style] #root .ant-typography,
body[data-comic-drama-style] #root .ant-card-head-title,
body[data-comic-drama-style] #root .ant-form-item-label > label,
body[data-comic-drama-style] #root .ant-table {
  color: #eef8ff !important;
}

body[data-comic-drama-style] #root .ant-typography-secondary,
body[data-comic-drama-style] #root .ant-empty-description {
  color: rgba(218, 238, 244, 0.68) !important;
}

body[data-comic-drama-style] #root .ant-input,
body[data-comic-drama-style] #root .ant-input-affix-wrapper,
body[data-comic-drama-style] #root .ant-select-selector {
  background: rgba(3, 8, 16, 0.72) !important;
  border-color: rgba(147, 197, 253, 0.2) !important;
  color: #eef8ff !important;
}

body[data-comic-drama-style] #root .ant-input::placeholder,
body[data-comic-drama-style] #root textarea::placeholder {
  color: rgba(218, 238, 244, 0.45) !important;
}

body[data-comic-drama-style] #root .ant-btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
  border-color: rgba(147, 197, 253, 0.38) !important;
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.18);
}

body[data-comic-drama-style] #root aside[style*="background"],
body[data-comic-drama-style] #root div[style*="background-color: rgb(13, 19, 32)"],
body[data-comic-drama-style] #root div[style*="background-color: rgb(10, 15, 28)"] {
  background: rgba(3, 8, 16, 0.82) !important;
}

body[data-comic-drama-style] #root div[style*="background-color: rgb(26, 35, 50)"],
body[data-comic-drama-style] #root div[style*="background-color: rgb(30, 41, 59)"] {
  background: rgba(13, 30, 46, 0.72) !important;
  border-color: rgba(147, 197, 253, 0.18) !important;
}

body[data-comic-drama-style] #root input,
body[data-comic-drama-style] #root textarea {
  caret-color: #93c5fd;
}

body[data-comic-drama-style] #root button:focus-visible,
body[data-comic-drama-style] #root input:focus-visible,
body[data-comic-drama-style] #root textarea:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.56);
  outline-offset: 2px;
}

body[data-comic-drama-page="editor"] #root > div,
body[data-comic-drama-page="editor"] #root > div[style*="background"],
body[data-comic-drama-page="editor"] #root > div[style*="background-color"] {
  background:
    radial-gradient(circle at 9% 18%, rgba(233, 253, 255, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 44%, rgba(233, 253, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(233, 253, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 44%, rgba(23, 141, 157, 0.34), transparent 34%),
    radial-gradient(circle at 30% 20%, rgba(70, 91, 255, 0.16), transparent 26%),
    #02040a !important;
  background-size:
    92px 92px,
    137px 137px,
    210px 168px,
    auto,
    auto !important;
  background-position:
    18px 24px,
    44px 72px,
    82px 36px,
    center,
    center !important;
  animation: comic-drama-agent-editor-stars 56s linear infinite, comic-drama-agent-editor-breathe 18s ease-in-out infinite alternate;
}

body[data-comic-drama-page="editor"] #root div[style*="background-color: rgb(10, 15, 28)"],
body[data-comic-drama-page="editor"] #root div[style*="background: rgb(10, 15, 28)"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: #0a0f1c"] {
  background:
    radial-gradient(circle at 18% 22%, rgba(233, 253, 255, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 44%, rgba(116, 247, 255, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(3, 8, 16, 0.92), rgba(5, 14, 24, 0.94)) !important;
  background-size: 220px 180px, 300px 240px, auto !important;
}

body[data-comic-drama-page="editor"] #root div[style*="background-color: rgb(13, 19, 32)"],
body[data-comic-drama-page="editor"] #root div[style*="background: rgb(13, 19, 32)"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: #0d1320"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: rgb(26, 35, 50)"],
body[data-comic-drama-page="editor"] #root div[style*="background: rgb(26, 35, 50)"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: #1a2332"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: rgb(30, 41, 59)"],
body[data-comic-drama-page="editor"] #root div[style*="background: rgb(30, 41, 59)"],
body[data-comic-drama-page="editor"] #root div[style*="background-color: #1e293b"] {
  background:
    linear-gradient(145deg, rgba(17, 42, 56, 0.76), rgba(5, 14, 24, 0.88)) !important;
  border-color: rgba(116, 247, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 48px rgba(0, 0, 0, 0.16);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

body[data-comic-drama-page="editor"] #root button:not(.ant-btn),
body[data-comic-drama-page="editor"] #root .ant-btn {
  border-color: rgba(116, 247, 255, 0.22) !important;
  background:
    linear-gradient(145deg, rgba(17, 42, 56, 0.34), rgba(5, 14, 24, 0.44)) !important;
  color: #dcecf4 !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.16);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body[data-comic-drama-page="editor"] #root button:not(.ant-btn):hover,
body[data-comic-drama-page="editor"] #root .ant-btn:hover {
  border-color: rgba(116, 247, 255, 0.36) !important;
  background:
    linear-gradient(145deg, rgba(17, 42, 56, 0.48), rgba(8, 18, 31, 0.6)) !important;
  color: #eef8ff !important;
  box-shadow: 0 14px 34px rgba(81, 229, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body[data-comic-drama-page="editor"] #root .ant-btn-primary,
body[data-comic-drama-page="editor"] #root button[style*="linear-gradient"] {
  border-color: rgba(116, 247, 255, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(17, 42, 56, 0.58), rgba(5, 14, 24, 0.72)) !important;
  color: #e9f6ff !important;
  box-shadow: 0 12px 32px rgba(81, 229, 255, 0.1);
}

body[data-comic-drama-page="editor"] #root button:not(.ant-btn):active,
body[data-comic-drama-page="editor"] #root .ant-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.18);
}

body[data-comic-drama-page="editor"] #root,
body[data-comic-drama-page="editor"] #root .ant-typography,
body[data-comic-drama-page="editor"] #root .ant-card,
body[data-comic-drama-page="editor"] #root .ant-table,
body[data-comic-drama-page="editor"] #root .ant-drawer,
body[data-comic-drama-page="editor"] #root .ant-modal {
  color: #eef8ff !important;
}

body[data-comic-drama-page="editor"] #root p,
body[data-comic-drama-page="editor"] #root label,
body[data-comic-drama-page="editor"] #root span,
body[data-comic-drama-page="editor"] #root div[style*="color: rgb(100, 116, 139)"],
body[data-comic-drama-page="editor"] #root div[style*="color: #64748b"],
body[data-comic-drama-page="editor"] #root span[style*="color: rgb(100, 116, 139)"],
body[data-comic-drama-page="editor"] #root span[style*="color: #64748b"] {
  color: #91a6b8 !important;
}

body[data-comic-drama-page="editor"] #root h1,
body[data-comic-drama-page="editor"] #root h2,
body[data-comic-drama-page="editor"] #root h3,
body[data-comic-drama-page="editor"] #root strong,
body[data-comic-drama-page="editor"] #root div[style*="color: rgb(226, 232, 240)"],
body[data-comic-drama-page="editor"] #root div[style*="color: #e2e8f0"],
body[data-comic-drama-page="editor"] #root span[style*="color: rgb(226, 232, 240)"],
body[data-comic-drama-page="editor"] #root span[style*="color: #e2e8f0"] {
  color: #eef8ff !important;
}

body[data-comic-drama-page="editor"] #root [style*="border"],
body[data-comic-drama-page="editor"] #root .ant-card,
body[data-comic-drama-page="editor"] #root .ant-card-head,
body[data-comic-drama-page="editor"] #root .ant-tabs-nav,
body[data-comic-drama-page="editor"] #root .ant-table,
body[data-comic-drama-page="editor"] #root .ant-table-cell {
  border-color: rgba(116, 247, 255, 0.14) !important;
}

body[data-comic-drama-page="editor"] #root input,
body[data-comic-drama-page="editor"] #root textarea,
body[data-comic-drama-page="editor"] #root .ant-input,
body[data-comic-drama-page="editor"] #root .ant-input-affix-wrapper,
body[data-comic-drama-page="editor"] #root .ant-select-selector {
  background: rgba(5, 14, 24, 0.62) !important;
  border-color: rgba(116, 247, 255, 0.18) !important;
  color: #eef8ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-comic-drama-page="editor"] #root input::placeholder,
body[data-comic-drama-page="editor"] #root textarea::placeholder,
body[data-comic-drama-page="editor"] #root .ant-input::placeholder {
  color: rgba(145, 166, 184, 0.7) !important;
}

body[data-comic-drama-page="editor"] #root .ant-card,
body[data-comic-drama-page="editor"] #root .ant-card-head,
body[data-comic-drama-page="editor"] #root .ant-drawer-content,
body[data-comic-drama-page="editor"] #root .ant-modal-content,
body[data-comic-drama-page="editor"] #root .ant-table,
body[data-comic-drama-page="editor"] #root .ant-table-thead > tr > th,
body[data-comic-drama-page="editor"] #root .ant-table-tbody > tr > td,
body[data-comic-drama-page="editor"] #root .ant-list-item {
  background: linear-gradient(145deg, rgba(17, 42, 56, 0.62), rgba(5, 14, 24, 0.82)) !important;
  border-color: rgba(116, 247, 255, 0.14) !important;
}

body[data-comic-drama-page="editor"] #root .ant-table-tbody > tr.ant-table-row:hover > td,
body[data-comic-drama-page="editor"] #root [style*="background-color: rgba(34, 211, 238"],
body[data-comic-drama-page="editor"] #root [style*="background: rgba(34, 211, 238"],
body[data-comic-drama-page="editor"] #root [style*="background-color: rgba(167, 139, 250"],
body[data-comic-drama-page="editor"] #root [style*="background: rgba(167, 139, 250"] {
  background: rgba(17, 42, 56, 0.58) !important;
  border-color: rgba(116, 247, 255, 0.22) !important;
  color: #eef8ff !important;
}

body[data-comic-drama-page="editor"] #root > div > div[style*="display: flex"][style*="overflow: hidden"] > div[style*="min-width: 400"] {
  min-width: 680px !important;
  flex: 1 1 auto !important;
}

body[data-comic-drama-page="editor"] #root > div > div[style*="display: flex"][style*="overflow: hidden"] > div[style*="max-width: 600"] {
  width: 340px !important;
  min-width: 300px !important;
  max-width: 380px !important;
}

body[data-comic-drama-page="editor"] #root table[style*="min-width: 1320px"] {
  min-width: 1120px !important;
  table-layout: fixed !important;
}

body[data-comic-drama-page="editor"] #root th[style*="width: 28%"],
body[data-comic-drama-page="editor"] #root td[style*="width: 35%"] {
  width: 44% !important;
}

body[data-comic-drama-page="editor"] #root th[style*="width: 145px"],
body[data-comic-drama-page="editor"] #root th[style*="width: 160px"],
body[data-comic-drama-page="editor"] #root td[style*="width: 145px"],
body[data-comic-drama-page="editor"] #root td[style*="width: 160px"] {
  width: 112px !important;
  max-width: 112px !important;
}

body[data-comic-drama-page="editor"] #root td[style*="width: 145px"] [style*="aspect-ratio"],
body[data-comic-drama-page="editor"] #root td[style*="width: 160px"] [style*="aspect-ratio"],
body[data-comic-drama-page="editor"] #root td[style*="width: 145px"] img,
body[data-comic-drama-page="editor"] #root td[style*="width: 160px"] img {
  max-height: 74px !important;
}

body[data-comic-drama-page="editor"] #root textarea[style*="min-height: 58px"],
body[data-comic-drama-page="editor"] #root textarea[style*="min-height: 48px"] {
  min-height: 96px !important;
  width: 100% !important;
  line-height: 1.65 !important;
}

@media (max-width: 1180px) {
  body[data-comic-drama-page="editor"] #root > div > div[style*="display: flex"][style*="overflow: hidden"] > div[style*="min-width: 400"] {
    min-width: 560px !important;
  }

  body[data-comic-drama-page="editor"] #root > div > div[style*="display: flex"][style*="overflow: hidden"] > div[style*="max-width: 600"] {
    width: 300px !important;
  }
}

@keyframes comic-drama-agent-editor-stars {
  0% {
    background-position:
      18px 24px,
      44px 72px,
      82px 36px,
      center,
      center;
  }
  100% {
    background-position:
      110px 116px,
      181px 209px,
      292px 204px,
      center,
      center;
  }
}

@keyframes comic-drama-agent-editor-breathe {
  0% {
    filter: saturate(1) brightness(1);
  }
  100% {
    filter: saturate(1.08) brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-comic-drama-page="editor"] #root > div,
  body[data-comic-drama-page="editor"] #root > div[style*="background"],
  body[data-comic-drama-page="editor"] #root > div[style*="background-color"],
  body[data-comic-drama-page="editor"] #root button:not(.ant-btn),
  body[data-comic-drama-page="editor"] #root .ant-btn {
    animation: none !important;
    transition: none !important;
  }
}

body[data-comic-drama-style] .comic-agent-page {
  min-height: 100dvh !important;
  overflow: hidden !important;
}

body[data-comic-drama-style] .comic-agent-page main {
  overflow-y: hidden !important;
  overscroll-behavior-y: contain !important;
}

body[data-comic-drama-style] .comic-agent-page .task-feed {
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch;
}

body[data-comic-drama-style] .comic-agent-page .task-shell {
  height: calc(100dvh - 80px) !important;
}

@media (max-width: 900px) {
  body[data-comic-drama-style] .comic-agent-page .task-shell {
    height: calc(100dvh - 72px) !important;
  }
}
