/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", sans-serif;
  --bg: #111213;
  --ink: #e9f6ff;
  --muted: #9aa6b2;
  --accent: #4fb2ee;
  --accent-dark: #1b7fbd;
  --panel: #141414;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #111213;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: #4aaeea #0d0d0d;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #111213;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3aa7ff 0%, #6ad2ff 100%);
  border: 2px solid #111213;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #48b4ff 0%, #7ad6ff 100%);
}

body::before,
body::after {
  display: none;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background: #111213;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-shell-home {
  background-color: #050a20;
  background-image: url("/images/home/index-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  height: 56px;
  background: rgba(17, 18, 19, 0.92);
  border-bottom: 1px solid #1f1f1f;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.top-bar-home {
  height: 82px;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid rgba(145, 185, 255, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, #7ad3ff 0%, #5ebdff 45%, #8ddcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  border-radius: 999px;
  filter: drop-shadow(0 0 12px rgba(122, 211, 255, 0.5));
}

.brand span {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: inherit;
}

.brand-home {
  color: #f0f7ff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.brand-home span {
  color: #f0f7ff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 26px;
  letter-spacing: 1.2px;
  font-weight: 800;
  text-shadow:
    0 2px 8px rgba(5, 16, 46, 0.75),
    0 0 14px rgba(154, 214, 255, 0.3);
}

.top-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-nav-home a,
.top-nav-home button {
  background: transparent;
  border: 1px solid transparent;
  color: #eef6ff;
}

.top-nav-home {
  gap: 22px;
}

.top-nav-home a,
.top-nav-home button {
  height: 40px;
  padding: 0 20px;
  font-size: 21px;
  font-weight: 700;
}

.top-nav a,
.top-nav button {
  border-radius: 12px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

a.primary,
 a.secondary,
 a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

button.primary {
  background: linear-gradient(135deg, #209fe0 0%, #4fb2ee 60%, #76c3f0 100%);
  color: #eff6ff;
  box-shadow: none;
}

button.secondary {
  background: #151515;
  color: #cfd6de;
  border: 1px solid #2a2a2a;
}

button.ghost {
  background: #121212;
  border: 1px solid #2a2a2a;
  color: #b8c4d2;
}

button.primary-action {
  background: linear-gradient(135deg, #1995d8 0%, #5ab4e6 100%);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

button.primary-gradient,
a.primary-gradient {
  background: linear-gradient(135deg, #1995d8 0%, #4fb2ee 60%, #76c3f0 100%);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

button.round-action {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  padding: 0;
}

a.primary {
  background: linear-gradient(135deg, #209fe0 0%, #4fb2ee 60%, #76c3f0 100%);
  color: #eff6ff;
  box-shadow: none;
}

a.secondary {
  background: #151515;
  color: #cfd6de;
  border: 1px solid #2a2a2a;
}

a.ghost {
  background: #121212;
  border: 1px solid #2a2a2a;
  color: #b8c4d2;
}

button.warning,
a.warning {
  background: linear-gradient(135deg, #ffd166 0%, #ffefb5 100%);
  color: #7a4a00;
  border: none;
  box-shadow: 0 10px 18px rgba(255, 200, 80, 0.3);
}

button.ghost.warning,
a.ghost.warning {
  background: linear-gradient(135deg, #ffd166 0%, #ffefb5 100%);
  color: #7a4a00;
  border: none;
}

button.danger,
a.danger,
button.ghost.danger,
a.ghost.danger {
  background: linear-gradient(135deg, #45151f 0%, #632132 100%);
  color: #ffc5ce;
  border: 1px solid #7f3145;
}

button:disabled,
a:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.compact,
a.compact {
  padding: 6px 12px;
  font-size: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.queue-text {
  background: linear-gradient(90deg, #2aa4e6 0%, #6fc0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

button.block {
  width: 100%;
  margin-top: 18px;
}

.page {
  padding: 40px 60px 80px;
  flex: 1 1;
  overflow: auto;
}

.studio-full.page {
  padding: 0;
  overflow: hidden;
}

.studio-full {
  padding: 0;
}

.studio-full .studio-layout {
  padding: 0;
  display: block;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #1f3150;
  background: rgba(10, 16, 28, 0.9);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.studio-topbar h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.studio-grid {
  width: 100%;
  height: 100%;
}

.studio-grid .ant-col {
  height: 100%;
}

input,
textarea,
select {
  background: #292a2b;
  border: 1px solid #2a2a2a;
  color: #f6fbff;
}

input::placeholder,
textarea::placeholder {
  color: #adc6eb;
}

.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-picker,
.ant-input-number,
.ant-input-number-input,
.ant-select-selection-search-input {
  background: #292a2b !important;
  border-color: #2a2a2a !important;
  color: #f6fbff !important;
}

.ant-input::placeholder,
.ant-input-affix-wrapper input::placeholder,
.ant-select-selection-placeholder,
.ant-picker-input input::placeholder,
.ant-input-number-input::placeholder {
  color: #adc6eb !important;
}

.page.narrow {
  max-width: 980px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head .actions,
.storyboard-head .actions {
  margin-left: auto;
  justify-content: flex-end;
}

.page-head-compact {
  margin-bottom: 12px;
}

.page-head-compact h1 {
  font-size: 26px;
  line-height: 1.15;
}

.page-head-compact .sub {
  margin-top: 4px;
}

.muted {
  color: var(--muted);
}

.card {
  background: #121212;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #1f1f1f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.divider {
  height: 1px;
  background: #1c2943;
  margin: 18px 0;
}

.studio-theme .top-nav a,
.studio-theme .top-nav button {
  background: #121212;
  border: 1px solid #2a2a2a;
  color: #d8e4ff;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-gap: 18px;
  gap: 18px;
}

.studio-layout-left {
  grid-template-columns: 360px minmax(0, 1fr);
}

.studio-theme.page {
  padding: 12px 16px 18px;
}

.studio-full.studio-theme.page {
  padding: 0 !important;
}

.studio-main {
  min-height: calc(100vh - 110px);
}

.studio-full .studio-main.card {
  padding: 16px;
  border-radius: 0;
  height: 100%;
  overflow: auto;
  border: none;
}

.studio-full .studio-side.card {
  padding: 16px;
  border-radius: 0;
  height: 100%;
  overflow: auto;
  border: none;
}

.studio-full .studio-side {
  position: relative;
  top: 0;
  max-height: none;
  height: 100%;
}

.studio-side {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  height: -moz-fit-content;
  height: fit-content;
  max-height: calc(100vh - 92px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2f4e7c #0b1422;
}

.studio-side::-webkit-scrollbar {
  width: 8px;
}

.studio-side::-webkit-scrollbar-track {
  background: #0b1422;
  border-radius: 999px;
}

.studio-side::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #244777 0%, #3f6eab 100%);
  border-radius: 999px;
  border: 1px solid #162744;
}

.icon-help {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  color: #d7e9ff;
  border: 1px solid #2a2a2a;
  background: #121212;
}

.asset-tab-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 12px;
}

.asset-tab {
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #b3c1cf;
  padding: 8px 10px;
  font-size: 13px;
}

.asset-tab.active {
  border-color: #58c2ff;
  color: #e9f6ff;
  background: linear-gradient(135deg, #1b3a52 0%, #2b6a9c 100%);
}

.asset-list-mini {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.asset-pane {
  display: none;
}

.asset-pane.active {
  display: block;
}

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

.asset-item-mini {
  border: 1px solid #262626;
  background: #121212;
  border-radius: 10px;
  padding: 10px 12px;
}

.asset-card {
  position: relative;
  border: 1px solid #262626;
  background: #121212;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  overflow: hidden;
}

.asset-card-add {
  border-style: dashed;
  border-color: #3a3a3a;
  background: #111111;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.asset-add-plus {
  font-size: 32px;
  line-height: 1;
  color: #6ccfff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asset-add-plus .anticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.asset-card-image-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.asset-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.asset-card-image.empty {
  display: grid;
  place-items: center;
  background: #121212;
  color: #8b9aa6;
  font-size: 12px;
}

.asset-card-name {
  font-size: 12px;
  color: #dbe7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-card-actions {
  position: static;
  display: inline-flex;
  width: 100%;
  gap: 6px;
  margin-top: 4px;
  justify-content: flex-end;
}

.asset-card-actions .asset-icon-btn:last-child {
  margin-left: 0;
}

.asset-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #dce9ff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.asset-icon-btn .anticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 100%;
  height: 100%;
}

.asset-icon-btn .anticon svg {
  display: block;
  margin: auto;
}

.asset-icon-btn.danger {
  border-color: #6c2f46;
  color: #ffc4d0;
}

.person-modal-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #111111;
}

.asset-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}

.asset-modal-form .upload-placeholder {
  height: 260px;
}

.prop-panel,
.prop-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.asset-create {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
}

.prop-item {
  border: 1px solid #262626;
  background: #121212;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-modal .ant-modal-content,
.ant-modal .ant-modal-header,
.ant-modal .ant-modal-footer,
.ant-modal .ant-modal-body {
  background: #121212;
  color: #e9f6ff;
}

.ant-modal .ant-modal-title {
  color: #e9f6ff;
}

.ant-modal .ant-input,
.ant-modal .ant-input-affix-wrapper,
.ant-modal textarea,
.ant-modal .ant-select-selector {
  background: #292a2b !important;
  border-color: #2a2a2a !important;
  color: #f6fbff !important;
}

.ant-modal .ant-input::placeholder,
.ant-modal textarea::placeholder,
.ant-modal .ant-select-selection-placeholder {
  color: #adc6eb !important;
}
.panel {
  padding: 28px;
}

.tab-row {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px;
}

.tab {
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--muted);
}

.tab.active {
  background: linear-gradient(135deg, #2bb7ff 0%, #8ad7ff 100%);
  color: #ffffff;
}

.wechat-box {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  justify-items: start;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 1px dashed #3b3b3b;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #121212;
}

.error {
  color: #8a1c0f;
  background: #ffe4dc;
  padding: 8px 12px;
  border-radius: 10px;
  grid-column: 1 / -1;
}

.auth-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.auth-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #121212;
  border: 1px solid #2a2a2a;
  font-size: 12px;
  color: #cfe0ff;
}

.loading {
  color: var(--muted);
}

.form {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.form > label {
  margin-top: 8px;
}

.form textarea {
  margin: 8px 0 16px;
}

.form.grid-2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.form .full {
  grid-column: 1 / -1;
}

textarea {
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  padding: 10px 12px;
  background: #292a2b;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 18px;
  gap: 18px;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.table {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.table.compact {
  gap: 8px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.table.compact .table-head,
.table.compact .table-row {
  grid-template-columns: repeat(4, minmax(80px, 1fr));
}

.table-head {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: #121212;
  border: 1px solid #262626;
}

.table-row.link-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-row.link-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 28, 64, 0.12);
}

.empty {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.running {
  background: rgba(26, 102, 255, 0.2);
  color: #0e3f9c;
}

.badge.done {
  background: rgba(29, 153, 255, 0.18);
  color: #0c5aa3;
}

.badge.draft {
  background: rgba(112, 110, 102, 0.2);
  color: #55524c;
}

.badge.queued {
  background: rgba(63, 110, 209, 0.2);
  color: #1f3f84;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 18px;
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.stat {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
}

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 40px;
  gap: 40px;
  align-items: center;
}

.hero.hero-solo {
  grid-template-columns: 1fr;
}

.hero.hero-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 68vh;
}

.hero.hero-center .hero-copy {
  max-width: 540px;
  justify-items: center;
}

.hero.hero-center .actions {
  justify-content: center;
}

.hero-copy h1 {
  font-size: 48px;
  margin: 12px 0 16px;
}

.home-landing {
  padding: 0;
  flex: 1 1;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.home-landing > .home-split {
  height: 100%;
  min-height: 100%;
}

.home-split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  grid-template-rows: 1fr;
  grid-gap: 0;
  gap: 0;
  padding: 0 32px;
  flex: 1 1;
  height: 100%;
  min-height: 100%;
  align-items: stretch;
}

.home-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 32px;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.home-login .form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 8px;
}

.home-login .form label {
  margin-top: 0;
}

.home-login .error {
  background: #2a1216;
  border: 1px solid #5a2a33;
  color: #ffb9c1;
}

.home-login .tab-row {
  background: transparent;
  border: none;
  padding: 0;
  gap: 12px;
}

.home-login .tab {
  border-radius: 10px;
  padding: 8px 18px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #c6d2de;
  font-size: 14px;
}

.home-login .tab.active {
  background: linear-gradient(135deg, #2bb7ff 0%, #8ad7ff 100%);
  color: #ffffff;
  border: none;
}

.home-login .form input {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
}

.home-login .form button.primary {
  min-height: 52px;
  font-size: 16px;
  margin-top: 8px;
}

.input-with-icon {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  background: #292a2b;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0 12px;
  min-height: 46px;
}

.input-with-icon input {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 40px;
  color: #f6fbff;
}

.input-with-icon .anticon {
  color: #a8bfd6;
  font-size: 16px;
}

.home-visual {
  position: relative;
  border-left: 1px solid #1f1f1f;
  padding: 0 0 0 32px;
  background: #111213;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-image {
  width: min(760px, 100%);
  height: auto;
  max-height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(86, 194, 255, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.home-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #5ad1ff 0%, #4b93ff 45%, #7db4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.hero-panel {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.hero-highlight {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 20px;
  background: #121212;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #262626;
  box-shadow: var(--shadow);
}

.hero-highlight h3 {
  margin-bottom: 6px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

select,
input {
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  padding: 8px 12px;
  background: #292a2b;
  color: #f6fbff;
  min-width: 160px;
}

.pill-group {
  display: flex;
  gap: 8px;
}

.pill-group span {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #2a2a2a;
  font-size: 12px;
  color: var(--muted);
}

.pill-group span.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.panel-card ul {
  list-style: none;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.panel-card li {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-card li.done {
  background: rgba(26, 102, 255, 0.35);
}

.panel-card li.running {
  background: rgba(255, 255, 255, 0.18);
}

.grid {
  margin-top: 60px;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid article {
  background: #f6f9ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.grid h4 {
  margin-bottom: 8px;
}

.grid p {
  color: var(--muted);
  line-height: 1.6;
}

.module-grid {
  margin-top: 40px;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-card {
  background: #f6f9ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-top: 12px;
}

.people-section {
  margin: 24px 0;
}

.people-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.people-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.person-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 320px;
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #c9d7f2;
}

.person-left {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
}

.person-left img,
.person-left .upload-placeholder,
.person-image {
  width: 180px;
  height: 180px;
}

.person-image {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

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

.person-name {
  font-weight: 700;
  font-size: 16px;
}

.person-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.person-card {
  background: #0d1524;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #1f3150;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  justify-items: start;
}

.person-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #e6efff;
}

.person-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.person-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.person-generate {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
}

.person-generate input {
  width: 100%;
}

.upload-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  border: 1px dashed #2b4368;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #0c1729;
  font-weight: 600;
}

.episode-select {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

.episode-card {
  background: #0d1524;
  border: 1px solid #1f3150;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  text-align: left;
}

.episode-card.active {
  border-color: #1a66ff;
  box-shadow: 0 12px 24px rgba(26, 102, 255, 0.2);
}

.episode-title {
  font-weight: 700;
}

.episode-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.person-upload {
  width: 100%;
}

.episode-tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a66ff 0%, #4da3ff 100%);
  color: #f5fbff;
  border: 1px solid rgba(77, 163, 255, 0.4);
}

.episode-create {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.episode-create input {
  min-width: 220px;
}

.script-text {
  white-space: pre-wrap;
  line-height: 1.7;
}

.storyboard {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

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

.storyboard-split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  min-height: 520px;
}

.storyboard-list {
  background: #0c1423;
  border: 1px solid #1f3150;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.storyboard-list-head {
  padding: 14px 16px;
  border-bottom: 1px solid #1f3150;
  font-weight: 600;
  color: #e2ecff;
}

.storyboard-list-body {
  padding: 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  overflow-y: auto;
}

.storyboard-list-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(20, 30, 50, 0.6);
  color: #cbd7ef;
  text-align: left;
  cursor: -webkit-grab;
  cursor: grab;
}

.storyboard-list-item:hover {
  border-color: #2f4f86;
  color: #e2ecff;
}

.storyboard-list-item.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #eef5ff;
}

.storyboard-list-index {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(26, 102, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #9ec5ff;
}

.storyboard-list-text {
  font-size: 12px;
  line-height: 1.4;
}

.storyboard-detail {
  background: #0c1423;
  border: 1px solid #1f3150;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.storyboard-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.prompt-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #233a5f;
  background: rgba(13, 22, 38, 0.8);
}

.prompt-row pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: #c5d7f3;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #e2ecff;
}

.prompt-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #a9bce3;
  font-size: 12px;
}

.prompt-mode .sq-btn.active {
  border-color: #3b82f6;
  color: #eaf4ff;
  background: rgba(59, 130, 246, 0.16);
}

.prompt-input {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid #2b4067;
  background: #0c1628;
  color: #e3efff;
  padding: 10px 12px;
  resize: vertical;
}

.storyboard-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  min-width: 0;
}

.storyboard-ant-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.storyboard-ant-table .ant-table {
  background: transparent;
  color: #dce9ff;
  border: 1px solid #3b5d8f;
  border-radius: 12px;
  overflow: hidden;
}

.storyboard-ant-table .ant-table-container {
  -webkit-border-start: none !important;
          border-inline-start: none !important;
  border-top: none !important;
}

.storyboard-ant-table .ant-table-thead > tr > th {
  background: linear-gradient(180deg, #243d64 0%, #1b3153 100%) !important;
  color: #cde2ff !important;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #4d6fa3 !important;
  padding: 10px 10px !important;
}

.storyboard-ant-table .ant-table-tbody > tr > td {
  background: linear-gradient(180deg, #1f365a 0%, #1a2e4e 100%);
  border-bottom: 1px solid #3b5d8f !important;
  padding: 10px 10px !important;
  vertical-align: top;
}

.storyboard-ant-table .ant-table-tbody > tr.storyboard-row-active > td {
  background: linear-gradient(180deg, #29456f 0%, #223a60 100%);
}

.storyboard-ant-table .ant-table-tbody > tr:hover > td {
  background: linear-gradient(180deg, #264066 0%, #203555 100%) !important;
}

.storyboard-cell {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  padding: 2px 2px 0;
  overflow: hidden;
}

.storyboard-index-cell {
  align-content: center;
  justify-items: center;
  min-height: 110px;
}

.storyboard-index-text {
  font-weight: 700;
  color: #dce9ff;
}

.seq-chip-square {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #cfd6de;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prompt-actions {
  justify-content: flex-end;
  margin-bottom: 2px;
}

.field-full {
  grid-column: 1 / -1;
}

.prompt-compact {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 6px;
}

.prompt-compact .field-wide {
  grid-column: 1 / -1;
}

.prompt-compact label > span {
  font-size: 11px;
  color: #a9b5c2;
}

.prompt-compact input,
.prompt-compact select {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.storyboard-ant-select .ant-select-selector {
  min-height: 30px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.person-action-block.compact {
  padding: 8px;
  gap: 6px;
  background: #121212;
  border-color: #2f2f2f;
}

.person-action-block.compact .person-action-row {
  grid-template-columns: 90px 1fr;
  gap: 6px;
}

.person-action-block.compact .person-action-row input {
  max-width: none;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.person-action-block.compact .person-action-name {
  font-size: 11px;
}

.storyboard-video-cell {
  align-content: center;
  justify-items: end;
}

.step-actions.op-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

.step-actions.op-actions .op-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.material-top-actions {
  justify-content: flex-start;
}

.sq-btn {
  border-radius: 8px !important;
  height: 32px;
  min-width: 72px;
  padding: 0 10px !important;
}

.fusion-btn {
  border: none !important;
  color: #ecfff1 !important;
  background: linear-gradient(135deg, #139c52 0%, #28c86d 100%) !important;
}

.fusion-btn.warning {
  background: linear-gradient(135deg, #b49517 0%, #d7ba38 100%) !important;
  color: #fff8d6 !important;
}

.video-gen-btn {
  border: none !important;
  color: #eaf4ff !important;
  background: linear-gradient(135deg, #1b5cff 0%, #47a2ff 100%) !important;
}

.video-gen-btn.warning {
  background: linear-gradient(135deg, #b49517 0%, #d7ba38 100%) !important;
  color: #fff8d6 !important;
}

.material-list-single {
  grid-template-columns: 1fr;
}

.storyboard-grid .prompt-preview {
  grid-column: 1 / -1;
}

.studio-theme .page-head h1,
.studio-theme .page-head h3,
.studio-theme .step-label,
.studio-theme .person-name {
  color: #e2ecff;
}

.studio-theme .muted,
.studio-theme .sub {
  color: #8ea6cf;
}

.studio-theme .episode-card,
.studio-theme .storyboard-card,
.studio-theme .storyboard-grid,
.studio-theme .people-editor,
.studio-theme .person-row,
.studio-theme .upload-placeholder,
.studio-theme .material-item,
.studio-theme .prompt-preview {
  background: #121212;
  border-color: #262626;
  color: #dbe7ff;
}

.studio-theme .storyboard-grid {
  background: transparent;
  border-color: transparent;
}

.studio-theme .storyboard-card {
  background: #141414;
  border-color: #2a2a2a;
}

.studio-theme input,
.studio-theme textarea,
.studio-theme select {
  background: #131313;
  border: 1px solid #2a2a2a;
  color: #e9f6ff;
}

.studio-theme input::placeholder,
.studio-theme textarea::placeholder {
  color: #adc6eb;
}

.studio-theme .storyboard-step {
  background: #0f0f0f;
  border: 1px solid #232323;
}

.studio-theme .storyboard-step::before {
  background: linear-gradient(90deg, rgba(88, 194, 255, 0.5), rgba(88, 194, 255, 0.16));
}

.studio-theme .storyboard-step::after {
  border-color: #58c2ff;
}

.studio-theme .material-select-btn.is-selected {
  background: linear-gradient(135deg, #1b3a52 0%, #2b6a9c 100%);
  color: #eaf2ff;
  border: 1px solid #58c2ff;
}

.studio-theme .people-editor .section-head {
  margin-bottom: 10px;
}

@media (max-width: 1280px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-layout-left {
    grid-template-columns: 1fr;
  }

  .studio-side {
    position: static;
    max-height: none;
  }
}

.storyboard-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #1f365a;
  border: 1px solid #3b5d8f;
}

.storyboard-steps {
  display: grid;
  grid-template-columns: 2fr 1.2fr .7fr;
  grid-gap: 30px;
  gap: 30px;
  align-items: center;
  position: relative;
}

.storyboard-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50px;
  right: 72px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 102, 255, 0.4), rgba(26, 102, 255, 0.12));
  transform: translateY(-50%);
  pointer-events: none;
}

.storyboard-row.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.storyboard-step {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d9e5ff;
  background: #f7faff;
  position: relative;
}

.storyboard-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1a66ff;
  box-shadow: 0 0 0 4px rgba(26, 102, 255, 0.16);
  transform: translateY(-50%);
}

.storyboard-step:last-child::after {
  display: none;
}

.storyboard-dual .storyboard-step::after {
  display: none;
}

.storyboard-step.step-plain {
  border: none;
  background: transparent;
  padding: 0;
  gap: 10px;
}

.storyboard-step.step-plain::after {
  right: 30px;
}

.storyboard-step.step-plain .step-title {
  background: #f7faff;
  border: 1px solid #d9e5ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.storyboard-step.step-plain .step-actions {
  justify-content: flex-start;
}

.storyboard-step.step-plain .video-status {
  padding-left: 12px;
}

.step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: #20345f;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1a66ff;
  color: #ffffff;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
}

.step-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.storyboard-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.storyboard-fields.prompt-compact {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.field-break {
  grid-column: 1 / -1;
  height: 0;
}

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

.storyboard-fields input,
.storyboard-fields select {
  min-width: 0;
  width: 100%;
}

.field-wide {
  grid-column: span 2;
}

.field-narrow input,
.field-narrow select {
  max-width: 200px;
}

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

.person-action-block {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #2f2f2f;
  background: #121212;
}

.person-action-title {
  font-weight: 600;
  color: #d6e8ff;
}

.person-action-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.person-action-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.person-action-row input {
  max-width: 240px;
}

.person-action-name {
  font-size: 12px;
  color: #cfd6de;
}

.material-block {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  justify-content: start;
  align-content: start;
  justify-items: start;
}

.material-item {
  border: 1px solid #2a2a2a;
  background: #121212;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  text-align: left;
  width: 150px;
}

.material-item.active {
  border-color: #1a66ff;
  box-shadow: 0 10px 20px rgba(26, 102, 255, 0.2);
}

.material-select {
  border: none;
  padding: 0;
  background: transparent;
  text-align: left;
}

.material-image :global(img),
.material-image img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.material-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.material-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.material-select-btn {
  border: 1px solid #2a2a2a;
  color: #cfd6de;
  background: #121212;
}

.material-select-btn.is-selected {
  border-color: #1a66ff;
  color: #1a66ff;
  background: #eef4ff;
}


.error-text {
  font-size: 12px;
  color: #8a1c0f;
}

.prompt-preview {
  background: #0f1f47;
  color: #eaf2ff;
  border-radius: 12px;
  padding: 12px;
}

.prompt-preview pre {
  white-space: pre-wrap;
  font-size: 12px;
}

.code-block {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f1f47;
  color: #eaf2ff;
  font-size: 12px;
  overflow-x: auto;
}

.video-panel {
  margin-top: 12px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.video-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.video-card {
  border-radius: 14px;
  border: 1px solid #c9d7f2;
  padding: 12px;
  background: #f7faff;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

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

.video-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.video-placeholder {
  border-radius: 12px;
  border: 1px dashed #c9d7f2;
  padding: 16px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.video-preview {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid #c9d7f2;
  background: #0f1f47;
}

.video-preview-large {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c9d7f2;
  background: #0f1f47;
}

.home-footer {
  margin-top: 32px;
}

.queue-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
  color: #b9ccf0;
  font-size: 13px;
}

.queue-list {
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding-right: 4px;
}

.queue-item {
  border: 1px solid #2d3f61;
  border-radius: 10px;
  background: #101a2d;
  padding: 10px 12px;
}

.queue-item.running {
  border-color: #2563eb;
}

.queue-item.succeeded {
  border-color: #15803d;
}

.queue-item.failed {
  border-color: #b91c1c;
}

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

.queue-title {
  color: #eff6ff;
  font-size: 13px;
}

.queue-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #334155;
  color: #bfdbfe;
}

.queue-status.queued {
  color: #cbd5e1;
}

.queue-status.running {
  color: #93c5fd;
}

.queue-status.succeeded {
  color: #86efac;
}

.queue-status.failed {
  color: #fca5a5;
}

.queue-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.queue-error {
  color: #fca5a5;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    gap: 18px;
    padding: 24px;
  }

  .page {
    padding: 20px 24px 60px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-highlight {
    padding: 16px;
  }

  .home-split {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .home-visual {
    min-height: 320px;
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }

  .home-login {
    padding-right: 0;
  }

  .home-hero-image {
    width: 100%;
    max-height: 260px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .storyboard-fields {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .storyboard-split {
    grid-template-columns: 1fr;
  }

  .storyboard-dual {
    grid-template-columns: 1fr;
  }

  .storyboard-steps {
    grid-template-columns: 1fr;
  }

  .storyboard-ant-table .ant-table {
    border-radius: 10px;
  }

  .storyboard-steps::before,
  .storyboard-step::after {
    display: none;
  }

  .person-row {
    grid-template-columns: 1fr;
  }

  .person-action-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .person-left {
    grid-template-columns: 1fr;
  }

  .person-left img,
  .person-left .upload-placeholder,
  .person-image {
    width: 100%;
    height: 220px;
  }

  .person-right {
    grid-template-columns: 1fr;
  }
}

@keyframes electricGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.05);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
}

.landing-v2 {
  position: relative;
  min-height: calc(100vh - 74px);
  width: 100%;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.top-nav-home a.ghost,
.top-nav-home button.ghost {
  background: transparent !important;
  border-color: transparent !important;
  color: #eef6ff !important;
}

.top-nav-home a.primary {
  background: linear-gradient(135deg, rgba(90, 155, 255, 0.9) 0%, rgba(101, 132, 255, 0.9) 100%) !important;
  color: #f5fbff !important;
}

.landing-v2-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(640px, 2.5fr);
  align-items: center;
  grid-column-gap: clamp(24px, 4vw, 72px);
  column-gap: clamp(24px, 4vw, 72px);
  min-height: 100%;
  padding: clamp(26px, 3vw, 40px) clamp(18px, 4vw, 64px);
}

.landing-v2-copy {
  justify-self: center;
  width: min(940px, 100%);
  text-align: left;
}

.landing-v2-copy h1 {
  font-size: clamp(50px, 5.4vw, 84px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: #f3f8ff;
  margin: 0;
  text-shadow:
    0 14px 44px rgba(4, 14, 42, 0.78),
    0 2px 10px rgba(8, 24, 72, 0.6);
}

.landing-v2-copy p {
  margin-top: 20px;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.45;
  color: rgba(213, 242, 255, 0.96);
  text-shadow:
    0 10px 28px rgba(4, 14, 42, 0.72),
    0 1px 8px rgba(8, 24, 72, 0.5);
}

.landing-v2-auth {
  position: relative;
  width: min(560px, 100%);
  justify-self: start;
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(22, 38, 78, 0.2) 0%, rgba(12, 24, 56, 0.12) 100%);
  border: 1px solid rgba(214, 236, 255, 0.4);
  box-shadow:
    0 34px 90px rgba(4, 15, 43, 0.36),
    inset 0 1px 0 rgba(242, 250, 255, 0.58),
    inset 0 -1px 0 rgba(171, 214, 255, 0.24);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
          backdrop-filter: blur(26px) saturate(150%);
  overflow: hidden;
}

.landing-v2-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(156, 212, 255, 0) 0%,
    rgba(156, 212, 255, 0) 35%,
    rgba(156, 212, 255, 0.85) 50%,
    rgba(156, 212, 255, 0) 65%,
    rgba(156, 212, 255, 0) 100%
  );
  transform: translateX(-130%);
  animation: authBorderSweep 3.6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.85;
}

.landing-v2-auth::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -95px;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 205, 255, 0.42) 0%, rgba(138, 205, 255, 0) 70%);
  pointer-events: none;
  animation: authGlowPulse 4.2s ease-in-out infinite;
}

.landing-v2-tab-row {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 20px;
}

.landing-v2-tab {
  border-radius: 12px;
  border: 1px solid rgba(118, 166, 236, 0.52);
  background: rgba(20, 40, 82, 0.46);
  color: #cbe4ff;
  min-width: 92px;
  height: 42px;
  font-size: 18px;
}

.landing-v2-tab.active {
  border: 1px solid rgba(123, 185, 255, 0.8);
  color: #f7fbff;
  background: linear-gradient(135deg, rgba(69, 128, 255, 0.84) 0%, rgba(90, 170, 255, 0.84) 100%);
}

.landing-v2-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.landing-v2-form label {
  color: #d8ecff;
  font-size: 15px;
}

.landing-v2-input {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(170, 214, 255, 0.36);
  background: rgba(10, 24, 56, 0.46);
  box-shadow: inset 0 1px 0 rgba(236, 247, 255, 0.2);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.landing-v2-input .anticon {
  color: #b8d9ff;
  font-size: 17px;
}

.landing-v2-input input {
  border: none;
  background: transparent;
  min-height: 50px;
  color: #f4f9ff;
  font-size: 16px;
}

.landing-v2-input input::placeholder {
  color: rgba(174, 199, 234, 0.85);
}

.landing-v2-submit {
  margin-top: 10px;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(116, 178, 255, 0.82);
  color: #f3f8ff;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(80, 146, 255, 0.94) 0%, rgba(79, 189, 255, 0.94) 100%);
  box-shadow: 0 10px 30px rgba(41, 115, 255, 0.34);
}

.landing-v2-error {
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(68, 16, 29, 0.7);
  border: 1px solid rgba(226, 94, 126, 0.46);
  color: #ffd9e3;
  padding: 10px 12px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .top-bar-home {
    height: 64px;
    padding: 0 16px;
  }

  .landing-v2-content {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .landing-v2-copy {
    order: 1;
    text-align: center;
  }

  .landing-v2-auth {
    order: 2;
    justify-self: center;
  }

  .landing-v2-copy h1 {
    font-size: clamp(32px, 9.6vw, 50px);
  }

  .landing-v2-copy p {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .landing-v2-auth {
    width: 100%;
  }
}

@keyframes authBorderSweep {
  0%,
  18% {
    transform: translateX(-130%);
  }
  50% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes authGlowPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

/* Home page force overrides: keep at end to win specificity/cascade. */
.app-shell-home .top-bar.top-bar-home {
  height: 92px !important;
  padding: 0 32px !important;
}

.app-shell-home .brand.brand-home .brand-logo {
  width: 136px !important;
  height: 82px !important;
  object-fit: contain !important;
  transform: translateY(3px) !important;
}

.app-shell-home .brand.brand-home span {
  font-size: 32px !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 3px 12px rgba(6, 18, 56, 0.82), 0 0 18px rgba(165, 220, 255, 0.45) !important;
}

.app-shell-home .top-bar.top-bar-home .top-nav-home {
  gap: 26px !important;
}

.app-shell-home .top-bar.top-bar-home .top-nav-home a,
.app-shell-home .top-bar.top-bar-home .top-nav-home button {
  font-size: 20px !important;
  font-weight: 800 !important;
  height: 42px !important;
  padding: 0 18px !important;
}

.app-shell-home .landing-v2 .landing-v2-content {
  grid-template-columns: minmax(420px, 1fr) minmax(760px, 2.5fr) !important;
  padding: 32px 56px 44px 96px !important;
}

.app-shell-home .landing-v2 .landing-v2-auth {
  width: min(620px, 100%) !important;
  border-radius: 26px !important;
  padding: 34px !important;
  background:
    radial-gradient(120% 160% at 20% 0%, rgba(100, 176, 255, 0.14) 0%, rgba(26, 45, 110, 0.1) 38%, rgba(10, 20, 58, 0.36) 100%),
    rgba(8, 16, 48, 0.36) !important;
  border: 1px solid rgba(154, 203, 255, 0.36) !important;
  box-shadow:
    0 12px 32px rgba(6, 14, 40, 0.28),
    inset 0 1px 0 rgba(182, 224, 255, 0.26),
    inset 0 0 20px rgba(44, 89, 181, 0.12) !important;
  -webkit-backdrop-filter: blur(10px) saturate(112%) !important;
          backdrop-filter: blur(10px) saturate(112%) !important;
}

.app-shell-home .landing-v2 .landing-v2-tab {
  min-width: 108px !important;
  height: 44px !important;
  font-size: 18px !important;
  border: 1px solid rgba(124, 176, 255, 0.45) !important;
  background: rgba(28, 52, 120, 0.46) !important;
  color: rgba(233, 244, 255, 0.96) !important;
}

.app-shell-home .landing-v2 .landing-v2-tab.active {
  border: 1px solid rgba(149, 205, 255, 0.78) !important;
  background: linear-gradient(135deg, rgba(71, 151, 255, 0.72) 0%, rgba(56, 97, 226, 0.76) 100%) !important;
  color: #ffffff !important;
}

.app-shell-home .landing-v2 .landing-v2-form label {
  font-size: 16px !important;
  color: rgba(236, 246, 255, 0.95) !important;
}

.app-shell-home .landing-v2 .landing-v2-input {
  min-height: 58px !important;
  border-radius: 12px !important;
  grid-template-columns: 28px 1fr !important;
  gap: 12px !important;
  border: 1px solid rgba(102, 147, 226, 0.42) !important;
  background: rgba(9, 21, 62, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(147, 203, 255, 0.15),
    inset 0 -1px 0 rgba(20, 43, 104, 0.32) !important;
}

.app-shell-home .landing-v2 .landing-v2-input .anticon {
  font-size: 18px !important;
  color: rgba(198, 223, 255, 0.92) !important;
}

.app-shell-home .landing-v2 .landing-v2-input input {
  min-height: 52px !important;
  font-size: 17px !important;
  color: rgba(234, 245, 255, 0.97) !important;
}

.app-shell-home .landing-v2 .landing-v2-input input::placeholder {
  color: rgba(178, 204, 238, 0.85) !important;
}

.app-shell-home .landing-v2 .landing-v2-submit {
  height: 56px !important;
  font-size: 19px !important;
  border: 1px solid rgba(141, 213, 255, 0.84) !important;
  background: linear-gradient(90deg, rgba(99, 205, 255, 0.95) 0%, rgba(60, 112, 255, 0.95) 100%) !important;
  color: #eff7ff !important;
  box-shadow:
    0 12px 26px rgba(30, 78, 190, 0.45),
    inset 0 1px 0 rgba(223, 246, 255, 0.5) !important;
}

.app-shell-home .landing-v2 .landing-v2-auth::before,
.app-shell-home .landing-v2 .landing-v2-auth::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.app-shell-home .landing-v2 .landing-v2-copy h1 {
  text-shadow: 0 16px 50px rgba(4, 12, 38, 0.84), 0 2px 10px rgba(6, 20, 60, 0.72) !important;
}

.app-shell-home .landing-v2 .landing-v2-copy p {
  text-shadow: 0 12px 34px rgba(4, 12, 38, 0.78), 0 2px 10px rgba(6, 20, 60, 0.62) !important;
}

/* ====== 小说系统样式 ====== */

/* 小说列表页 */
.novel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.novel-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.novel-card:hover {
  border-color: rgba(79,178,238,0.35);
}

.novel-card-body {
  display: block;
  padding: 16px 20px 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.novel-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.novel-card-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.novel-card-synopsis {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.novel-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* 新建小说表单 */
.novel-form {
  max-width: 720px;
}

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

.tag-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-btn:hover, .tag-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,178,238,0.1);
}

.style-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.style-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.style-btn:hover, .style-btn.active {
  border-color: var(--accent);
  background: rgba(79,178,238,0.08);
}

.style-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.style-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-error {
  color: #ff6b6b;
  font-size: 13px;
  margin: 4px 0;
}

/* 小说工作台 */
.novel-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.novel-ws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.novel-ws-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.novel-ws-title h1 {
  font-size: 20px;
  font-weight: 700;
}

.novel-ws-meta {
  font-size: 13px;
  color: var(--muted);
}

.novel-ws-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.novel-ws-body {
  display: flex;
  flex: 1 1;
  overflow: hidden;
  width: 100%;
}

.novel-ws-body > div:last-child {
  flex: 1 1;
  overflow-y: auto;
  width: 100%;
}

.novel-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.novel-nav-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.novel-nav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}

.novel-nav-btn.active {
  background: rgba(79,178,238,0.15);
  color: var(--accent);
}

.novel-panel-area {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* 面板通用 */
.panel-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 20px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.section-head h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

/* AI写作区 */
.ai-write-form {
  background: rgba(79,178,238,0.05);
  border: 1px solid rgba(79,178,238,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-write-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-write-row label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* 章节列表 */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.chapter-item:hover { border-color: rgba(255,255,255,0.15); }

.chapter-row { display: flex; flex-direction: column; gap: 6px; }

.chapter-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chapter-num {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chapter-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1 1;
}

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

.chapter-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.chapter-actions, .char-actions {
  display: flex;
  gap: 8px;
}

.chapter-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-textarea { min-height: 240px; font-size: 14px; line-height: 1.8; }

.chapter-edit-actions, .char-edit-actions {
  display: flex;
  gap: 8px;
}

/* 人物 */
.char-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.char-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}

.char-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.char-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.char-role {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(79,178,238,0.15);
  color: var(--accent);
}

.char-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.char-label {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.history-item {
  font-size: 13px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
  border-radius: 4px;
}

.history-item.current {
  border-left-color: var(--accent);
  background: rgba(102, 153, 204, 0.1);
}

.history-label {
  color: var(--muted);
  font-weight: 500;
  margin-right: 6px;
  display: inline-block;
  min-width: 70px;
  font-size: 12px;
}

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

/* 关系网 */
.rel-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 14px;
}

.rel-from, .rel-to { font-weight: 600; color: var(--ink); }

.rel-type {
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(79,178,238,0.12);
  color: var(--accent);
  font-size: 13px;
}

.rel-desc { color: var(--muted); font-size: 13px; flex: 1 1; }

/* 世界观 */
.setting-list { display: flex; flex-direction: column; gap: 8px; }

.setting-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
}

.setting-row { display: flex; flex-direction: column; gap: 6px; }

.setting-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-cat {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}

.setting-title { font-size: 14px; font-weight: 500; flex: 1 1; }

.setting-content { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 伏笔 */
.foreshadow-list { display: flex; flex-direction: column; gap: 8px; }

.foreshadow-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
}

.foreshadow-item.revealed { opacity: 0.5; }

.foreshadow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.foreshadow-status {
  font-size: 12px;
  white-space: nowrap;
}

.foreshadow-desc { font-size: 14px; flex: 1 1; }

.foreshadow-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* 事件 */
.event-list { display: flex; flex-direction: column; gap: 8px; }

.event-item {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,255,255,0.1);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}

.event-item.importance-critical { border-left-color: #ff6b6b; }
.event-item.importance-high { border-left-color: #ffa94d; }
.event-item.importance-normal { border-left-color: var(--accent); }
.event-item.importance-low { border-left-color: rgba(255,255,255,0.2); }

.event-row { display: flex; flex-direction: column; gap: 6px; }

.event-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-importance {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}

.event-importance.critical { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.event-importance.high { background: rgba(255,169,77,0.2); color: #ffa94d; }
.event-importance.normal { background: rgba(79,178,238,0.15); color: var(--accent); }

.event-chapter {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.event-title { font-size: 14px; font-weight: 500; flex: 1 1; }
.event-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 通用 */
.input-field {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.input-field:focus { border-color: var(--accent); }
.input-field.sm { width: auto; }

.ghost.sm {
  padding: 4px 12px;
  font-size: 13px;
}

.ghost.danger {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.3);
}

.ghost.danger:hover {
  background: rgba(255,107,107,0.1);
  border-color: #ff6b6b;
}

.primary.sm {
  padding: 6px 16px;
  font-size: 13px;
}

.muted.sm { font-size: 12px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--muted);
}

/* 笔风面板 */
.style-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.style-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.style-display {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
}

.style-display p {
  margin: 0;
  color: var(--ink);
}

.style-display .muted {
  color: var(--muted);
  font-style: italic;
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-list li {
  padding: 6px 10px;
  background: rgba(79,178,238,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
}

.muted-sm {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.info-grid > div {
  display: flex;
  gap: 8px;
}

.info-label {
  color: var(--muted);
  min-width: 60px;
}

.info-grid span:last-child {
  color: var(--ink);
}

/* 提取确认 */
.extract-confirm {
  background: rgba(79,178,238,0.08);
  border-left: 3px solid var(--accent);
}

.extract-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.extract-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.extract-item:hover {
  background: rgba(255,255,255,0.06);
}

.extract-item-container {
  display: contents;
}

.extract-form {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px;
  background: rgba(102, 153, 204, 0.08);
  border-radius: 8px;
  margin: 8px 0;
}

.extract-form .input-field {
  font-size: 13px;
}

.extract-form button {
  margin-top: 6px;
}

.extract-item input[type="checkbox"] {
  cursor: pointer;
}

.extract-name {
  font-weight: 500;
  flex: 1 1;
}

.extract-role {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(79,178,238,0.15);
  color: var(--accent);
}

/* 章节编辑器 */
.write-error {
  padding: 8px 12px;
  background: rgba(255,107,107,0.1);
  border-left: 3px solid #ff6b6b;
  border-radius: 4px;
  color: #ff6b6b;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  word-break: break-word;
}

.chapter-edit-toolbar {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.suggestion-panel, .status-panel {
  background: rgba(79,178,238,0.06);
  border-left: 3px solid var(--accent);
  margin: 10px 0;
  font-size: 13px;
}

.suggestion-panel p, .suggestion-panel div {
  margin: 6px 0;
  line-height: 1.6;
}

.suggestion-panel strong {
  color: var(--accent);
}

.ai-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.ai-control-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-multi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.multi-dropdown {
  position: relative;
}

.multi-dropdown-trigger {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.multi-dropdown.open .multi-dropdown-trigger {
  border-color: var(--accent);
}

.multi-dropdown-value {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multi-dropdown-value.placeholder {
  color: var(--muted);
}

.multi-dropdown-arrow {
  color: var(--muted);
  transition: transform 0.15s ease;
}

.multi-dropdown.open .multi-dropdown-arrow {
  transform: rotate(180deg);
}

.multi-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: #171b28;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.multi-dropdown-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}

.multi-dropdown-option:hover {
  background: rgba(255,255,255,0.06);
}

.multi-dropdown-option input {
  margin-top: 2px;
}

.multi-dropdown-option span {
  word-break: break-word;
}

.multi-dropdown-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.plan-card,
.stream-card {
  margin-top: 12px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px 14px;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .ai-control-grid,
  .ai-control-grid-2,
  .ai-multi-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}




