:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: #263244;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --blue: #38bdf8;
}

/* Link extractor: Douyin / Kuaishou / WeChat Channels */
.icon-link-extractor { color: #7c3aed; background: #f2eaff; }
.link-extract-hero {
  position: relative;
  padding: 26px 28px 22px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f6f9ff 58%, #f8f2ff 100%);
  box-shadow: 0 10px 30px rgba(53, 83, 145, .08);
}
.link-extract-heading { display: flex; align-items: center; gap: 14px; }
.link-extract-heading h3 { margin: 0 0 5px; font-size: 22px; color: #17223b; }
.link-extract-heading p { margin: 0; color: #71809b; }
.link-extract-logo {
  width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 15px; color: #fff; font-size: 20px; font-weight: 800;
  background: linear-gradient(145deg, #4e7cff, #7c3aed); box-shadow: 0 8px 18px rgba(90, 91, 220, .25);
}
.link-extract-auth {
  position: absolute; top: 24px; right: 24px; display: flex; align-items: center; gap: 10px;
  max-width: 430px; padding: 10px 12px; border: 1px solid #dde5f1; border-radius: 13px; background: rgba(255,255,255,.88);
}
.link-extract-auth-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 850; color: #182033; background: linear-gradient(145deg, #e8fbff, #ffe9f1); }
.link-extract-auth > div { min-width: 0; display: grid; gap: 2px; }
.link-extract-auth b { color: #27344c; font-size: 13px; }
.link-extract-auth small { overflow: hidden; color: #7e8ba0; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.link-extract-auth button { flex: 0 0 auto; margin-left: 6px; padding: 7px 12px; font-size: 12px; }
.link-extract-auth.ready { border-color: #bce8cf; background: rgba(240,253,246,.92); }
.link-extract-auth.ready b { color: #137b4d; }
.link-extract-auth.working { border-color: #cddcff; background: rgba(244,247,255,.94); }
.douyin-qr-modal { width: min(480px, calc(100vw - 28px)); }
.douyin-qr-login { padding: 4px 4px 2px; text-align: center; }
.douyin-qr-box { width: 280px; height: 280px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid #e1e7f0; border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(25,37,65,.08); }
.douyin-qr-box img { width: 248px; height: 248px; object-fit: contain; image-rendering: auto; }
.douyin-qr-loading { display: grid; justify-items: center; gap: 13px; color: #738098; font-size: 13px; }
.douyin-qr-loading i { width: 38px; height: 38px; border: 3px solid #e4e9f2; border-top-color: #446ff0; border-radius: 50%; animation: spin .8s linear infinite; }
.douyin-qr-login h3 { margin: 0 0 8px; color: #202c43; font-size: 20px; }
.douyin-qr-login p { margin: 0; color: #687790; line-height: 1.65; }
.douyin-qr-login > small { display: block; margin-top: 7px; color: #9aa5b6; }
.douyin-qr-login .form-actions { justify-content: center; margin-top: 20px; }
.douyin-qr-success, .douyin-qr-failed { width: 70px; height: 70px; margin: 6px auto 18px; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 800; }
.douyin-qr-success { color: #fff; background: linear-gradient(145deg, #24be76, #0b9254); box-shadow: 0 12px 24px rgba(16,158,91,.2); }
.douyin-qr-failed { color: #fff; background: linear-gradient(145deg, #f06a75, #d83b49); box-shadow: 0 12px 24px rgba(216,59,73,.18); }
.link-extract-platforms { display: flex; gap: 8px; margin: 20px 0 10px 62px; }
.link-extract-platforms span, .link-extract-source {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px;
  font-size: 12px; line-height: 1.4; font-weight: 700;
}
.link-extract-platforms .douyin, .link-extract-source { color: #29334a; background: #edf1f7; }
.link-extract-platforms .kuaishou { color: #e64b10; background: #fff0e9; }
.link-extract-platforms .wechat { color: #069f55; background: #e8f9ef; }
.link-extract-form { display: grid; grid-template-columns: 1fr 150px; gap: 12px; margin-top: 10px; }
.link-extract-form textarea {
  min-height: 86px; resize: vertical; padding: 15px 16px; border: 1px solid #ccd9eb; border-radius: 13px;
  background: #fff; font: inherit; line-height: 1.6; color: #23304a; outline: none;
}
.link-extract-form textarea:focus { border-color: #5f7ff5; box-shadow: 0 0 0 3px rgba(95, 127, 245, .12); }
.link-extract-form button { border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.link-extract-form button span { font-weight: 800; font-size: 16px; }
.link-extract-form button small { opacity: .78; font-size: 11px; }
.link-extract-tip { margin: 10px 0 0; color: #8794aa; font-size: 12px; }
.link-extract-list-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; }
.link-extract-list-head > div { display: flex; align-items: center; gap: 9px; }
.link-extract-list-head h3 { margin: 0; color: #26334b; }
.link-extract-list-head span { color: #6d7c94; font-size: 13px; }
.link-extract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link-extract-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px;
  border: 1px solid #dce5f1; border-radius: 16px; background: #fff;
  box-shadow: 0 7px 22px rgba(45, 66, 105, .06);
}
.link-extract-platform { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-weight: 850; }
.link-extract-platform.douyin { color: #1d2535; background: linear-gradient(145deg, #e9fbff, #ffeaf2); }
.link-extract-platform.kuaishou { color: #ff4f12; background: #fff0e8; }
.link-extract-platform.wechat { color: #0d9e58; background: #e8f9ef; }
.link-extract-card-body { min-width: 0; }
.link-extract-card header, .link-extract-card footer, .link-extract-detail section header {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
}
.link-extract-card header > div { display: flex; align-items: center; gap: 7px; }
.link-extract-card time { color: #9aa6b8; font-size: 11px; }
.link-extract-status { border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.link-extract-status.working { color: #3b65dc; background: #edf3ff; }
.link-extract-status.done { color: #128754; background: #e8f8ef; }
.link-extract-status.failed { color: #d33e48; background: #ffedf0; }
.link-extract-card h3 { margin: 12px 0 3px; color: #1f2c43; font-size: 16px; }
.link-extract-card h4 { margin: 0; color: #60708b; font-size: 13px; font-weight: 500; }
.link-extract-author { margin: 8px 0 0; color: #8a97aa; font-size: 12px; }
.link-extract-progress { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #edf1f7; }
.link-extract-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f7df2, #8b5cf6); transition: width .3s ease; }
.link-extract-progress-copy { margin: 6px 0 0; color: #74829a; font-size: 11px; }
.link-extract-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #b62f3b; background: #fff1f2; font-size: 12px; line-height: 1.6; }
.link-extract-script { margin: 12px 0 0; color: #576780; font-size: 13px; line-height: 1.7; }
.link-extract-card footer { justify-content: flex-start; flex-wrap: wrap; margin-top: 14px; }
.link-extract-card footer small { margin-left: auto; color: #98a3b4; }
.link-extract-card a.button { text-decoration: none; display: inline-flex; align-items: center; }
.link-extract-empty { grid-column: 1 / -1; padding: 56px 20px; border: 1px dashed #cbd8e8; border-radius: 16px; text-align: center; color: #7f8ca1; background: rgba(255,255,255,.55); }
.link-extract-empty b { color: #42516b; font-size: 16px; }
.link-extract-empty p { margin: 7px 0 0; }
.link-extract-modal { width: min(860px, calc(100vw - 28px)); }
.link-extract-detail video { width: 100%; max-height: 380px; border-radius: 13px; background: #111827; }
.link-extract-detail > div { margin-top: 14px; }
.link-extract-detail h3 { margin: 9px 0 3px; }
.link-extract-detail h4 { margin: 0; color: #66758e; }
.link-extract-detail section { margin-top: 16px; padding: 16px; border-radius: 12px; background: #f7f9fc; }
.link-extract-detail section header span { color: #8c98ab; font-size: 12px; }
.link-extract-detail section p { margin: 12px 0 0; white-space: pre-wrap; line-height: 1.8; color: #37465f; }
.link-extract-detail footer { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.link-extract-detail footer a { text-decoration: none; }

@media (max-width: 860px) {
  .link-extract-grid { grid-template-columns: 1fr; }
  .link-extract-form { grid-template-columns: 1fr; }
  .link-extract-form button { min-height: 54px; }
  .link-extract-platforms { margin-left: 0; }
  .link-extract-auth { position: static; max-width: none; margin-top: 16px; }
  .link-extract-auth > div { flex: 1; }
  .douyin-qr-box { width: 250px; height: 250px; }
  .douyin-qr-box img { width: 220px; height: 220px; }
}

/* Creator workspace isolation: do not inherit compact legacy form typography. */
.creator-page,
.creator-page * {
  box-sizing: border-box;
}

.creator-page .creator-inspector {
  min-width: 380px;
  width: 100%;
  overflow-x: hidden;
}

.creator-page .creator-inspector-panel,
.creator-page .creator-field {
  width: 100%;
  min-width: 0;
}

.creator-page .creator-inspector-tab,
.creator-page .creator-field > span,
.creator-page .creator-switch,
.creator-page .creator-selected-voice,
.creator-page .creator-selected-voice * {
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.creator-page .creator-field > span {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.creator-page .creator-field input,
.creator-page .creator-field textarea {
  width: 100%;
  min-width: 0;
}

.creator-page .creator-title-preview {
  top: 6%;
  left: 5%;
  right: 5%;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  transform: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: 1.1;
}

.creator-page .creator-title-preview strong {
  display: block;
  max-width: 94%;
  padding: 2px 8px;
  overflow: hidden;
  color: #ffd500;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-stroke: 1px #111;
  text-shadow: 0 2px 1px #111;
}

.creator-page .creator-title-preview span {
  display: block;
  min-width: 70%;
  max-width: 96%;
  padding: 6px 12px;
  overflow: hidden;
  background: #f51d13;
  color: #fff;
  font-size: clamp(18px, 1.75vw, 28px);
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-stroke: 1px #111;
  text-shadow: 0 2px 1px #111;
}

.creator-page .creator-subtitle-preview {
  top: auto;
  right: auto;
  bottom: 25%;
  left: 50%;
  width: max-content;
  max-width: 88%;
  padding: 2px 8px;
  overflow: hidden;
  transform: translateX(-50%);
  background: transparent;
  color: #fff;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-stroke: 1px #111;
  text-shadow: 0 2px 2px #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.18), transparent 32rem),
    linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.login-card {
  width: min(420px, 100%);
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.login-card h1 {
  margin: 18px 0 6px;
  font-size: 28px;
}

.login-card p {
  margin: 0 0 24px;
  color: var(--weak);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.primary,
.secondary,
.ghost,
.danger,
.success {
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text);
}

.primary {
  background: var(--accent);
  color: #111827;
  font-weight: 700;
}

.primary:hover {
  background: var(--accent-2);
}

.secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0b1220;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--weak);
  font-size: 13px;
}

nav {
  display: grid;
  gap: 6px;
}

nav button {
  width: 100%;
  min-height: 42px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

nav button:hover,
nav button.active {
  background: var(--panel-2);
  color: var(--text);
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 50px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.topbar-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.topbar h2,
#pageTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.topbar-subtitle,
#pageSubtitle {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
}

.user-avatar-badge {
  font-size: 12px;
  line-height: 1;
}

.user-name-text {
  font-weight: 500;
  color: #1e293b;
}

.logout-btn {
  padding: 3px 9px;
  font-size: 12px;
  border-radius: 6px;
  color: #64748b;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s ease;
  cursor: pointer;
  height: 26px;
  display: inline-flex;
  align-items: center;
}

.logout-btn:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

.content {
  padding: 18px 24px 36px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.filters label {
  min-width: 150px;
}

.filters input,
.filters select {
  min-height: 36px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-title {
  margin: 0 0 4px;
  font-size: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric {
  display: grid;
  gap: 6px;
}

.metric span {
  color: var(--weak);
}

.metric strong {
  font-size: 28px;
}

.copy-overview-metrics {
  margin-bottom: 16px;
}

.product-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.product-copy-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.product-copy-card:hover,
.product-copy-card:focus {
  border-color: rgba(245, 158, 11, 0.72);
  background: rgba(30, 41, 59, 0.76);
  transform: translateY(-1px);
  outline: none;
}

.product-copy-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.product-copy-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-copy-head p {
  margin: 4px 0 0;
  color: var(--weak);
  font-size: 13px;
}

.product-copy-head strong {
  color: #fed7aa;
  font-size: 34px;
  line-height: 1;
}

.product-copy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-copy-stats span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 8px;
  border-radius: 8px;
  background: #0b1220;
  color: var(--weak);
  font-size: 12px;
}

.product-copy-stats b {
  color: var(--text);
  font-size: 18px;
}

.product-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-type-list span {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #fed7aa;
  font-size: 12px;
}

.product-copy-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--weak);
  font-size: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

.product-copy-foot .btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.product-copy-card:hover .product-copy-foot .btn-view,
.product-copy-foot .btn-view:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--weak);
  font-weight: 600;
  background: rgba(30, 41, 59, 0.72);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

.cell-title {
  color: var(--text);
  font-weight: 650;
}

.muted {
  color: var(--weak);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.tag.hot {
  background: rgba(217, 119, 6, 0.18);
  color: #fed7aa;
}

.tag-warm {
  background: rgba(217, 119, 6, 0.18);
  color: #fed7aa;
}

.tag-blue {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.tag-green {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.tag-risk {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.34);
}

.tag-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #ddd6fe;
}

.tag-cyan {
  background: rgba(20, 184, 166, 0.14);
  color: #99f6e4;
}

.tag-slate {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.actions button {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #0b1220;
  border: 1px solid var(--line);
  color: var(--muted);
}

.actions button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.empty {
  padding: 36px;
  text-align: center;
  color: var(--weak);
}

.form-error {
  min-height: 22px;
  color: #fecaca;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal h3 {
  margin: 0;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #0b1220;
  color: var(--text);
  font-size: 22px;
}

.modal-body {
  overflow: auto;
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.copy-editor-simple {
  display: grid;
  gap: 14px;
}

.smart-paste-box {
  border: 1px solid #bfd2ff;
  border-radius: 14px;
  padding: 16px;
  background: #f6f9ff;
}

.smart-paste-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.smart-paste-heading div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smart-paste-heading strong {
  font-size: 17px;
}

.smart-paste-heading small {
  color: var(--muted);
}

.smart-paste-box textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
}

@media (max-width: 720px) {
  .smart-paste-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

.copy-editor-hint {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4ff;
  color: #526075;
  font-size: 13px;
}

.copy-editor-main textarea[name="full_script"] {
  min-height: 280px;
  font-size: 15px;
  line-height: 1.75;
}

.copy-editor-ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-editor-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfd;
}

.copy-editor-section summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style-position: inside;
}

.copy-editor-section summary small {
  color: var(--weak);
  font-size: 12px;
  font-weight: 400;
}

.copy-editor-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.copy-editor-section > .form-grid {
  padding: 15px;
}

.copy-editor-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.script-preview {
  white-space: pre-wrap;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.task-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.task-card.completed {
  border-color: rgba(34, 197, 94, 0.45);
}

.task-card.failed {
  border-color: rgba(239, 68, 68, 0.5);
}

.task-card-head,
.task-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-card-head h3 {
  margin: 0 0 7px;
  color: var(--text);
}

.task-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--weak);
  font-size: 13px;
}

.task-select input,
.task-select-all input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.task-toolbar-actions,
.task-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-toolbar-actions .danger:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.task-card-head p,
.task-progress-meta {
  margin: 0;
  color: var(--weak);
  font-size: 13px;
}

.task-phase {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.task-progress {
  height: 10px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b1220;
}

.task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width 0.35s ease;
}

.task-error {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
  white-space: pre-wrap;
}

.task-card .actions {
  margin-top: 16px;
}

.task-preview video {
  display: block;
  width: min(420px, 100%);
  max-height: 72vh;
  margin: 0 auto;
  background: #000;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 6000;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #111827;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.score {
  color: #fed7aa;
  font-weight: 800;
}

.copy-list {
  display: grid;
  gap: 14px;
}

.copy-browser {
  display: grid;
  grid-template-columns: minmax(460px, 0.95fr) minmax(520px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.copy-compact-list {
  display: grid;
  gap: 8px;
}

.copy-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-list-item:hover {
  border-color: #93c5fd;
  background: #fafcff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.copy-list-item.active {
  border-color: #3b82f6;
  background: #f0f7ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.copy-list-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #2563eb;
}

.copy-row-title strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.copy-row-title > span:not(.star) {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.copy-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.copy-row-preview {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.copy-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
}

.copy-row-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.copy-row-main {
  min-width: 0;
}

.copy-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  line-height: 1.4;
}

.copy-row-title strong {
  color: var(--text);
  font-size: 17px;
}

.copy-row-title > span:not(.star) {
  color: #526075;
  font-weight: 650;
}

.copy-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 6px;
  color: var(--weak);
  font-size: 12px;
}

.copy-row-preview {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.copy-row-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--weak);
  font-size: 12px;
  white-space: nowrap;
}

.copy-detail-panel {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.copy-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.copy-detail-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.copy-detail-head h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 23px;
}

.copy-detail-head h3 {
  margin: 6px 0 0;
  color: #526075;
  font-size: 17px;
}

.copy-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--weak);
  font-size: 12px;
}

.copy-detail-tags {
  margin-top: 10px;
}

.copy-detail-script {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #303a4d;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.copy-detail-inline-title {
  display: block;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 6px;
  margin: 0 0 2px -6px;
  line-height: 1.35;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.copy-detail-inline-title:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.copy-detail-inline-title:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.copy-detail-inline-subtitle {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 6px;
  margin: 0 0 2px -6px;
  line-height: 1.35;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.copy-detail-inline-subtitle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.copy-detail-inline-subtitle:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.copy-detail-script-editor {
  display: block;
  width: 100%;
  min-height: 480px;
  height: calc(100vh - 310px);
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.85;
  color: #1e293b;
  font-family: inherit;
  white-space: pre-wrap;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.copy-detail-script-editor:hover {
  border-color: #94a3b8;
}

.copy-detail-script-editor:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.copy-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 10px 0 12px 0;
  align-items: center;
}

.copy-detail-actions button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.copy-detail-actions .primary {
  background: var(--accent);
  color: #fff;
}

.copy-detail-actions .danger {
  background: #fff1f2;
  color: #dc2626;
  border-color: #fecdd3;
}

.copy-detail-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: var(--weak);
}

@media (max-width: 1180px) {
  .copy-browser {
    grid-template-columns: 1fr;
  }

  .copy-detail-panel {
    position: static;
    max-height: none;
  }

  .copy-detail-script {
    max-height: 55vh;
  }
}

.result-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: -4px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.48);
}

.result-summary strong,
.result-summary span {
  display: inline-flex;
  align-items: center;
}

.result-summary strong {
  color: var(--text);
  margin-right: 10px;
}

.result-summary > div:first-child span {
  color: var(--weak);
}

.summary-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.summary-filters span {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.copy-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.pager {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  flex-wrap: wrap;
}

.pager-size label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.pager-size select {
  width: auto;
  min-width: 92px;
  min-height: 34px;
  padding: 6px 9px;
}

.pager-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.pager-controls button {
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}

.copy-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.copy-title-block {
  min-width: 0;
}

.copy-title-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.star {
  color: var(--accent-2);
  margin-right: 6px;
}

.copy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
  color: var(--weak);
  font-size: 13px;
}

.copy-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #fed7aa;
}

.copy-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 190px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-size: 12px;
}

.copy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0;
}

.copy-script {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--muted);
  line-height: 1.65;
}

.copy-script.collapsed {
  max-height: 112px;
  overflow: hidden;
  position: relative;
}

.copy-script.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0), #0b1220);
}

.copy-script.expanded {
  max-height: none;
}

.copy-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid.cards,
  .split,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .copy-head,
  .copy-foot,
  .result-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-side {
    justify-content: flex-start;
  }

  .summary-filters {
    justify-content: flex-start;
  }

  .pager {
    flex-direction: column;
    align-items: flex-start;
  }

  .pager-controls {
    justify-content: flex-start;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .filters label {
    min-width: 100%;
  }
}


/* NCB_LIGHT_THEME_20260720 */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f2f6ff;
  --line: #e5eaf3;
  --text: #172033;
  --muted: #4b5565;
  --weak: #7b8494;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --danger: #ef4444;
  --success: #16a34a;
  --blue: #0ea5e9;
}

body {
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34rem),
    linear-gradient(135deg, #eef4ff 0%, #f8fafc 55%, #ffffff 100%);
}

.login-card,
.card,
.copy-card,
.table-wrap,
.pager,
.modal,
.toast {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.login-card {
  border-radius: 18px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.sidebar {
  background: #ffffff;
  border-right-color: var(--line);
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.035);
}

nav button {
  color: #647084;
}

nav button:hover,
nav button.active {
  background: #eef4ff;
  color: var(--accent);
  font-weight: 700;
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

input,
select,
textarea,
.actions button,
.icon {
  color: var(--text);
  background: #ffffff;
  border-color: #d9e1ee;
}

input::placeholder,
textarea::placeholder {
  color: #9aa4b5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.primary:hover {
  background: #1d4ed8;
}

.secondary,
.ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #d9e1ee;
}

.secondary:hover,
.ghost:hover,
.actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8fbff;
}

.danger {
  background: #fff1f2;
  color: #dc2626;
  border-color: #fecdd3;
}

.success {
  background: #ecfdf3;
  color: #15803d;
  border-color: #bbf7d0;
}

.product-copy-card {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  cursor: grab;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  user-select: none;
}

.product-copy-card:active {
  cursor: grabbing;
}

.product-copy-card.is-dragging {
  opacity: 0.35 !important;
  transform: scale(0.97) !important;
  border: 2px dashed #2563eb !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15) !important;
}

.product-copy-card.drag-over {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(37, 99, 235, 0.18) !important;
  transform: translateY(-3px) scale(1.015);
}

.product-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  margin-right: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.product-drag-handle:hover {
  color: #2563eb;
  background: #eff6ff;
  transform: scale(1.15);
}

.product-copy-card:active .product-drag-handle {
  cursor: grabbing;
}

.product-copy-card:hover,
.product-copy-card:focus {
  border-color: rgba(37, 99, 235, 0.45);
  background: #fbfdff;
}

.product-copy-head strong,
.score,
.star {
  color: #f59e0b;
}

.product-copy-stats span,
.script-preview,
.copy-script {
  background: #f8fafc;
  color: var(--muted);
  border-color: var(--line);
}

.copy-script.collapsed::after {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc);
}

th {
  color: #667085;
  background: #f8fafc;
}

td {
  color: var(--muted);
}

.tag,
.summary-filters span {
  background: #f1f5f9;
  color: #475569;
}

.tag.hot,
.tag-warm,
.copy-type-pill,
.product-type-list span {
  background: #fff7ed;
  color: #c2410c;
}

.tag-blue,
.metric-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.tag-green {
  background: #ecfdf3;
  color: #15803d;
}

.tag-risk {
  background: #fff1f2;
  color: #dc2626;
  border-color: #fecdd3;
}

.tag-violet {
  background: #f5f3ff;
  color: #6d28d9;
}

.tag-cyan {
  background: #ecfeff;
  color: #0e7490;
}

.tag-slate {
  background: #f1f5f9;
  color: #475569;
}

.result-summary {
  background: #f8fafc;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.form-error {
  color: #dc2626;
}

.empty {
  color: #98a2b3;
}

/* NCB_COPY_SUBTITLE_20260720 */
.copy-subtitle {
  margin-top: 4px;
  color: #ef4444;
  font-size: 15px;
  font-weight: 700;
}


/* NCB_VERSION_BADGE_20260720 */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.sidebar nav,
.sidebar nav#nav {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding-right: 2px !important;
}

/* 针对 aly 用户登录后隐藏特定侧边栏菜单（视频提取、同行爆款监控），an 用户及其他用户保持显示 */
body[data-username="aly"] #nav button[data-view="channels"],
body[data-username="aly"] #nav button[data-view="channel-monitor"] {
  display: none !important;
}

.version-badge {
  position: static !important;
  margin-top: auto !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  background: rgba(148, 163, 184, 0.08) !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.copy-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.copy-select input,
.publish-platform-toggle input {
  width: 18px;
  height: 18px;
}

.ai-result {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #f8fbff;
}

.ai-title-grid,
.ai-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.ai-title-option,
.ai-platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
}

.ai-title-option:hover {
  border-color: var(--accent);
  background: #eff6ff;
}

.ai-title-option.selected {
  position: relative;
  border-color: var(--accent);
  background: #eaf2ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.ai-title-option.selected::after {
  content: "✓ 已选择";
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.ai-selected-title {
  margin: -2px 0 12px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #eef4ff;
  color: #315ca8;
  font-size: 13px;
}

.ai-title-option span,
.ai-platform-card p,
.ai-platform-card small {
  color: var(--muted);
}

.ai-risk {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
}

.ai-risk-medium {
  background: #fff7ed;
  color: #9a3412;
}

.ai-risk-high {
  background: #fff1f2;
  color: #be123c;
}

.publish-form-grid {
  display: grid;
  gap: 14px;
}

.publish-platform-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.publish-platform-form textarea,
.publish-platform-form .publish-platform-toggle {
  grid-column: 1 / -1;
}

.publish-platform-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

/* ==========================================================================
   Compact Multi-Platform Publish Layout (现代紧凑美观批量发布)
   ========================================================================== */
.publish-compact-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publish-compact-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.publish-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.publish-compact-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.publish-compact-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.publish-compact-card.disabled {
  opacity: 0.5;
  background: #f8fafc;
}

.publish-compact-card.disabled .compact-card-body {
  pointer-events: none;
}

.compact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.compact-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.compact-card-toggle input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #2563eb;
}

.compact-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.compact-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-field label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.compact-field select,
.compact-field input,
.compact-field textarea {
  width: 100%;
  font-size: 12.5px;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.compact-field select:focus,
.compact-field input:focus,
.compact-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

.compact-hashtags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compact-hashtags-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.compact-action-btn {
  background: none;
  border: none;
  padding: 1px 4px;
  font-size: 11px;
  color: #2563eb;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1.2;
}

.compact-action-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.compact-action-btn.danger {
  color: #94a3b8;
}

.compact-action-btn.danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

.compact-add-tag-box {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
}

.compact-add-tag-box input {
  flex: 1;
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  height: 22px;
  outline: none;
}

.compact-add-tag-box input:focus {
  border-color: #3b82f6;
}

.compact-btn-confirm {
  font-size: 11px;
  padding: 1px 7px;
  height: 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.compact-btn-cancel {
  font-size: 11px;
  padding: 1px 5px;
  height: 22px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
}

.compact-hashtags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  max-height: 60px;
  overflow-y: auto;
  padding: 1px 0;
}

.compact-tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 5px 2px 7px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.compact-tag-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.compact-tag-chip .chip-text {
  cursor: pointer;
}

.chip-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-left: 3px;
  font-size: 11px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.compact-tag-chip:hover .chip-delete-btn {
  color: #64748b;
}

.chip-delete-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444 !important;
  font-weight: bold;
}

.compact-tag-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37,99,235,0.12);
}

.compact-tag-chip.active[data-platform="tencent"] {
  background: #f0fdf4;
  border-color: #07c160;
  color: #047857;
}

.compact-tag-chip.active[data-platform="douyin"] {
  background: #f1f5f9;
  border-color: #0f172a;
  color: #0f172a;
}

.compact-tag-chip.active[data-platform="kuaishou"] {
  background: #fff7ed;
  border-color: #ea580c;
  color: #c2410c;
}

.compact-chip-clear {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
}

.compact-chip-clear:hover {
  color: #ef4444;
  text-decoration: underline;
}

.compact-accordion {
  margin-top: 4px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
}

.compact-accordion summary {
  font-size: 11px;
  color: #6366f1;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.compact-accordion summary:hover {
  color: #4f46e5;
}

.compact-accordion summary::-webkit-details-marker {
  display: none;
}

.compact-accordion-content {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 错峰排期紧凑面板 */
.publish-schedule-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.schedule-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-strip-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-quick-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.schedule-quick-group button {
  padding: 2px 7px;
  font-size: 11px;
  height: 24px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #475569;
  cursor: pointer;
}

.schedule-quick-group button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.schedule-quick-group button.danger {
  color: #ef4444;
  border-color: #fca5a5;
}

.schedule-strip-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.schedule-strip-inputs .schedule-subfield {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  white-space: nowrap;
}

.schedule-strip-inputs .schedule-subfield label {
  font-weight: 600;
  color: #475569;
  font-size: 12px;
}

.schedule-strip-inputs input,
.schedule-strip-inputs select {
  font-size: 12.5px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  outline: none;
}

@media (max-width: 820px) {
  .publish-platforms-grid {
    grid-template-columns: 1fr;
  }
  .schedule-strip-inputs {
    flex-wrap: wrap;
  }
}

.publish-job-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.publish-target-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.publish-target {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
}

.publish-target.published {
  background: #ecfdf3;
}

.publish-target.failed {
  background: #fff1f2;
}

.wechat-bind-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
}

.wechat-bind-code strong {
  font-size: 22px;
}

.wechat-bind-code small {
  flex-basis: 100%;
}

@media (max-width: 900px) {
  .publish-platform-form {
    grid-template-columns: 1fr;
  }

  .publish-platform-form > * {
    grid-column: 1;
  }

  .publish-target {
    grid-template-columns: 1fr;
  }
}

/* HeyGem generation material picker */
.generation-picker {
  display: grid;
  gap: 16px;
}

.generation-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.generation-account span,
.generation-account small {
  color: #64748b;
}

.generation-account strong {
  padding: 4px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  text-transform: uppercase;
}

.generation-account small {
  margin-left: auto;
}

.generation-section {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.generation-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.generation-section h4,
.generation-section p {
  margin: 0;
}

.generation-section p,
.generation-section > header > span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.generation-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.generation-avatar-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding: 0 0 10px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  text-align: left;
}

.generation-avatar-card img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  background: #e2e8f0;
}

.generation-avatar-card strong,
.generation-avatar-card small {
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-avatar-card small {
  color: #94a3b8;
  font-size: 11px;
}

.generation-avatar-card i,
.generation-voice-card i {
  display: none;
}

.generation-avatar-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.generation-avatar-card.selected i,
.generation-voice-card.selected i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-style: normal;
}

.generation-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.generation-voice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.generation-voice-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.generation-voice-card .voice-select {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1px 10px;
  align-items: center;
  padding: 10px;
  background: transparent;
  color: #0f172a;
  text-align: left;
}

.generation-voice-card .voice-select > span {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.generation-voice-card b,
.generation-voice-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-voice-card small {
  color: #64748b;
}

.generation-voice-card .voice-preview {
  margin-right: 10px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #2563eb;
}

.generation-audio {
  width: 100%;
  height: 38px;
  margin-top: 12px;
}

.material-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.material-summary > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.material-summary span,
.material-summary p {
  color: #64748b;
}

.material-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.material-summary strong {
  padding: 5px 13px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

.material-summary p {
  flex-basis: 100%;
  margin: 0;
}

.material-section {
  margin-bottom: 18px;
}

.material-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  align-items: start;
  gap: 18px 14px;
  width: 100%;
}

.material-avatar-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.material-avatar-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.material-avatar-tile.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.material-avatar-tile img {
  position: absolute;
  inset: 0 0 36px;
  width: 100%;
  height: calc(100% - 36px);
  object-fit: cover;
  object-position: center;
  background: #000000;
  transition: filter 0.2s ease, transform 0.25s ease;
}

.material-avatar-tile:hover img {
  filter: brightness(0.55);
  transform: scale(1.02);
}

.material-avatar-name {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 36px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-avatar-default-mark {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.material-avatar-hover-actions {
  position: absolute;
  z-index: 4;
  top: 45%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 86%;
  max-width: 130px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.material-avatar-tile:hover .material-avatar-hover-actions,
.material-avatar-tile:focus-within .material-avatar-hover-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -45%);
}

.material-avatar-action {
  width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.material-avatar-action.primary-action {
  grid-column: 1 / -1;
  background: #ff5b45;
  color: #fff;
}

.material-avatar-action.danger-action {
  border-color: rgba(254, 202, 202, 0.94);
  background: rgba(254, 242, 242, 0.96);
  color: #dc2626;
}

.material-avatar-action:disabled {
  cursor: default;
  opacity: 0.62;
}

.material-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 3px 10px 0;
}

.material-card-actions button {
  min-height: 34px;
}

.material-default-active {
  border: 1px solid #86efac;
  border-radius: 7px;
  background: #dcfce7;
  color: #15803d;
}

.material-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.material-voice-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.material-voice-card .material-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 6px;
  padding: 4px 0 0;
}

.material-voice-card .material-card-actions button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 5px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.material-voice-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.material-voice-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #4f46e5;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.material-voice-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.material-voice-main strong,
.material-voice-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-voice-main small {
  color: #64748b;
}

@media (max-width: 720px) {
  .material-summary,
  .material-voice-card {
    align-items: stretch;
  }

  .material-summary {
    flex-direction: column;
  }

  .material-voice-grid {
    grid-template-columns: 1fr;
  }

  .material-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .material-avatar-tile {
    min-height: 0;
  }

  .material-avatar-hover-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .material-avatar-action {
    min-height: 35px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .material-voice-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .material-voice-card .material-card-actions {
    grid-column: 1 / -1;
    padding: 4px 0 0;
  }

  .material-voice-card .material-card-actions button {
    min-height: 34px;
    padding: 5px 2px;
    font-size: 12px;
  }
}

@media (hover: none) {
  .material-avatar-tile img {
    filter: brightness(0.74);
  }

  .material-avatar-hover-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }
}

.generation-title-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.generation-title-grid label {
  display: grid;
  gap: 7px;
}

.generation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f8fafc;
}

.generation-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 700px) {
  .generation-account {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .generation-account small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .generation-title-grid {
    grid-template-columns: 1fr;
  }
}

/* NCB_STUDIO_HOME_20260812 */
.studio-brand {
  margin-bottom: 14px;
}

.studio-brand strong {
  font-size: 19px;
  color: #111827;
}

.studio-brand span {
  margin-top: 1px;
  font-size: 12px;
}

.sidebar-create {
  width: 100%;
  min-height: 45px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7b54, #ff5c6c);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 92, 108, .2);
}

.sidebar-create span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.sidebar {
  overflow-y: auto;
}

/* Modern Sleek SaaS Sidebar Navigation */
.sidebar nav {
  gap: 5px !important;
}

.sidebar nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar nav button .nav-label {
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

/* Hover state */
.sidebar nav button:hover:not(.active) {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
  transform: translateX(3px);
}

.sidebar nav button:hover:not(.active) .nav-label {
  color: #0f172a;
  font-weight: 600;
}

/* Active state */
.sidebar nav button.active {
  background: linear-gradient(135deg, #eff6ff 0%, #f4f8fe 100%) !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: none !important;
}

.sidebar nav button.active .nav-label {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

/* Left indicator pill */
.sidebar nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3.5px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

/* Nav Icon Badge */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.nav-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.sidebar nav button:hover:not(.active) .nav-icon {
  transform: scale(1.08);
}

/* Pastel Themed Icon Badges */
.nav-icon.icon-copies {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(191, 219, 254, 0.6);
}

.nav-icon.icon-tasks {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid rgba(199, 210, 254, 0.6);
}

.nav-icon.icon-channels {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid rgba(254, 215, 170, 0.6);
}

.nav-icon.icon-monitor {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid rgba(254, 205, 211, 0.6);
}

.nav-icon.icon-benchmark {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid rgba(251, 207, 232, 0.6);
}

.nav-icon.icon-aichat {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(187, 247, 208, 0.6);
}

.nav-icon.icon-autopilot {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid rgba(233, 213, 255, 0.6);
}

.nav-icon.icon-avatars {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid rgba(165, 243, 252, 0.6);
}

.nav-icon.icon-tools {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-icon.icon-settings {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Active State Badge Highlight */
.sidebar nav button.active .nav-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35) !important;
  transform: scale(1.04);
}

.sidebar nav button.active .nav-icon svg {
  stroke: #ffffff !important;
}

.sidebar nav button.active .nav-icon svg polygon {
  fill: #ffffff !important;
}

/* Section Header */
.nav-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 8px 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.dashboard-view .topbar {
  position: relative;
  min-height: 70px;
  box-shadow: none;
}

.dashboard-view .content {
  padding-top: 18px;
}

.studio-home {
  display: grid;
  gap: 18px;
  max-width: 1680px;
  margin: 0 auto;
}

.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}

.home-welcome > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.home-welcome strong {
  font-size: 18px;
}

.home-welcome span {
  color: #7b8494;
}

.home-account-pill {
  padding: 8px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 16px;
}

.studio-hero-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 30px;
  border-radius: 22px;
  text-align: left;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.studio-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .16);
}

.studio-hero-card::before,
.studio-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.studio-hero-card::before {
  width: 230px;
  height: 230px;
  right: -50px;
  bottom: -80px;
}

.studio-hero-card::after {
  width: 120px;
  height: 120px;
  right: 82px;
  top: -54px;
}

.studio-hero-card.create {
  background: linear-gradient(135deg, #ff9961 0%, #ff5f6d 100%);
}

.studio-hero-card.avatar {
  background: linear-gradient(135deg, #9381ff 0%, #6665ed 52%, #768bea 100%);
}

.studio-hero-card.batch {
  background: linear-gradient(135deg, #31265c 0%, #1a1437 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 68%;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy b {
  font-size: clamp(22px, 1.65vw, 31px);
  line-height: 1.25;
}

.hero-copy small {
  max-width: 320px;
  margin-top: 9px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

.hero-copy i {
  margin-top: 30px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.hero-visual {
  position: absolute;
  right: 24px;
  bottom: 23px;
  z-index: 1;
  display: grid;
  width: 116px;
  height: 142px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 58px 58px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.hero-visual em {
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #4f46e5;
  font-size: 27px;
  font-style: normal;
  font-weight: 900;
}

.studio-hero-card.create .hero-visual em { color: #f97316; }
.studio-hero-card.batch .hero-visual em { color: #21183f; }

.hero-visual i {
  position: absolute;
  right: -5px;
  top: 12px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #f97316;
  font-style: normal;
  font-weight: 900;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-shortcuts > button {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .035);
}

.home-shortcuts > button:hover {
  border-color: #bfd3ff;
  background: #fbfdff;
}

.home-shortcuts i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: #eef4ff;
  color: #2563eb;
  font-style: normal;
  font-weight: 900;
}

.home-shortcuts span,
.home-shortcuts b,
.home-shortcuts small {
  display: block;
  min-width: 0;
}

.home-shortcuts b { color: #172033; }
.home-shortcuts small {
  margin-top: 2px;
  overflow: hidden;
  color: #8a94a6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-overview {
  display: flex;
  overflow: hidden;
  border: 1px solid #e7ebf2;
  border-radius: 15px;
  background: #fff;
}

.home-overview span {
  flex: 1;
  padding: 13px 20px;
  border-right: 1px solid #edf0f5;
  color: #7b8494;
  text-align: center;
}

.home-overview span:last-child { border-right: 0; }
.home-overview b { margin-right: 5px; color: #172033; font-size: 19px; }

.home-section {
  padding: 20px;
  border: 1px solid #e7ebf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .04);
}

.home-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.home-section h3,
.home-section p { margin: 0; }
.home-section h3 { font-size: 21px; }
.home-section p { margin-top: 2px; color: #8a94a6; font-size: 13px; }
.home-section > header button { padding: 7px 9px; background: transparent; color: #64748b; }
.home-section > header button:hover { color: #2563eb; }

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.home-video-card,
.home-avatar-card {
  overflow: hidden;
  border: 1px solid #e6eaf1;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-video-card:hover,
.home-avatar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .1);
}

.home-video-thumb {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #101318;
}

.home-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video-placeholder {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg,#5b7cfa,#7c3aed);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.home-task-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.home-task-badge.completed { background: rgba(22,163,74,.86); }
.home-task-badge.failed { background: rgba(220,38,38,.88); }

.home-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #111827;
  transform: translate(-50%, -50%);
}

.home-video-info { padding: 11px 11px 13px; }
.home-video-info strong,
.home-video-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-video-info strong { font-size: 14px; }
.home-video-info span { margin-top: 4px; color: #98a2b3; font-size: 11px; }

.home-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.home-avatar-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg,#eef2f7,#dce4ef);
}

.home-avatar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-avatar-card strong,
.home-avatar-card > span { display: block; margin: 0 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-avatar-card strong { margin-top: 10px; }
.home-avatar-card > span { margin-top: 2px; margin-bottom: 12px; color: #98a2b3; font-size: 12px; }

.home-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #d9e1ee;
  border-radius: 14px;
  color: #8a94a6;
  text-align: center;
}

.home-empty b { color: #475569; }
.home-empty button { margin-top: 7px; padding: 8px 15px; border-radius: 9px; background: #2563eb; color: #fff; }

/* My Works: visual compact gallery cards matching reference */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  align-items: start;
  gap: 18px 14px;
}

.work-card {
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.work-card.failed .work-cover { box-shadow: 0 0 0 2px #fecaca; }

.work-cover {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #000000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.18s ease;
}

.work-card:hover .work-cover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.work-cover.has-preview {
  min-height: 0;
}

.work-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000000;
}

.work-card:not(.completed):not(.in-trash) .work-cover.has-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1.5px);
  z-index: 2;
  pointer-events: none;
}

.work-cover.preview-failed img { display: none; }

.work-cover-placeholder {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f76ff, #7b4dff);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(79, 112, 255, .3);
}

.work-select {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  cursor: pointer;
}

.work-select input { position: absolute; opacity: 0; }
.work-select i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 6px;
  background: rgba(0, 0, 0, .4);
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.work-select input:checked + i {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.work-status {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.work-status.completed { background: rgba(22, 163, 74, .88); }
.work-status.failed { background: rgba(220, 38, 38, .88); }

.work-duration-badge {
  position: absolute;
  z-index: 4;
  bottom: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.work-hover-actions {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 10px 6px;
  background: rgba(7, 12, 22, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(2px);
}

.work-card:hover .work-hover-actions,
.work-card:focus-within .work-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.work-hover-actions button {
  width: 88%;
  max-width: 130px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.work-hover-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.work-hover-actions .preview {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
}

.work-hover-actions .download {
  border-color: #3b82f6;
  background: #3b82f6;
}

.work-hover-actions .reuse {
  border-color: #ff5722;
  background: #ff5722;
}

.work-hover-actions .publish {
  border-color: #10b981;
  background: #10b981;
}

.work-delete-float {
  position: absolute;
  z-index: 6;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s ease;
}

.work-card:hover .work-delete-float,
.work-card:focus-within .work-delete-float { opacity: 1; }
.work-delete-float:hover { background: #ef4444; }

.work-making {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.work-making b { font-size: 22px; }
.work-making span { font-size: 11px; font-weight: 700; }
.work-making.failed b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dc2626;
}

.work-card-body {
  padding: 8px 1px 0;
}

.work-card-body h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 36px;
}

.work-card-body time {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.work-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #e7ebf2; margin-top: 4px; }
.work-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3568f5, #23bf71); }
.work-error {
  margin-top: 4px;
  overflow: hidden;
  color: #dc2626;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-footer time { color: #94a0b3; font-size: 12px; white-space: nowrap; }
.work-actions { display: none; justify-content: flex-end; gap: 5px; }
.work-actions button { padding: 6px 8px; border-radius: 8px; font-size: 12px; }

/* My Works preview: video on the left, complete script on the right */
.modal-root.work-preview-mode .modal {
  width: min(1420px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 42px));
  max-height: none;
  border-radius: 18px;
  background: #fff;
}

.modal-root.work-preview-mode .modal header { padding: 20px 28px; }
.modal-root.work-preview-mode .modal header h3 { color: #111827; font-size: 24px; }
.modal-root.work-preview-mode .modal .icon { background: #f2f4f8; color: #475569; }
.modal-root.work-preview-mode .modal-body {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
}

.work-preview-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(390px, .95fr) minmax(420px, 1.05fr);
  gap: 36px;
  padding: 22px 28px 24px;
}

.work-preview-player {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
  background: #f5f7fa;
}

.work-preview-player video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 690px;
  object-fit: contain;
  background: #000;
}

.work-preview-script {
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 20px 0;
  color: #334155;
}

.work-preview-script h4 { margin: 0 0 18px; color: #111827; font-size: 21px; }
.work-preview-script-content { font-size: 16px; line-height: 2; white-space: normal; }
.work-preview-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 20px;
  border-top: 1px solid #edf0f5;
}

.work-preview-toolbar button { padding: 10px 18px; border-radius: 9px; }

@media (max-width: 1320px) {
  .studio-hero-grid { grid-template-columns: 1fr 1fr; }
  .studio-hero-card.batch { grid-column: 1 / -1; min-height: 175px; }
  .home-video-grid,
  .home-avatar-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
}

@media (max-width: 980px) {
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-video-grid,
  .home-avatar-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .version-badge { display: none; }
  .modal-root.work-preview-mode .modal {
    width: min(760px, calc(100vw - 24px));
    height: min(920px, calc(100vh - 24px));
  }
  .work-preview-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: auto;
  }
  .work-preview-player { min-height: 430px; }
  .work-preview-script { min-height: 260px; overflow: visible; }
}

@media (hover: none), (pointer: coarse) {
  .work-delete-float { opacity: 1; }
  .work-hover-actions { display: none; }
  .work-actions { display: flex; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .studio-hero-grid { grid-template-columns: 1fr; }
  .studio-hero-card.batch { grid-column: auto; }
  .studio-hero-card { min-height: 185px; padding: 23px; }
  .home-welcome { align-items: flex-start; flex-direction: column; }
  .home-welcome > div { align-items: flex-start; flex-direction: column; gap: 1px; }
  .home-overview { display: grid; grid-template-columns: 1fr 1fr; }
  .home-overview span { border-bottom: 1px solid #edf0f5; }
  .home-video-grid,
  .home-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work-cover { height: auto; aspect-ratio: 4 / 5; }
  .work-cover.has-preview { aspect-ratio: auto; min-height: 0; }
  .work-card-body { padding: 10px 1px 0; }
  .work-card-body h3 { min-height: 40px; font-size: 14px; }
  .work-footer { align-items: flex-start; flex-direction: column; }
  .work-actions { flex-wrap: wrap; justify-content: flex-start; }
  .work-preview-layout { padding: 14px; }
  .work-preview-player { min-height: 360px; }
  .work-preview-toolbar { padding: 12px 14px 16px; }
}

@media (max-width: 480px) {
  .works-gallery { grid-template-columns: 1fr; }
}

/* 独立数字人创作工作台 */
body.creator-open { overflow: hidden; }

body.creator-standalone {
  background: #f3f6fb;
}

body.creator-standalone .creator-workspace {
  position: fixed;
  inset: 0;
}

.creator-workspace {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #f4f5f8;
  color: #172033;
}

.creator-workspace.hidden { display: none; }

.creator-page {
  height: 100vh;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 118px;
  overflow: hidden;
}

.creator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #e8ebf1;
}

.creator-brand,
.creator-top-actions,
.creator-canvas-toolbar,
.creator-writing-tools,
.creator-selected-voice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-back {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f3f5f8;
  color: #334155;
  font-size: 24px;
}

.creator-brand strong { font-size: 18px; }
.creator-brand span { color: #94a3b8; font-size: 13px; }
.creator-saved { color: #7b8799; font-size: 14px; }

.creator-top-actions button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.creator-top-actions .creator-generate {
  border-color: #ff654f;
  background: linear-gradient(135deg, #ff7b56, #ff4f48);
  color: #fff;
}

.creator-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 28%) minmax(350px, 1fr) minmax(340px, 28%);
}

.creator-library {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  background: #fff;
  border-right: 1px solid #e7eaf0;
}

.creator-tool-rail {
  padding: 14px 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid #edf0f5;
  background: #fafbfc;
}

.creator-tool-rail button {
  min-height: 58px;
  padding: 7px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #637083;
  font-size: 13px;
}

.creator-tool-rail button.active {
  background: #fff1ed;
  color: #ff5d49;
  font-weight: 800;
}

.creator-library-content {
  min-width: 0;
  overflow: auto;
  padding: 20px 18px;
}

.creator-library-panel { display: none; }
.creator-library-panel.active { display: block; }
.creator-library-panel h3 { margin: 0 0 5px; font-size: 19px; }
.creator-library-panel > p { margin: 0 0 18px; color: #8491a5; font-size: 13px; }

.creator-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.creator-avatar-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #f5f7fa;
  text-align: left;
}

.creator-avatar-card.selected {
  border-color: #ff684f;
  box-shadow: 0 0 0 3px rgba(255, 104, 79, .13);
}

.creator-avatar-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.creator-avatar-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.creator-avatar-card strong {
  display: block;
  padding: 9px 9px 10px;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-voice-grid { display: grid; gap: 10px; }

.creator-voice-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #fff;
}

.creator-voice-card.selected {
  border-color: #3267ef;
  background: #eef4ff;
}

.creator-voice-card > span:first-child {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6850ff, #3b59ef);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.creator-voice-card strong,
.creator-voice-card small { display: block; }
.creator-voice-card small { margin-top: 2px; color: #7d8ba1; }
.creator-voice-preview,
.creator-voice-select { white-space: nowrap; }
.creator-voice-preview { padding: 7px 10px; }
.creator-voice-select { padding: 7px 10px; color: #315fdf; }

.creator-quick-title { display: grid; gap: 10px; }
.creator-quick-title label { color: #65728a; font-size: 13px; font-weight: 700; }
.creator-quick-title input,
.creator-field input,
.creator-field textarea {
  width: 100%;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  background: #fff;
  color: #172033;
}
.creator-quick-title input,
.creator-field input { height: 44px; padding: 0 12px; }

.creator-canvas-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px;
  background: #f1f2f5;
}

.creator-canvas-toolbar {
  padding: 7px 12px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: #667085;
  font-size: 13px;
}

.creator-canvas-toolbar button { padding: 3px 8px; border: 0; background: transparent; }

.creator-phone-stage {
  position: relative;
  container-type: inline-size;
  height: min(65vh, 650px);
  max-width: 92%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border-radius: 5px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.creator-stage-image {
  position: absolute;
  left: var(--creator-video-left, 0);
  top: var(--creator-video-top, 0);
  width: var(--creator-video-width, 100%);
  height: var(--creator-video-height, 100%);
  display: block;
  object-fit: fill;
}

.creator-render-preview {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.creator-render-preview.hidden {
  display: none;
}

.creator-center-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 1px rgba(255, 75, 62, .45), 0 0 16px rgba(255, 75, 62, .45);
  opacity: 0;
  pointer-events: none;
}

.creator-center-guide::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border: 2px solid #fff;
  background: #ff4b3e;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.creator-phone-stage.show-center-guide .creator-center-guide {
  opacity: 1;
}

.creator-phone-stage.center-snapped .creator-center-guide {
  width: 2px;
  background: #31d27c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 18px rgba(49,210,124,.8);
}

.creator-phone-stage.center-snapped .creator-center-guide::before {
  background: #31d27c;
}

.creator-title-preview,
.creator-subtitle-preview {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 92%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 1.14;
  text-shadow: 2px 2px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111;
}

.creator-title-preview { top: 8%; color: #ffd500; font-size: clamp(18px, 2vw, 32px); }
.creator-subtitle-preview { top: 15%; padding: 8px 5px; background: #f51d13; color: #fff; font-size: clamp(18px, 2.1vw, 34px); }
.creator-stage-note { position: absolute; left: 6%; right: 6%; bottom: 7%; color: #fff; text-align: center; font-weight: 800; text-shadow: 0 2px 3px #000; }

.creator-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: #ff664f;
  font-size: 24px;
}

.creator-inspector {
  min-width: 0;
  overflow: auto;
  padding: 17px 18px 26px;
  background: #fff;
  border-left: 1px solid #e7eaf0;
}

.creator-inspector-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  padding: 5px;
  border-bottom: 1px solid #edf0f4;
  border-radius: 12px;
  background: #f4f7fb;
}

.creator-inspector-tab {
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #748197;
  text-align: center;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.creator-inspector-tab.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .12), 0 0 0 1px rgba(37, 99, 235, .08);
}
.creator-inspector-panel { display: none; }
.creator-inspector-panel.active { display: block; }

.creator-field { display: grid; gap: 7px; margin-bottom: 14px; }
.creator-field > span { color: #627086; font-size: 13px; font-weight: 700; }
.creator-field textarea { min-height: 265px; padding: 13px; resize: vertical; line-height: 1.75; }

.creator-writing-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -3px 0 16px;
  flex-wrap: wrap;
}

.creator-writing-tools .creator-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.creator-writing-tools .creator-tool-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}

.creator-writing-tools .creator-tool-btn.ai-rewrite-btn {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: #c7d2fe;
  color: #4338ca;
}

.creator-writing-tools .creator-tool-btn.ai-rewrite-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-color: #818cf8;
  color: #3730a3;
}

.creator-writing-tools .creator-tool-btn.pronunciation-btn {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.creator-writing-tools .creator-tool-btn.pronunciation-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.creator-selected-voice { justify-content: space-between; padding: 12px; border-radius: 10px; background: #f6f8fb; }
.creator-switch { width: 38px; height: 22px; accent-color: #ff644e; }
.creator-audio { width: 100%; }

.creator-subtitle-view-box {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.creator-subtitle-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.creator-subtitle-view-head b,
.creator-subtitle-view-head small {
  display: block;
}

.creator-subtitle-view-head b {
  color: #172033;
  font-size: 16px;
}

.creator-subtitle-view-head small {
  margin-top: 3px;
  color: #7b8798;
  font-size: 12px;
}

.creator-subtitle-view-head button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}

.creator-subtitle-view-head button:disabled {
  opacity: .7;
}

.creator-subtitle-list {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.creator-subtitle-list.is-empty {
  display: block;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  color: #7b8798;
  line-height: 1.6;
}

.creator-subtitle-list.is-empty p {
  margin: 0;
}

.creator-subtitle-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #fff;
}

.creator-subtitle-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.creator-subtitle-row textarea {
  min-height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.creator-subtitle-row small {
  grid-column: 2;
  color: #93a0b2;
  font-size: 12px;
}

.creator-timeline {
  min-width: 0;
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 20px 16px;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #e5e9ef;
}

.creator-timeline-title { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.creator-timeline-title strong { font-size: 15px; }
.creator-time { color: #7b8798; font-size: 13px; }
.creator-track { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; }
.creator-track-label { color: #69768b; font-size: 13px; }
.creator-filmstrip { height: 72px; display: flex; overflow: hidden; border: 3px solid #ff6b50; border-radius: 6px; background: #111; }
.creator-filmstrip span { min-width: 76px; flex: 1 0 76px; overflow: hidden; border-right: 1px solid rgba(255,255,255,.15); }
.creator-strip-image { width: 100%; height: 100%; display: block; object-fit: cover; }

@media (max-width: 1180px) {
  .creator-layout { grid-template-columns: 290px minmax(320px, 1fr) 320px; }
  .creator-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-top-actions .creator-secondary { display: none; }
}

@media (max-width: 860px) {
  .creator-page { grid-template-rows: 60px minmax(0, 1fr); }
  .creator-layout { display: block; overflow: auto; }
  .creator-library,
  .creator-inspector,
  .creator-canvas-area { min-height: auto; border: 0; }
  .creator-library { grid-template-columns: 58px minmax(0, 1fr); }
  .creator-canvas-area { min-height: 620px; }
  .creator-phone-stage { height: 570px; }
  .creator-timeline { display: none; }
  .creator-brand span,
  .creator-saved { display: none; }
}

/* Creator workspace final isolation. Legacy form rules below the shared
   stylesheet used to squeeze complete labels into the 38px switch width. */
.creator-page .creator-inspector-tabs {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

.creator-page .creator-inspector-tabs button,
.creator-page .creator-inspector-tab {
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
}

.creator-page .creator-inspector-panel .creator-field {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.creator-page .creator-inspector-panel .creator-field > span {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
}

.creator-page .creator-inspector-panel .creator-switch {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 12px 0 !important;
  cursor: pointer !important;
}

.creator-page .creator-inspector-panel .creator-switch > span {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.creator-page .creator-inspector-panel .creator-switch b,
.creator-page .creator-inspector-panel .creator-switch small {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
}

.creator-page .creator-inspector-panel .creator-switch > input {
  appearance: none !important;
  position: relative !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 26px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #d8dee8 !important;
  cursor: pointer !important;
  transition: background .16s ease !important;
}

.creator-page .creator-inspector-panel .creator-switch > input::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .25) !important;
  transition: transform .16s ease !important;
}

.creator-page .creator-inspector-panel .creator-switch.is-on > input,
.creator-page .creator-inspector-panel .creator-switch > input:checked {
  background: #ff644e !important;
}

.creator-page .creator-inspector-panel .creator-switch.is-on > input::after,
.creator-page .creator-inspector-panel .creator-switch > input:checked::after {
  transform: translateX(18px) !important;
}

.creator-page .creator-inspector-panel .creator-switch > [data-switch-state] {
  width: 22px !important;
  min-width: 22px !important;
  color: #94a3b8 !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.creator-page .creator-inspector-panel .creator-switch.is-on > [data-switch-state] {
  color: #ff644e !important;
}

.creator-page .creator-selected-voice {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

.creator-page .creator-selected-voice > span {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
}

.creator-page .creator-selected-voice > div {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  writing-mode: horizontal-tb !important;
}

.creator-page .creator-selected-voice button {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.creator-page .creator-audio-drive {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #f8fafc;
}

.creator-page .creator-audio-drive h4 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.creator-page .creator-audio-drive p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.creator-page .creator-audio-upload {
  display: grid;
  place-items: center;
  min-height: 104px;
  border: 1px dashed #9fb2cc;
  border-radius: 12px;
  background: #fff;
  color: #2563eb;
  font-weight: 900;
  cursor: pointer;
}

.creator-page .creator-audio-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.creator-page .creator-audio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-page .creator-audio-actions button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-weight: 800;
}

.creator-page .creator-audio-actions small {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.creator-page .creator-drive-audio-player {
  width: 100%;
}

.creator-page .creator-title-preview {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  transform: none !important;
  display: block !important;
  background: transparent !important;
  pointer-events: none !important;
}

.creator-page .creator-title-preview.hidden,
.creator-page .creator-subtitle-preview.hidden {
  display: none !important;
}

.creator-page .creator-title-preview strong {
  position: absolute !important;
  top: var(--creator-title-top, 16%) !important;
  left: var(--creator-title-left, 50%) !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: max-content !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  color: var(--creator-title-color, #ffd500) !important;
  font-family: var(--creator-title-line2-font, var(--creator-title-font)), "Microsoft YaHei", sans-serif !important;
  font-size: var(--creator-title-size, 25px) !important;
  font-weight: var(--creator-title-font-weight, 800) !important;
  font-style: var(--creator-title-font-style, normal) !important;
  line-height: 1.12 !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  -webkit-text-stroke: 0 !important;
  text-shadow:
    var(--creator-title-stroke-neg, -1.6px) var(--creator-title-stroke-neg, -1.6px) 0 #111,
    0 var(--creator-title-stroke-neg, -1.6px) 0 #111,
    var(--creator-title-stroke, 1.6px) var(--creator-title-stroke-neg, -1.6px) 0 #111,
    var(--creator-title-stroke-neg, -1.6px) 0 0 #111,
    var(--creator-title-stroke, 1.6px) 0 0 #111,
    var(--creator-title-stroke-neg, -1.6px) var(--creator-title-stroke, 1.6px) 0 #111,
    0 var(--creator-title-stroke, 1.6px) 0 #111,
    var(--creator-title-stroke, 1.6px) var(--creator-title-stroke, 1.6px) 0 #111 !important;
  cursor: grab !important;
  pointer-events: auto !important;
  touch-action: none !important;
  user-select: none !important;
}

.creator-page .creator-title-preview strong > b,
.creator-page .creator-title-preview span > b {
  display: block !important;
  min-width: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-shadow: inherit !important;
  -webkit-text-stroke: inherit !important;
}

.creator-page .creator-title-preview span {
  position: absolute !important;
  top: var(--creator-title-line2-top, 22%) !important;
  left: var(--creator-title-line2-left, 50%) !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  place-items: center !important;
  width: var(--creator-title-bg-width, 76%) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: var(--creator-title-bg-height, 45px) !important;
  padding: 0 !important;
  overflow: visible !important;
  background: var(--creator-title-bg, #f51d13) !important;
  border-radius: var(--creator-title-bg-radius, 0) !important;
  color: var(--creator-title-line2-color, #fff) !important;
  font-family: var(--creator-title-line2-font, var(--creator-title-font)), "Microsoft YaHei", sans-serif !important;
  font-size: var(--creator-title-line2-size, 25px) !important;
  font-weight: var(--creator-title-line2-font-weight, 800) !important;
  font-style: var(--creator-title-line2-font-style, normal) !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  -webkit-text-stroke: 0 !important;
  text-shadow:
    var(--creator-title-stroke-neg, -1.6px) var(--creator-title-stroke-neg, -1.6px) 0 #111,
    0 var(--creator-title-stroke-neg, -1.6px) 0 #111,
    var(--creator-title-stroke, 1.6px) var(--creator-title-stroke-neg, -1.6px) 0 #111,
    var(--creator-title-stroke-neg, -1.6px) 0 0 #111,
    var(--creator-title-stroke, 1.6px) 0 0 #111,
    var(--creator-title-stroke-neg, -1.6px) var(--creator-title-stroke, 1.6px) 0 #111,
    0 var(--creator-title-stroke, 1.6px) 0 #111,
    var(--creator-title-stroke, 1.6px) var(--creator-title-stroke, 1.6px) 0 #111 !important;
  cursor: grab !important;
  pointer-events: auto !important;
  touch-action: none !important;
  user-select: none !important;
}

.creator-page .creator-resize-handle {
  position: absolute !important;
  right: -8px !important;
  bottom: -8px !important;
  z-index: 4 !important;
  width: 15px !important;
  height: 15px !important;
  display: none !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #20c76b !important;
  box-shadow: 0 0 0 2px rgba(32, 199, 107, .28), 0 2px 8px rgba(15, 23, 42, .35) !important;
  cursor: nwse-resize !important;
  pointer-events: auto !important;
  touch-action: none !important;
}

.creator-page .creator-resize-handle::before {
  content: "" !important;
  display: none !important;
}

.creator-page .creator-subtitle-preview {
  top: var(--creator-subtitle-top, auto) !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--creator-subtitle-left, 50%) !important;
  width: fit-content !important;
  max-width: 90% !important;
  padding: var(--creator-subtitle-padding, 0) !important;
  border-radius: var(--creator-subtitle-radius, 0) !important;
  overflow: visible !important;
  transform: translateX(-50%) !important;
  background: var(--creator-subtitle-bg, transparent) !important;
  color: var(--creator-subtitle-color, #fff) !important;
  font-family: var(--creator-subtitle-font), "Microsoft YaHei", sans-serif !important;
  font-size: var(--creator-subtitle-size, 21px) !important;
  font-weight: var(--creator-subtitle-font-weight, 800) !important;
  font-style: var(--creator-subtitle-font-style, normal) !important;
  letter-spacing: var(--creator-subtitle-letter-spacing, 0) !important;
  opacity: var(--creator-subtitle-opacity, 1) !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  -webkit-text-stroke: 0 !important;
  text-shadow:
    var(--creator-subtitle-outline-width-neg, -1.8px) var(--creator-subtitle-outline-width-neg, -1.8px) 0 var(--creator-subtitle-outline, #111),
    0 var(--creator-subtitle-outline-width-neg, -1.8px) 0 var(--creator-subtitle-outline, #111),
    var(--creator-subtitle-outline-width, 1.8px) var(--creator-subtitle-outline-width-neg, -1.8px) 0 var(--creator-subtitle-outline, #111),
    var(--creator-subtitle-outline-width-neg, -1.8px) 0 0 var(--creator-subtitle-outline, #111),
    var(--creator-subtitle-outline-width, 1.8px) 0 0 var(--creator-subtitle-outline, #111),
    var(--creator-subtitle-outline-width-neg, -1.8px) var(--creator-subtitle-outline-width, 1.8px) 0 var(--creator-subtitle-outline, #111),
    0 var(--creator-subtitle-outline-width, 1.8px) 0 var(--creator-subtitle-outline, #111),
    var(--creator-subtitle-outline-width, 1.8px) var(--creator-subtitle-outline-width, 1.8px) 0 var(--creator-subtitle-outline, #111) !important;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
}

.creator-page .creator-title-preview strong.selected,
.creator-page .creator-title-preview span.selected,
.creator-page .creator-subtitle-preview.selected,
.creator-page .creator-title-preview strong.dragging,
.creator-page .creator-title-preview span.dragging,
.creator-page .creator-subtitle-preview.dragging {
  outline: 2px solid #20c76b !important;
  outline-offset: 4px !important;
}

.creator-page .creator-title-preview strong.selected .creator-resize-handle,
.creator-page .creator-title-preview span.selected .creator-resize-handle,
.creator-page .creator-title-preview strong.dragging .creator-resize-handle,
.creator-page .creator-title-preview span.dragging .creator-resize-handle {
  display: block !important;
}

.creator-page .creator-title-preview strong.dragging,
.creator-page .creator-title-preview span.dragging,
.creator-page .creator-subtitle-preview.dragging {
  cursor: grabbing !important;
}

.creator-page .creator-resize-handle.resizing {
  transform: scale(1.12) !important;
}

.creator-page .creator-style-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
  margin: 4px 0 14px !important;
}

.creator-page .creator-style-section {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.creator-page .creator-style-section.primary {
  border-color: #c8d9ff;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.creator-page .creator-style-section.accent {
  border-color: #ffd0c7;
  background: linear-gradient(180deg, #fffafa 0%, #fff4f1 100%);
}

.creator-page .creator-style-section::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.creator-page .creator-style-section.accent::before {
  background: #ff4f3d;
}

.creator-page .creator-style-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.creator-page .creator-style-section-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.creator-page .creator-style-section.accent .creator-style-section-head > span {
  background: #ff4f3d;
}

.creator-page .creator-style-section-head b {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.creator-page .creator-style-section-head small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.creator-page .creator-style-section .creator-style-grid {
  margin: 0 !important;
}

.creator-page .creator-style-heading {
  margin: 16px 0 8px !important;
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.creator-page .creator-style-grid .creator-field {
  margin-bottom: 0 !important;
}

.creator-page .creator-style-grid input[type="color"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.creator-page .creator-style-grid input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0 !important;
}

.creator-page .creator-style-grid input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(15, 23, 42, .24) !important;
  border-radius: 5px !important;
}

.creator-page .creator-color-popover-wrap {
  position: relative !important;
}

.creator-page .creator-color-trigger {
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  border: 1px solid #cfd6e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #172033 !important;
  text-align: left !important;
}

.creator-page .creator-color-trigger span {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid rgba(15, 23, 42, .22) !important;
  border-radius: 5px !important;
  background: var(--swatch) !important;
}

.creator-page .creator-color-trigger b {
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.creator-page .creator-color-popover {
  position: fixed !important;
  top: var(--popover-top, 120px) !important;
  left: var(--popover-left, 120px) !important;
  z-index: 5000 !important;
  width: var(--popover-width, 360px) !important;
  padding: 14px !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22) !important;
}

.creator-page .creator-color-plane {
  position: relative !important;
  height: 240px !important;
  border-radius: 6px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0), #000),
    linear-gradient(90deg, #fff, hsl(var(--hue, 0), 90%, 45%)) !important;
}

.creator-page .creator-color-plane i {
  position: absolute !important;
  right: -8px !important;
  top: 34px !important;
  width: 22px !important;
  height: 22px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .2) !important;
}

.creator-page .creator-color-hex {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.creator-page .creator-color-hex span,
.creator-page .creator-color-hex input {
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #172033 !important;
  font-size: 14px !important;
}

.creator-page .creator-color-hex input {
  width: 100% !important;
  text-align: center !important;
}

.creator-page .creator-color-popover p {
  margin: 14px 0 8px !important;
  color: #4b5870 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.creator-page .creator-color-swatches {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.creator-page .creator-color-swatches button {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, .22) !important;
  border-radius: 50% !important;
  background: var(--swatch) !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55) !important;
}

.creator-page .creator-color-swatches button.active {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

.creator-page .creator-color-swatches small {
  margin-left: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.creator-page .creator-hue-slider {
  width: 100% !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  appearance: none !important;
  cursor: pointer !important;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00) !important;
}

.creator-page .creator-hue-slider::-webkit-slider-thumb {
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: hsl(var(--hue, 0), 90%, 50%) !important;
  box-shadow: 0 0 0 2px #2563eb, 0 2px 8px rgba(15, 23, 42, .25) !important;
}

.creator-page .creator-switch.compact {
  padding: 0 !important;
}

/* Creator workspace layout polish: scrollable asset lists, centered preview,
   and compact voice cards. */
.creator-page .creator-layout,
.creator-page .creator-library,
.creator-page .creator-library-content,
.creator-page .creator-library-panel {
  min-height: 0 !important;
}

.creator-page .creator-library {
  overflow: hidden !important;
}

.creator-page .creator-library-content {
  height: 100% !important;
  overflow: hidden !important;
}

.creator-page .creator-library-panel.active {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.creator-page .creator-library-panel > header {
  flex: 0 0 auto !important;
}

.creator-page .creator-avatar-grid,
.creator-page .creator-voice-grid {
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 6px 22px 0 !important;
}

.creator-page .creator-avatar-grid {
  flex: 1 1 auto !important;
  align-content: start !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.creator-page .creator-tool-rail {
  padding: 14px 8px !important;
}

.creator-page .creator-tool-rail button {
  width: 100% !important;
  min-height: 56px !important;
  padding: 8px 6px !important;
  display: grid !important;
  place-items: center !important;
  color: #526174 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}

.creator-page .creator-tool-rail button.active {
  color: #ff5d49 !important;
}

.creator-page .creator-avatar-card {
  height: 360px !important;
  border-radius: 14px !important;
  background: #f6f8fb !important;
  display: flex !important;
  flex-direction: column !important;
}

.creator-page .creator-avatar-thumb {
  height: 312px !important;
  min-height: 312px !important;
  aspect-ratio: auto !important;
  display: grid !important;
  place-items: center !important;
  background: #050505 !important;
}

.creator-page .creator-avatar-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.creator-page .creator-avatar-card strong {
  flex: 0 0 auto !important;
  padding: 8px 10px 10px !important;
}

.creator-page .creator-voice-grid {
  flex: 1 1 auto !important;
  align-content: start !important;
}

.creator-page .creator-audio {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
}

.creator-page .creator-canvas-area {
  position: relative !important;
  min-height: 0 !important;
  overflow: hidden !important;
  justify-content: center !important;
  padding: 18px 22px !important;
}

.creator-page .creator-phone-stage {
  height: min(58vh, calc(100vh - 260px), 560px) !important;
  max-height: calc(100vh - 260px) !important;
}

.creator-page .creator-stage-note {
  bottom: 8% !important;
}

.creator-page .creator-voice-card {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 76px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 14px !important;
}

.creator-page .creator-voice-select {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #172033 !important;
  text-align: left !important;
}

.creator-page .creator-voice-select > span {
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #eef3ff, #e7ecf8) !important;
  color: #315fdf !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.creator-page .creator-voice-select > div {
  min-width: 0 !important;
}

.creator-page .creator-voice-select b,
.creator-page .creator-voice-select small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.creator-page .creator-voice-select b {
  color: #172033 !important;
  font-size: 15px !important;
}

.creator-page .creator-voice-select small {
  margin-top: 2px !important;
  color: #7b8798 !important;
  font-size: 12px !important;
}

.creator-page .creator-voice-select i {
  color: #315fdf !important;
  font-style: normal !important;
  opacity: 0 !important;
}

.creator-page .creator-voice-card.selected .creator-voice-select i {
  opacity: 1 !important;
}

.creator-page .creator-voice-preview {
  width: 76px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #f1f4f8 !important;
  color: #172033 !important;
  font-weight: 800 !important;
}

.creator-page .creator-voice-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
}

.creator-page .creator-voice-modal.hidden {
  display: none !important;
}

.creator-page .creator-voice-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .42) !important;
}

.creator-page .creator-voice-dialog {
  position: relative !important;
  width: min(92vw, 1120px) !important;
  height: min(84vh, 760px) !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28) !important;
}

.creator-page .creator-voice-dialog > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 28px 32px 18px !important;
}

.creator-page .creator-voice-dialog > header div {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  color: #8a96a8 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.creator-page .creator-voice-dialog > header b {
  position: relative !important;
  color: #172033 !important;
  font-size: 22px !important;
}

.creator-page .creator-voice-dialog > header b::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -14px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #172033 !important;
}

.creator-page .creator-voice-dialog > header button {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

.creator-page .creator-voice-modal-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 22px 32px !important;
}

.creator-page .creator-voice-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

.creator-page .creator-voice-tags button,
.creator-page .creator-voice-modal-tools label {
  height: 42px !important;
  border: 1px solid #dce3ef !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #526174 !important;
}

.creator-page .creator-voice-tags button {
  padding: 0 24px !important;
  font-weight: 800 !important;
}

.creator-page .creator-voice-tags button.active {
  background: #f6f8fb !important;
  color: #172033 !important;
}

.creator-page .creator-voice-modal-tools label {
  width: min(320px, 42vw) !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 0 14px !important;
}

.creator-page .creator-voice-modal-tools input {
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  color: #172033 !important;
  font-size: 15px !important;
}

.creator-page .creator-voice-modal-grid {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 26px 52px !important;
  overflow: auto !important;
  padding: 20px 42px 40px !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card {
  min-height: 94px !important;
  padding: 14px !important;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card:hover {
  border-color: #d7dfec !important;
  background: #fbfcff !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.selected {
  border-color: #8b96a6 !important;
  background: #f8fafc !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.selected .creator-voice-select > span {
  background: #cfd6e0 !important;
  color: #fff !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.selected .creator-voice-select > span::before {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  border-left: 14px solid #fff !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.selected .creator-voice-select > span {
  font-size: 0 !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.selected .creator-voice-select i {
  width: 22px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #315fdf !important;
  color: #fff !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

.creator-page .creator-voice-modal-grid .creator-voice-card.hidden {
  display: none !important;
}

.creator-page .creator-voice-dialog > footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 32px !important;
  border-top: 1px solid #eef1f6 !important;
  background: #fff !important;
}

.creator-page .creator-voice-extra {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

.creator-page .creator-voice-extra > span {
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #54d7ff, #7b61ff) !important;
  color: #fff !important;
}

.creator-page .creator-voice-extra b,
.creator-page .creator-voice-extra small {
  display: block !important;
}

.creator-page .creator-voice-extra b {
  color: #172033 !important;
  font-size: 16px !important;
}

.creator-page .creator-voice-extra small {
  margin-top: 3px !important;
  color: #8a96a8 !important;
  font-size: 13px !important;
}

.creator-page .creator-voice-dialog > footer button {
  height: 46px !important;
  padding: 0 26px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

.creator-page .creator-voice-dialog > footer button.primary {
  background: #172033 !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .creator-page .creator-voice-dialog {
    width: 96vw !important;
    height: 88vh !important;
  }

  .creator-page .creator-voice-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px 20px 24px !important;
  }

  .creator-page .creator-voice-modal-tools,
  .creator-page .creator-voice-dialog > footer {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .creator-page .creator-voice-modal-tools label {
    width: 100% !important;
  }
}


/* AI Rewrite & Model Selection Cards */
.rewrite-card-grid,
.model-card-grid {
  margin-top: 4px;
}

.rewrite-card,
.model-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  padding: 12px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  text-align: left !important;
}

.rewrite-card:hover,
.model-card:hover {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

.rewrite-card.active,
.model-card.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1.5px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.14) !important;
}

.rewrite-card-head,
.model-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

.rewrite-card strong,
.model-card strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.rewrite-card.active strong,
.model-card.active strong {
  color: #1d4ed8 !important;
}

.rewrite-card-badge,
.model-card-badge {
  display: inline-block !important;
  padding: 2px 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.rewrite-card p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

.rewrite-card.active p {
  color: #2563eb !important;
}

.model-card small {
  display: block !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.model-card.active small {
  color: #2563eb !important;
}


/* Floating Pronunciation Popover (仿剪映/HeyGen修改读音气泡) */
.pronunciation-popover {
  position: absolute;
  z-index: 6000;
  width: 270px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: popoverFadeIn 0.15s ease-out;
  font-family: inherit;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pronunciation-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.pronunciation-popover-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.pronunciation-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pronunciation-play-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.pronunciation-option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.pronunciation-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.pronunciation-opt-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.pronunciation-opt-btn small {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.pronunciation-custom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.pronunciation-custom-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.pronunciation-custom-input:focus {
  border-color: #2563eb;
}

.pronunciation-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pronunciation-confirm-btn:hover {
  background: #1d4ed8;
}


/* ========================================================
   Subtitle Presets & Custom Adjustments Styles
   ======================================================== */
.subtitle-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subtitle-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.subtab-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subtab-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.subtitle-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.subtitle-section-head b {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.subtitle-section-head small {
  font-size: 12px;
  color: #94a3b8;
}

/* 19 Presets Grid */
.subtitle-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.subtitle-preset-btn {
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.15s ease;
  position: relative;
}

.subtitle-preset-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.subtitle-preset-btn.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.subtitle-preset-btn span {
  font-size: 18px;
  font-weight: 900;
  display: inline-block;
  line-height: 1;
}

/* Custom Adjustments Box */
.subtitle-custom-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-select-field {
  flex: 1;
}

.font-select-field select {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
}

.stepper-field {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  height: 36px;
  width: 80px;
}

.stepper-field input {
  width: 52px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  padding: 0;
  margin: 0;
}

.stepper-btns {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e2e8f0;
  width: 26px;
  height: 100%;
}

.stepper-btns button {
  flex: 1;
  border: 0;
  background: #f8fafc;
  color: #64748b;
  font-size: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.stepper-btns button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Format buttons */
.format-buttons-row {
  display: flex;
  gap: 8px;
}

.format-btn {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.format-btn:hover {
  background: #f1f5f9;
}

.format-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Color Chips Row */
.subtitle-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
}

.color-chip-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  height: 36px;
}

.color-chip-card label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  width: auto;
  position: relative;
}

.color-chip-card label input[type="color"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.color-chip-card .chip-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
  flex-shrink: 0;
}

.color-chip-card.stroke-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.stroke-stepper-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  height: 26px;
  width: 50px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.stroke-stepper-wrap .stroke-width-val {
  width: 30px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.stroke-stepper-btns {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e2e8f0;
  width: 18px;
  height: 100%;
  position: relative;
  z-index: 20;
}

.stroke-stepper-btns button {
  flex: 1;
  border: 0;
  background: #f8fafc;
  color: #64748b;
  font-size: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.stroke-stepper-btns button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Sliders */
.subtitle-slider-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-slider-item .slider-name {
  width: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.subtitle-slider-item input[type="range"] {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.subtitle-slider-item .slider-val-tag {
  width: 42px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Preset CSS Render styles */
.p-icon-none { color: #94a3b8; font-size: 16px; font-weight: 400; }
.p-icon-white-stroke { color: #ffffff; text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000; }
.p-icon-black-card { background: #18181b; color: #ffffff; border-radius: 4px; padding: 2px 5px; }
.p-icon-black-hollow { background: #18181b; color: #18181b; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; border-radius: 4px; padding: 2px 5px; }
.p-icon-yellow-stroke { color: #ffe600; text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000; }
.p-icon-coral-pink { color: #ff6b8b; text-shadow: -1.5px -1.5px 0 #b91c1c, 1.5px -1.5px 0 #b91c1c, -1.5px 1.5px 0 #b91c1c, 1.5px 1.5px 0 #b91c1c; }
.p-icon-cyan-black { color: #7dd3fc; text-shadow: -1.5px -1.5px 0 #0c4a6e, 1.5px -1.5px 0 #0c4a6e, -1.5px 1.5px 0 #0c4a6e, 1.5px 1.5px 0 #0c4a6e; }
.p-icon-pink-white { color: #f472b6; text-shadow: -1.5px -1.5px 0 #ffffff, 1.5px -1.5px 0 #ffffff, -1.5px 1.5px 0 #ffffff, 1.5px 1.5px 0 #ffffff; }
.p-icon-sky-blue { color: #38bdf8; text-shadow: -1.5px -1.5px 0 #ffffff, 1.5px -1.5px 0 #ffffff, -1.5px 1.5px 0 #ffffff, 1.5px 1.5px 0 #ffffff; }
.p-icon-lime-green { color: #a3e635; text-shadow: -1.5px -1.5px 0 #14532d, 1.5px -1.5px 0 #14532d, -1.5px 1.5px 0 #14532d, 1.5px 1.5px 0 #14532d; }
.p-icon-vintage-blue { color: #60a5fa; text-shadow: -1.5px -1.5px 0 #1e293b, 1.5px -1.5px 0 #1e293b, -1.5px 1.5px 0 #1e293b, 1.5px 1.5px 0 #1e293b; }
.p-icon-white-red { color: #ffffff; text-shadow: -1.5px -1.5px 0 #ef4444, 1.5px -1.5px 0 #ef4444, -1.5px 1.5px 0 #ef4444, 1.5px 1.5px 0 #ef4444; }
.p-icon-brown-stroke { color: #991b1b; text-shadow: -1.5px -1.5px 0 #fef3c7, 1.5px -1.5px 0 #fef3c7, -1.5px 1.5px 0 #fef3c7, 1.5px 1.5px 0 #fef3c7; }
.p-icon-cream-stroke { color: #fef08a; text-shadow: -1.5px -1.5px 0 #451a03, 1.5px -1.5px 0 #451a03, -1.5px 1.5px 0 #451a03, 1.5px 1.5px 0 #451a03; }
.p-icon-rose-stroke { color: #e11d48; text-shadow: -1.5px -1.5px 0 #ffe4e6, 1.5px -1.5px 0 #ffe4e6, -1.5px 1.5px 0 #ffe4e6, 1.5px 1.5px 0 #ffe4e6; }
.p-icon-double-stroke { color: #ffffff; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; }
.p-icon-pure-black { color: #000000; text-shadow: -1.5px -1.5px 0 #ffffff, 1.5px -1.5px 0 #ffffff, -1.5px 1.5px 0 #ffffff, 1.5px 1.5px 0 #ffffff; }
.p-icon-yellow-card { background: #facc15; color: #000000; border-radius: 4px; padding: 2px 5px; }
.p-icon-wine-card { background: #881337; color: #ffffff; border-radius: 4px; padding: 2px 5px; }


/* ========================================================
   Title Presets & Custom Adjustments Styles
   ======================================================== */
.title-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.title-preset-card {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.title-preset-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.title-preset-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.title-preset-card .t-mini-line1 {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.title-preset-card .t-mini-line2 {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
}

.creator-style-section.primary {
  border-left: 4px solid #3b82f6;
}

.creator-style-section.accent {
  border-left: 4px solid #ef4444;
}

.creator-style-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creator-style-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.creator-style-section-head span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-style-section.accent .creator-style-section-head span {
  background: #ef4444;
}

.creator-style-section-head div b {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.creator-style-section-head div small {
  font-size: 11px;
  color: #94a3b8;
}


/* ========================================================
   Title Presets & Custom Adjustments Styles
   ======================================================== */
.title-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.title-preset-card {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.title-preset-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.title-preset-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.title-preset-card .t-mini-line1 {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.title-preset-card .t-mini-line2 {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
}

.creator-style-section.primary {
  border-left: 4px solid #3b82f6;
}

.creator-style-section.accent {
  border-left: 4px solid #ef4444;
}

.creator-style-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creator-style-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.creator-style-section-head span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-style-section.accent .creator-style-section-head span {
  background: #ef4444;
}

.creator-style-section-head div b {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.creator-style-section-head div small {
  font-size: 11px;
  color: #94a3b8;
}


.creator-page .creator-switch.compact-switch {
  padding: 8px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  margin: 0 !important;
}
.creator-page .creator-switch.compact-switch > span {
  flex: 1 1 auto !important;
  gap: 0 !important;
}
.creator-page .creator-switch.compact-switch b,
.creator-page .creator-switch.compact-switch > span {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}


/* Materials Unified Tab Bar */
.materials-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.materials-tab-nav {
  display: inline-flex;
  gap: 6px;
  background: linear-gradient(180deg, #e9eff6 0%, #dfe7f1 100%);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid #cbd7e6;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.materials-tab-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.materials-tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* 👤 数字人形象: 初始状态 (淡冰蓝按键) */
.materials-tab-btn:first-child:not(.active) {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.materials-tab-btn:first-child:not(.active):hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

/* 👤 数字人形象: 选中状态 (3D皇家科技蓝) */
.materials-tab-btn.active:first-child {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.materials-tab-btn.active:first-child:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* 🎙️ 声音音色管理: 初始状态 (淡翠绿按键) */
.materials-tab-btn:last-child:not(.active) {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.materials-tab-btn:last-child:not(.active):hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.16);
  transform: translateY(-1px);
}

/* 🎙️ 声音音色管理: 选中状态 (3D录音棚翡翠绿) */
.materials-tab-btn.active:last-child {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #047857;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.materials-tab-btn.active:last-child:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}


/* Voice Management Modern Grid & Cards */
.voice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.modern-voice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.modern-voice-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-voice-card.selected {
  border-color: #6366f1;
  background: #faf5ff;
  box-shadow: 0 0 0 1.5px rgba(99, 102, 241, 0.25);
}

.modern-voice-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.modern-voice-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.modern-voice-top-actions .badge-default-active {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.modern-voice-top-actions .btn-set-default {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modern-voice-top-actions .btn-set-default:hover {
  background: #0284c7;
  color: #ffffff;
}

.modern-voice-top-actions .btn-card-delete {
  background: transparent;
  border: none;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.modern-voice-top-actions .btn-card-delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

.modern-voice-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.modern-voice-info {
  flex: 1;
  min-width: 0;
}

.modern-voice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.modern-voice-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-voice-rename {
  font-size: 11.5px;
  color: #6366f1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.modern-voice-rename:hover {
  text-decoration: underline;
}

.modern-voice-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.modern-voice-subtext {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

.modern-voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.modern-voice-actions button {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  text-align: center;
}

.modern-voice-actions button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.modern-voice-actions button.btn-audition {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 700;
  flex: 1.6;
}

.modern-voice-actions button.btn-audition:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.modern-voice-actions button.btn-compare {
  flex: 1.1;
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

.modern-voice-actions button.btn-compare:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.modern-voice-actions button.btn-compare.is-active {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.modern-voice-actions button.btn-raw-voice {
  flex-shrink: 0;
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.modern-voice-actions button.btn-raw-voice:hover:not(:disabled) {
  background: #f1f5f9;
  color: #334155;
}

.modern-voice-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modern-voice-hint {
  font-size: 11px;
  color: #6366f1;
  background: #f5f3ff;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Voice Console & Comparison Arena */
.voice-console-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.voice-console-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.voice-console-pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-console-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.voice-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.voice-comparison-tray {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.voice-comparison-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.15s;
}

.voice-comparison-item:hover {
  background: #f8fafc;
}

.voice-sort-btn {
  padding: 3px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.voice-sort-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.voice-sort-btn.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 700;
}


/* Premium Creator Voice Selector Card */
.creator-selected-voice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
  margin: 6px 0 10px;
}

.creator-selected-voice-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.creator-selected-voice-card .csv-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.creator-selected-voice-card .csv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.28);
}

.creator-selected-voice-card .csv-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.creator-selected-voice-card .csv-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-selected-voice-card .csv-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.creator-selected-voice-card .csv-engine-tag {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.3;
}

.creator-selected-voice-card .csv-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-selected-voice-card .csv-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.creator-selected-voice-card .csv-change-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   爆款文案高亮徽标与数据卡片 (Hit Copy Badges & Stats Card)
   ========================================================================== */
.badge-hit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-hit-super {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.45);
  animation: pulse-glow 2s infinite;
}

.badge-hit-48h {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.8);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.badge-hit-24h {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.8);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
}

.badge-hit-high_eng {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.8);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.badge-hit-normal {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

/* ==========================================================================
   🔥 超醒目爆款卡片分级高光视觉系统
   ========================================================================== */

/* 1. 👑 百万大爆款卡片 (10w+ 播放) */
.copy-list-item.is-hit-super {
  position: relative;
  background: linear-gradient(135deg, #fffdf0 0%, #fffbeb 40%, #fef3c7 100%) !important;
  border: 1.5px solid #f59e0b !important;
  border-left: 7px solid #d97706 !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
}

.copy-list-item.is-hit-super:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35) !important;
  border-color: #d97706 !important;
}

.copy-list-item.is-hit-super .copy-row-title strong {
  color: #78350f !important;
  font-size: 16.5px !important;
  font-weight: 850 !important;
}

/* 2. 🔥 成熟大爆款卡片 (3w~10w 播放) */
.copy-list-item.is-hit-hot {
  position: relative;
  background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 40%, #ffedd5 100%) !important;
  border: 1.5px solid #ea580c !important;
  border-left: 7px solid #ea580c !important;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.2) !important;
}

.copy-list-item.is-hit-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3) !important;
  border-color: #c2410c !important;
}

.copy-list-item.is-hit-hot .copy-row-title strong {
  color: #7c2d12 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

/* 3. ⚡ 潜力爆款卡片 (1w~3w 播放) */
.copy-list-item.is-hit-rising {
  position: relative;
  background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 40%, #f3e8ff 100%) !important;
  border: 1.5px solid #9333ea !important;
  border-left: 7px solid #7e22ce !important;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.16) !important;
}

.copy-list-item.is-hit-rising:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.25) !important;
}

.copy-list-item.is-hit-rising .copy-row-title strong {
  color: #581c87 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
}

/* 4. 卡片右上角爆款角标 */
.copy-hit-corner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 850;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.ribbon-super {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.45);
  border: 1px solid rgba(254, 240, 138, 0.6);
  animation: pulse-glow 2.5s infinite;
}

.ribbon-hot {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
  border: 1px solid rgba(254, 215, 170, 0.6);
}

.ribbon-rising {
  background: linear-gradient(135deg, #6b21a8 0%, #9333ea 50%, #a855f7 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.4);
  border: 1px solid rgba(233, 213, 255, 0.6);
}

/* 5. 醒目大号播放量数据胶囊 */
.copy-views-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pill-super {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.pill-hot {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #9a3412;
  border: 1px solid #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.pill-rising {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #6b21a8;
  border: 1px solid #9333ea;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.25);
}

.pill-normal {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.copy-detail-hit-card {
  margin: 12px 0 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
}

.copy-detail-hit-card.hit-48h {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.1);
}

.copy-detail-hit-card.hit-24h {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.1);
}

.copy-detail-hit-card.hit-super {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: rgba(217, 70, 239, 0.35);
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.12);
}

.hit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hit-card-badge {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-detail-hit-card.hit-48h .hit-card-badge { color: #991b1b; }
.copy-detail-hit-card.hit-24h .hit-card-badge { color: #9a3412; }
.copy-detail-hit-card.hit-super .hit-card-badge { color: #86198f; }

.btn-remake-hit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  transition: all 0.16s ease;
}

.btn-remake-hit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

.hit-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hit-stat-box {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.hit-stat-box small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.hit-stat-box strong {
  display: block;
  font-size: 16px;
  font-weight: 850;
  color: #0f172a;
}

/* ==========================================================================
   🎬 快手爆款对标大盘与文案时速分析 (Ultra-Modern Aesthetic Benchmark Dashboard)
   ========================================================================== */

.bm-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* ========================================================================== */
/* 🎬 爆款对标大盘与账号库 (Benchmark Redesign 2.0) */
/* ========================================================================== */

/* 第一级：博主库头部与操作区 */
.bm-l1-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 16px;
}

.bm-l1-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-l1-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-l1-title-icon {
  font-size: 22px;
}

.bm-l1-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.bm-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 10px;
  border-radius: 20px;
}

.bm-l1-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.bm-l1-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bm-btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.bm-btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.bm-btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-secondary-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.bm-btn-ghost-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-ghost-action:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}

/* 4 维核心资产宏观指标卡 (SaaS Dashboard 风格) */
.bm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.bm-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.bm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.bm-kpi-card.highlight-burst {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border-color: #fecdd3;
}

.bm-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.bm-kpi-card.highlight-burst .bm-kpi-icon {
  background: #fee2e2;
}

.bm-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bm-kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.bm-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.bm-kpi-card.highlight-burst .bm-kpi-val {
  color: #e11d48;
}

.bm-kpi-val small {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.bm-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* 账号筛选条 */
.bm-acc-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.bm-acc-search-box {
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.bm-acc-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.bm-acc-search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.bm-acc-view-hint {
  font-size: 12px;
  color: #64748b;
}

/* 对标博主卡片网格 */
.bm-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.bm-account-card-v2 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bm-account-card-v2:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.bm-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bm-card-avatar-box {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.bm-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.bm-card-platform-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ff5000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bm-card-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.bm-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bm-card-cat {
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

.bm-card-burst-tag {
  font-size: 10px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.bm-card-actions-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bm-btn-mini-link {
  font-size: 11px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3px 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-mini-link:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.bm-btn-mini-del {
  font-size: 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.15s ease;
}

.bm-btn-mini-del:hover {
  opacity: 1;
  background: #fee2e2;
  border-color: #fecdd3;
}

.bm-card-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #f1f5f9;
}

.bm-card-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bm-cell-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bm-cell-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.bm-cell-val.val-views {
  color: #0284c7;
}

.bm-cell-val.val-likes {
  color: #e11d48;
}

.bm-cell-val.val-ratio {
  color: #0d9488;
}

.bm-card-footer {
  width: 100%;
}

.bm-btn-card-drilldown {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-btn-card-drilldown:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.bm-arrow-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.bm-btn-card-drilldown:hover .bm-arrow-icon {
  transform: translateX(3px);
}

.bm-empty-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
}

.bm-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.bm-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.bm-empty-desc {
  font-size: 13px;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================================================== */
/* 第二级：博主文案详情与面包屑导航 */
/* ========================================================================== */
.bm-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}

.bm-breadcrumb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bm-btn-back-accounts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-back-accounts:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
  transform: translateX(-1px);
}

.bm-back-arrow {
  font-size: 14px;
}

.bm-breadcrumb-divider {
  color: #cbd5e1;
  font-size: 14px;
}

.bm-current-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bm-crumb-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.bm-crumb-author-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.bm-crumb-count-badge {
  font-size: 11px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.bm-crumb-stats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bm-stat-chip {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 16px;
}

.bm-stat-chip b {
  color: #0f172a;
  font-weight: 700;
}

.bm-stat-chip.chip-burst {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.bm-stat-chip.chip-burst b {
  color: #e11d48;
}

.bm-breadcrumb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-author-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bm-switcher-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.bm-select-switcher {
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* 整理后的双行卡片工具条 */
.bm-toolbar-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bm-toolbar-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.bm-search-wrap {
  flex: 1;
  min-width: 240px;
}

.bm-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
}

.bm-search-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.bm-filter-chips-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bm-filter-unit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bm-unit-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.bm-select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.bm-select:focus {
  border-color: #3b82f6;
}

.bm-toolbar-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.bm-action-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bm-btn-tool {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.bm-btn-tool:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.bm-btn-tool.secondary {
  background: #ffffff;
}

.bm-btn-tool.secondary:hover {
  background: #f8fafc;
}

.bm-selection-badge {
  font-size: 12px;
  color: #64748b;
  margin-left: 4px;
}

.bm-selection-badge b {
  color: #2563eb;
  font-size: 13px;
}

.bm-action-pipeline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bm-pipeline-unit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bm-pipeline-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.bm-select.product-select {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  max-width: 140px;
}

.bm-select.model-select {
  border-color: #c7d2fe;
  background: #f5f3ff;
  color: #5b21b6;
  font-weight: 600;
  max-width: 180px;
}

.bm-btn-pipeline-start {
  height: 30px;
  padding: 0 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bm-btn-pipeline-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* 视频大表卡片与表格 */
.bm-table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.bm-table-wrapper {
  overflow-x: auto;
  max-height: calc(100vh - 340px);
}

.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.bm-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.bm-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.bm-table tr:hover td {
  background: #f8fafc;
}

/* 封面与爆发评级 */
.bm-cover-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
  background: #e2e8f0;
}

.bm-cover-thumb:hover {
  transform: scale(1.1);
}

.bm-badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bm-rating-classic {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.bm-rating-burst-24h {
  background: linear-gradient(135deg, #fee2e2 0%, #fecdd3 100%);
  color: #dc2626;
  border: 1px solid #fca5a5;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.bm-rating-burst-48h {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.bm-speed-tag {
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  font-size: 12px;
}

.bm-time-tag {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
}

.bm-views-tag {
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
}

.bm-likes-tag {
  font-weight: 600;
  color: #e11d48;
  white-space: nowrap;
}

.bm-ratio-tag {
  font-weight: 600;
  color: #0d9488;
  white-space: nowrap;
}

/* 口播台词与文案预览 */
.bm-script-cell {
  max-width: 240px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

.bm-btn-transcribe {
  padding: 5px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-transcribe:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.bm-script-box {
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #1e293b;
  max-height: 85px;
  overflow-y: auto;
}

/* 底部操作工具栏 (美观大方) */
.bm-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.bm-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.bm-btn-select-filtered {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-select-filtered:hover {
  background: #d1fae5;
}

.bm-btn-deselect {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-deselect:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bm-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bm-btn-action-copy {
  height: 34px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-action-copy:hover {
  background: #f8fafc;
  color: #0f172a;
}

.bm-btn-action-trans {
  height: 34px;
  padding: 0 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-btn-action-trans:hover {
  background: #e0e7ff;
}

.bm-btn-action-import {
  height: 34px;
  padding: 0 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.bm-btn-action-import:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.bm-btn-action-export {
  height: 34px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.bm-btn-action-export:hover {
  background: #f8fafc;
  color: #0f172a;
}


/* 操作列按钮美化 (Pill Button Group) */
.bm-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bm-btn-table-import {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-table-import:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.bm-btn-table-imported {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-decoration: none !important;
  white-space: nowrap;
}

.bm-btn-table-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-table-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.bm-btn-table-download {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-table-download:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}


/* 台词折叠与展开样式 */
.bm-script-collapsed-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  max-width: 230px;
  transition: all 0.15s ease;
}

.bm-script-collapsed-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.bm-script-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.bm-script-toggle-tag {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.bm-script-expanded-box {
  display: flex;
  flex-direction: column;
  max-width: 240px;
}

/* AI Model Button Cards in Modals */
.ai-model-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-model-btn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: var(--panel, #ffffff);
  border: 2px solid var(--line, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.ai-model-btn-card:hover {
  border-color: #93c5fd;
  background: rgba(239, 246, 255, 0.6);
  transform: translateY(-1px);
}

.ai-model-btn-card.active {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18);
}

.ai-model-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ai-model-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.ai-model-btn-card.active .ai-model-icon-box {
  background: #dbeafe;
}

.ai-model-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ai-model-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-model-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #1e293b);
}

.ai-model-card-desc {
  font-size: 12px;
  color: var(--muted, #64748b);
  line-height: 1.4;
}

.ai-badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ai-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ai-model-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #ffffff;
}

.ai-model-btn-card.active .ai-model-check-circle {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

.ai-model-check-circle::after {
  content: '✓';
  font-size: 13px;
  font-weight: 700;
  display: none;
}

.ai-model-btn-card.active .ai-model-check-circle::after {
  display: block;
}

/* View copy and reimport buttons in benchmark table */
.bm-btn-table-view-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-table-view-copy:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
  transform: translateY(-1px);
}

.bm-btn-table-reimport {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-btn-table-reimport:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
  transform: translateY(-1px);
}

/* Benchmark Table Pagination */
.bm-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.bm-pager-size {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap !important;
}

.bm-pager-size span {
  white-space: nowrap !important;
  display: inline-block !important;
  margin: 0 !important;
}

.bm-pager-size select {
  display: inline-block !important;
  width: auto !important;
  min-width: 100px !important;
  white-space: nowrap !important;
}

.bm-pager-size select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
}

.bm-pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1e293b;
}

.bm-pager-controls button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* ===== 对标博主账号池卡片 (高颜值插件同款设计) ===== */
.bm-accounts-container {
  padding: 8px 0;
}

.bm-accounts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.bm-accounts-title-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bm-accounts-title-box p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.bm-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.bm-account-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bm-account-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.bm-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bm-acc-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bm-acc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.bm-acc-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bm-acc-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.bm-acc-category {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.bm-acc-stats {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border: 1px solid #f1f5f9;
}

.bm-acc-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bm-acc-stat-item small {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bm-acc-stat-item strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.bm-acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.bm-acc-btn-inspect {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-acc-btn-inspect:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.bm-acc-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-acc-btn-home:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.bm-acc-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bm-acc-btn-delete:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

/* ===== 紧凑高颜值产品文案概览指标栏 ===== */
.copy-overview-stat-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.copy-stat-pill {
  flex: 1;
  min-width: 150px;
  max-width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.copy-stat-pill:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.copy-stat-pill .pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.copy-stat-pill.pill-products .pill-icon {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.copy-stat-pill.pill-total .pill-icon {
  background: #f5f3ff;
  border: 1px solid #ede9fe;
}

.copy-stat-pill.pill-draft .pill-icon {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.copy-stat-pill.pill-published .pill-icon {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.copy-stat-pill .pill-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.copy-stat-pill .pill-text small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.copy-stat-pill .pill-text strong {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* ===== 现代化文案控制台全景新布局 (Apple / Linear SaaS Style) ===== */
.copy-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.copy-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

.btn-back-products {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-back-products:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateX(-1px);
}

.copy-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 300;
}

.copy-current-prod-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-current-prod-title strong {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.copy-count-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.btn-edit-prod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-edit-prod-icon:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.copy-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  min-width: 220px;
}

.copy-search-box .search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.copy-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 34px !important;
  font-size: 13px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  color: #0f172a !important;
  transition: all 0.15s ease;
}

.copy-search-box input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.btn-clear-search:hover {
  color: #475569;
}

.copy-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Tier 2: 紧凑结构化横向筛选工具条 */
.copy-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px 8px;
  margin-bottom: 10px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.copy-filter-bar::-webkit-scrollbar {
  display: none;
}

.copy-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.copy-filter-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.copy-filter-item .filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-filter-item select {
  height: 26px !important;
  font-size: 11.5px !important;
  font-weight: 500;
  color: #1e293b !important;
  background: transparent !important;
  border: none !important;
  padding: 0 14px 0 2px !important;
  cursor: pointer;
  outline: none;
  max-width: 100px;
}

.copy-filter-item #copyProduct {
  max-width: 125px;
}

.copy-filter-item #copyAvatarFilter {
  max-width: 115px;
}

.copy-filter-item select:focus {
  color: #2563eb !important;
}

.btn-filter-add-prod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-filter-add-prod:hover {
  background: #2563eb;
  color: #fff;
}

.btn-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 500;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-reset-filter:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
}

/* Tier 3: 智能响应式选择与批量操作栏 */
.copy-selection-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 12px;
  min-height: 42px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
}

.copy-selection-bar.is-active {
  background: linear-gradient(135deg, #eff6ff 0%, #f4f8fe 100%);
  border-color: #93c5fd;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.08);
}

.selection-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.selection-checkbox-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  padding: 0 10px;
  height: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.selection-checkbox-pill input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.selection-checkbox-pill span {
  white-space: nowrap !important;
  line-height: 1;
}

.selection-checkbox-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.selection-quick-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.chip-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.chip-select:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.chip-amber {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.chip-amber:hover {
  background: #fef3c7;
  color: #b45309;
}

.chip-blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.chip-blue:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.selection-count-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-clear-selection {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.btn-clear-selection:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 批量操作按钮组 (居左紧跟，左对齐排列) */
.selection-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 4px;
}

.btn-batch-action {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-batch-action:hover:not(:disabled) {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-batch-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-batch-danger {
  color: #dc2626 !important;
  background: #ffffff !important;
  border-color: #fca5a5 !important;
}

.btn-batch-danger:hover:not(:disabled) {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}

.btn-batch-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border: 1px solid #1d4ed8 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.btn-batch-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-1px);
}

/* 未选中时的极简内联分页指示器 */
.selection-bar-inline-pager,
.selection-bar-right-pager {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px;
  color: #64748b;
  padding: 0 8px;
  height: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}

.mini-pager-info {
  color: #334155;
  font-weight: 500;
}

.mini-pager-info strong {
  color: #0f172a;
  font-weight: 700;
}

.mini-pager-sep {
  color: #cbd5e1;
}

.mini-pager-total {
  color: #64748b;
}

.btn-mini-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-mini-arrow:hover:not(:disabled) {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

.btn-mini-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Background Worker Progress Banner */
.bm-worker-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
  animation: fadeIn 0.3s ease;
}
.bm-worker-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bm-worker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.bm-pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.bm-worker-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #166534;
  flex-wrap: wrap;
}
.bm-worker-divider {
  color: #86efac;
  font-weight: bold;
}
.bm-worker-current {
  color: #14532d;
  font-weight: 500;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bm-btn-worker-stop {
  padding: 6px 14px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bm-btn-worker-stop:hover {
  background: #fecaca;
  border-color: #f87171;
}
.bm-btn-action-import.is-running {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
  animation: pulseBtn 2s infinite ease-in-out;
}
@keyframes pulseBtn {
  0% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
  100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
}

/* Task Center Status Tabs & Recycle Bin */
.task-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.task-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
}

.task-tab.active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.task-tab.trash {
  margin-left: auto;
  border-color: #fecaca;
  color: #dc2626;
  background: #fff5f5;
}

.task-tab.trash:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.task-tab.trash.active {
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.trash-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #92400e;
}

.trash-notice-banner b {
  color: #b45309;
}

/* Cover Publish & Expiration Badges */
.work-publish-badge {
  position: absolute;
  z-index: 5;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-publish-badge.published {
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
}

.work-publish-badge.running {
  background: rgba(59, 130, 246, 0.92);
  color: #ffffff;
  animation: pulseBadge 2s infinite ease-in-out;
}

.work-publish-badge.queued {
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
}

.work-publish-badge.failed {
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
}

.work-publish-badge.trash-expire {
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
  font-weight: 600;
}

@keyframes pulseBadge {
  0% { opacity: 0.85; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}

.work-hover-actions .restore {
  border-color: #10b981;
  background: #10b981;
}

.work-hover-actions .permanent-delete {
  border-color: #ef4444;
  background: #dc2626;
}

.work-trash-time {
  display: block;
  font-size: 11px;
  color: #ef4444;
  margin-top: 2px;
}

/* ==========================================================================
   短视频矩阵自动化托管中心 (Auto-Pilot Pipeline Styles)
   ========================================================================== */

.autopilot-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ==========================================================================
   🤖 自动化矩阵托管 - 现代商用 SaaS 质感视觉系统 (Light Theme Native)
   ========================================================================== */

.autopilot-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 0 48px;
}

/* 顶部概览指标卡片 */
.autopilot-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .autopilot-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .autopilot-stats-row {
    grid-template-columns: 1fr;
  }
}

.autopilot-stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.autopilot-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.autopilot-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.autopilot-stat-card:hover .autopilot-stat-icon {
  transform: scale(1.06);
}

.autopilot-stat-icon.icon-blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.autopilot-stat-icon.icon-purple {
  background: #f5f3ff;
  border: 1px solid #ede9fe;
}

.autopilot-stat-icon.icon-amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.autopilot-stat-icon.icon-emerald {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.autopilot-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.autopilot-stat-title {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.autopilot-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.autopilot-stat-unit {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.autopilot-stat-card.highlight {
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.autopilot-stat-card.highlight .autopilot-stat-value {
  color: #b45309;
}

.autopilot-stat-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.96); }
}

/* Stat card clickability */
.autopilot-stat-card.clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.autopilot-stat-card.clickable:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.autopilot-stat-card.highlight.clickable:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

/* 托管视图一级选项卡导航 */
.autopilot-tabs-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
  margin-top: 4px;
  margin-bottom: 20px;
}

.autopilot-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.autopilot-tab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.autopilot-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #ffffff;
  font-weight: 700;
}

.autopilot-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.autopilot-tab-badge-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.autopilot-tab-btn.active .autopilot-tab-badge-neutral {
  background: #eff6ff;
  color: #2563eb;
}

.autopilot-tab-badge-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  animation: pulseBadge 2s infinite ease-in-out;
}

/* 托管生成成片二级筛选栏 */
.autopilot-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.autopilot-filter-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.autopilot-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.autopilot-filter-pill:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.autopilot-filter-pill.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.18);
}

.autopilot-filter-pill.active.alert-pill {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

/* 成片状态标签与小徽章 */
.autopilot-review-card-top-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.autopilot-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.autopilot-status-chip.pending_review {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.autopilot-status-chip.generating {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  animation: pulseBadge 1.8s infinite ease-in-out;
}

.autopilot-status-chip.published {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.autopilot-status-chip.rejected {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.autopilot-status-chip.failed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.autopilot-tag-date {
  font-size: 11px;
  color: #94a3b8;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
}

.autopilot-error-hint {
  font-size: 11.5px;
  color: #ef4444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.autopilot-empty-shelf {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 42px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.autopilot-empty-shelf .autopilot-empty-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}

.autopilot-empty-shelf h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.autopilot-empty-shelf p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  max-width: 480px;
  line-height: 1.6;
}

/* 待审核横幅提示专区 (高对比度、温暖明亮商业级 Banner) */
.autopilot-review-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.autopilot-review-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.autopilot-review-bell {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.1);
  animation: ringBell 2.5s ease-in-out infinite;
}

.autopilot-review-banner-text strong {
  color: #78350f;
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.autopilot-review-banner-text span {
  font-size: 13px;
  color: #92400e;
  line-height: 1.4;
}

.autopilot-btn-batch-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.autopilot-btn-batch-approve:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* 待审核抽屉/专区样式 */
.autopilot-review-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.autopilot-review-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.autopilot-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 12px;
}

.autopilot-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.autopilot-review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px -3px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.autopilot-review-cover {
  position: relative;
  width: 76px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.autopilot-review-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.autopilot-review-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #94a3b8;
  font-size: 24px;
}

.autopilot-review-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.autopilot-review-cover:hover .autopilot-review-cover-overlay {
  background: rgba(0, 0, 0, 0.12);
}

.autopilot-review-cover-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.autopilot-review-cover:hover .autopilot-review-cover-play {
  transform: scale(1.12);
  background: #ffffff;
}

.autopilot-review-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.autopilot-review-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px 0;
}

.autopilot-review-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.autopilot-tag-plan {
  background: #f1f5f9;
  color: #334155;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.autopilot-tag-platform {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid #dbeafe;
}

.autopilot-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.autopilot-btn-preview {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.autopilot-btn-preview:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.autopilot-btn-reject {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.autopilot-btn-reject:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.autopilot-btn-del-log {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.autopilot-btn-del-log:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

.autopilot-btn-clean-rejected {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.autopilot-btn-clean-rejected:hover {
  background: #fef2f2;
  border-color: #ef4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.autopilot-btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
  transition: all 0.15s ease;
  margin-left: auto;
}

.autopilot-btn-approve:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* 托管流水线区域标题与操作 */
.autopilot-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.autopilot-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.autopilot-section-title h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.autopilot-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.autopilot-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.autopilot-actions-bar .ghost {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.autopilot-actions-bar .ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.autopilot-actions-bar .primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
}

.autopilot-actions-bar .primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* 流水线卡片网格 */
.autopilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.autopilot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.autopilot-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.autopilot-card.disabled {
  opacity: 0.65;
  background: #fafafa;
}

.autopilot-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.autopilot-card-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.autopilot-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.autopilot-card.disabled .autopilot-status-dot {
  background: #94a3b8;
  box-shadow: none;
}

.autopilot-card-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.autopilot-mode-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.autopilot-mode-badge.auto {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.autopilot-mode-badge.manual {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* 卡片主体：数字人与音色、文案库、目标账号 */
.autopilot-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 14px 16px;
}

.autopilot-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #334155;
}

.autopilot-detail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  flex-shrink: 0;
}

.autopilot-detail-value {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

.autopilot-avatar-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.voice-highlight {
  color: #2563eb !important;
}

.autopilot-platform-text {
  color: #d97706;
  font-weight: 700;
}

.autopilot-account-text {
  color: #475569;
  font-weight: 600;
}

.autopilot-hashtags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.autopilot-tag-chip {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.autopilot-no-tags {
  color: #94a3b8;
  font-size: 12px;
  font-weight: normal;
}

.autopilot-schedule-rule {
  font-size: 12px;
  color: #64748b;
}

.autopilot-schedule-rule strong {
  color: #0f172a;
}

.autopilot-schedule-accent {
  color: #2563eb;
  font-weight: 600;
}

.autopilot-stock-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.autopilot-stock-pill.low {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* 卡片底部操作栏 */
.autopilot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.autopilot-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.autopilot-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.autopilot-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.autopilot-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .25s ease;
  border-radius: 20px;
}

.autopilot-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.autopilot-switch input:checked + .autopilot-switch-slider {
  background-color: #10b981;
}

.autopilot-switch input:checked + .autopilot-switch-slider:before {
  transform: translateX(18px);
}

.autopilot-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.autopilot-btn-trigger {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.autopilot-btn-trigger:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.autopilot-btn-edit {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.autopilot-btn-edit:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.autopilot-btn-del {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.autopilot-btn-del:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

/* 空状态卡片 */
.autopilot-empty-card {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
}

.autopilot-empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.autopilot-empty-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.autopilot-empty-card p {
  font-size: 13.5px;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
}

.autopilot-empty-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
}

.autopilot-empty-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* ========================================================
   🏢 商用级别·自动托管流水线弹窗 (Commercial SaaS Grade Zero-Scroll)
   ======================================================== */
.modal.autopilot-modal-wide {
  width: min(940px, 96vw) !important;
  max-width: 940px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

.modal.autopilot-modal-wide header {
  padding: 13px 22px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

.modal.autopilot-modal-wide header h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.modal.autopilot-modal-wide header .icon {
  background: #f1f5f9 !important;
  color: #64748b !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.modal.autopilot-modal-wide header .icon:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.modal.autopilot-modal-wide .modal-body {
  padding: 14px 20px 16px 20px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

.autopilot-modal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.autopilot-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.autopilot-card-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.autopilot-card-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.autopilot-panel-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.autopilot-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
}

.autopilot-step-badge.amber {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.autopilot-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.autopilot-panel-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.autopilot-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.autopilot-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.autopilot-field input,
.autopilot-field select {
  height: 33px;
  padding: 4px 10px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.autopilot-field input::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.autopilot-field input:focus,
.autopilot-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.autopilot-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 商业级模式切换卡片 */
.autopilot-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.autopilot-mode-card {
  position: relative;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  user-select: none;
}

.autopilot-mode-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.autopilot-mode-card.active {
  border-color: #2563eb;
  background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.autopilot-mode-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.autopilot-mode-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.autopilot-mode-card.active .autopilot-mode-card-title {
  color: #1d4ed8;
}

.autopilot-mode-pill {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}

.autopilot-mode-card.active .autopilot-mode-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.autopilot-mode-card-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.autopilot-mode-card.active .autopilot-mode-card-desc {
  color: #3b82f6;
}

/* 常用标签胶囊 */
.autopilot-tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 26px;
  align-items: center;
}

.autopilot-tag-chips-wrap .compact-tag-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1.3;
  font-size: 11px;
}

.autopilot-tag-chips-wrap .compact-tag-chip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.autopilot-tag-chips-wrap .compact-tag-chip.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

.autopilot-tag-chips-wrap .chip-delete-btn {
  color: #94a3b8;
  margin-left: 4px;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s ease;
}

.autopilot-tag-chips-wrap .compact-tag-chip:hover .chip-delete-btn {
  color: #64748b;
}

.autopilot-tag-chips-wrap .chip-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444 !important;
  font-weight: bold;
}

/* 弹窗底部操作条 */
.autopilot-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.autopilot-footer-tip {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.autopilot-footer-actions {
  display: flex;
  gap: 8px;
}

.autopilot-btn-submit-commercial {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 18px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.18s ease !important;
}

.autopilot-btn-submit-commercial:hover {
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.38) !important;
  transform: translateY(-1px);
}

/* 自动托管预估发车时间胶囊 */
.ap-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ap-preview-pill strong {
  color: #2563eb;
  font-weight: 700;
}

[data-theme="dark"] .ap-preview-pill {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .ap-preview-pill strong {
  color: #60a5fa;
}

/* 视频号口播提取管理 */
.channel-manager-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(147, 197, 253, .55);
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 52%, #ecfdf5 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.channel-manager-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -85px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .08);
}
.channel-manager-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}
.channel-manager-hero h3 { margin: 0; color: #0f172a; font-size: 24px; }
.channel-manager-hero p { margin: 7px 0 0; color: #64748b; font-size: 13px; }
.channel-manager-total { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 84px; margin-left: auto; }
.channel-manager-total strong { color: #0f766e; font-size: 30px; line-height: 1; }
.channel-manager-total span { margin-top: 6px; color: #64748b; font-size: 12px; }

/* Direct WeChat Channels URL extraction */
.channel-link-extract{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:16px 18px}
.channel-link-extract>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:210px}
.channel-link-extract small{color:var(--weak,#64748b)}
.channel-link-extract-row{display:flex;flex:1;gap:10px;max-width:760px}
.channel-link-extract-row input{flex:1;min-width:0;padding:11px 13px;border:1px solid var(--line,#dbe3ef);border-radius:9px;background:var(--bg,#fff);color:var(--text,#172033)}
@media (max-width:800px){.channel-link-extract{align-items:stretch;flex-direction:column}.channel-link-extract-row{max-width:none}}

.channel-manager-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
}
.channel-search-wrap { display: flex; flex: 1; min-width: 260px; gap: 8px; }
.channel-search-wrap input { flex: 1; min-width: 0; height: 40px; padding: 0 13px; border: 1px solid #dbe3ee; border-radius: 10px; background: #f8fafc; }
.channel-search-wrap button, .channel-manager-toolbar > button { min-height: 40px; padding: 0 16px; }
.channel-manager-toolbar select { width: 140px; height: 40px; padding: 0 12px; border: 1px solid #dbe3ee; border-radius: 10px; background: #fff; color: #334155; }

.channel-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.channel-manage-card { overflow: hidden; min-width: 0; border: 1px solid #e5eaf1; border-radius: 17px; background: #fff; box-shadow: 0 9px 26px rgba(15, 23, 42, .055); transition: transform .18s ease, box-shadow .18s ease; }
.channel-manage-card:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(15, 23, 42, .09); }
.channel-card-main { display: flex; width: 100%; color: inherit; text-align: left; }
.channel-card-cover { position: relative; overflow: hidden; width: 142px; flex: 0 0 142px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #e2e8f0; cursor: pointer; }
.channel-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.channel-card-cover-fallback { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(145deg, #dbeafe, #ccfbf1); color: #0f766e; }
.channel-card-cover img + .channel-card-cover-fallback { display: none; }
.channel-card-cover-fallback span { color: #2563eb; font-size: 30px; }
.channel-card-cover-fallback small { font-weight: 700; }
.channel-source-badge { position: absolute; left: 9px; bottom: 9px; padding: 4px 8px; border-radius: 6px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 10px; }
.channel-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 11px 12px 9px; }
.channel-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.channel-status, .channel-library-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.channel-status.pending { background: #fff7ed; color: #c2410c; }
.channel-status.processing { background: #eff6ff; color: #2563eb; }
.channel-status.done { background: #ecfdf5; color: #047857; }
.channel-status.failed { background: #fff1f2; color: #dc2626; }
.channel-library-badge { background: #eef2ff; color: #4f46e5; }
.channel-library-badge.deleted { background: #fff1f2; color: #dc2626; }
.channel-capture-time { margin-left: auto; color: #94a3b8; font-size: 10px; }
.channel-card-title { display: -webkit-box; overflow: hidden; width: 100%; margin: 7px 0 0; padding: 0; border: 0; background: transparent; color: #172033; font-size: 14px; font-weight: 750; line-height: 1.38; text-align: left; text-overflow: ellipsis; cursor: pointer; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.channel-card-title:hover { color: #0f766e; }
.channel-card-subtitle { overflow: hidden; margin: 3px 0 0; color: #0f766e; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.channel-author { overflow: hidden; margin: 3px 0 0; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.channel-card-metrics, .channel-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.channel-metric { display: flex; min-width: 0; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #e8edf3; border-radius: 8px; background: #f8fafc; }
.channel-metric > span { font-size: 11px; }
.channel-metric div { display: flex; min-width: 0; align-items: baseline; flex-direction: row; gap: 3px; }
.channel-metric b { overflow: hidden; color: #334155; font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.channel-metric small { margin: 0; color: #94a3b8; font-size: 8px; }
.channel-card-transcript { overflow: hidden; margin-top: 7px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.channel-card-transcript header { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 10px; }
.channel-card-transcript header span { color: #94a3b8; font-size: 10px; }
.channel-card-transcript > div { height: 64px; overflow: auto; padding: 6px 8px; color: #475569; font-size: 10px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.channel-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #94a3b8; font-size: 9px; }
.channel-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.channel-card-actions button { min-height: 26px; padding: 0 7px; font-size: 9px; }

.channel-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0 5px; color: #64748b; font-size: 12px; }
.channel-pagination button { min-width: 82px; }
.channel-empty { padding: 70px 20px; text-align: center; }
.channel-empty > div { color: #2563eb; font-size: 38px; }
.channel-empty h3 { margin: 14px 0 7px; color: #334155; }
.channel-empty p { margin: 0; color: #94a3b8; }

#modalRoot .modal.channel-detail-modal { width: min(920px, calc(100vw - 40px)); max-width: 920px; }
.channel-detail { display: grid; gap: 16px; }
.channel-detail-layout { display: grid; grid-template-columns: minmax(260px, 40%) 1fr; gap: 20px; }
.channel-detail-video, .channel-detail-video-empty { width: 100%; height: 280px; border-radius: 14px; background: #0f172a; object-fit: contain; }
.channel-detail-video-empty { display: grid; place-items: center; color: #94a3b8; }
.channel-detail-meta { min-width: 0; padding: 5px 2px; }
.channel-detail-meta h3 { margin: 15px 0 18px; color: #0f172a; font-size: 20px; line-height: 1.5; }
.channel-detail-meta p { margin: 8px 0; color: #64748b; line-height: 1.5; }
.channel-detail-meta p b { color: #334155; }
.channel-detail-metrics { margin: 16px 0 10px; }
.channel-metrics-time { font-size: 12px; }
.channel-detail-error { padding: 10px 12px; border-radius: 9px; background: #fff1f2; color: #dc2626 !important; }
.channel-detail-section { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 13px; background: #f8fafc; }
.channel-detail-section header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.channel-detail-section header span { color: #94a3b8; font-size: 12px; }
.channel-detail-text { max-height: 270px; overflow: auto; padding: 16px; color: #334155; font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.channel-detail-text.compact { max-height: 110px; }
.channel-original { padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 11px; color: #64748b; }
.channel-original summary { cursor: pointer; font-weight: 700; }
.channel-original div { margin-top: 12px; line-height: 1.8; white-space: pre-wrap; }
.channel-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-top: 2px; }
.channel-detail-actions button { min-height: 38px; padding: 0 15px; }
.channel-import-dialog { display: grid; gap: 16px; padding: 4px; }
.channel-import-dialog > p { margin: 0; color: #64748b; line-height: 1.7; }
.channel-import-dialog label { display: grid; gap: 7px; color: #334155; font-weight: 700; }
.channel-import-dialog select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.channel-import-preview { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.channel-import-preview b { color: #0f172a; }
.channel-import-preview span { color: #0f766e; }
.channel-import-preview small { color: #94a3b8; }

@media (max-width: 1050px) {
  .channel-manager-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .channel-manager-hero { padding: 19px; }
  .channel-manager-hero p { display: none; }
  .channel-manager-toolbar { align-items: stretch; flex-direction: column; }
  .channel-search-wrap { min-width: 0; }
  .channel-manager-toolbar select { width: 100%; }
  .channel-card-main { min-height: 0; }
  .channel-card-cover { width: 104px; min-height: 0; flex-basis: 104px; }
  .channel-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-capture-time { width: 100%; margin-left: 0; }
  .channel-card-foot { align-items: flex-start; flex-direction: column; }
  .channel-card-actions { justify-content: flex-start; }
  .channel-detail-layout { grid-template-columns: 1fr; }
  .channel-detail-video, .channel-detail-video-empty { height: 230px; }
}

/* Video Channels competitor monitor */
.cm-page { --cm-ink: #13231c; --cm-green: #0b8f64; --cm-mint: #e9f8f1; --cm-border: #dfe9e4; display: grid; gap: 8px; padding-bottom: 24px; }
.cm-hero { position: relative; display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 16px; border: 1px solid #d8e9e1; border-radius: 10px; background: linear-gradient(125deg, #f5fffa 0%, #edf9f4 50%, #f7fbff 100%); box-shadow: 0 1px 4px rgba(24, 91, 66, .04); }
.cm-hero::before { display: none; }
.cm-hero > div:first-child { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cm-kicker { display: none; }
.cm-hero h2 { margin: 0; color: #10271d; font-size: 15px; font-weight: 750; letter-spacing: -.3px; white-space: nowrap; }
.cm-hero p { margin: 0; color: #5b7167; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 650px; }
.cm-device { position: relative; z-index: 1; display: inline-flex; min-width: 0; align-items: center; gap: 8px; margin-left: auto; padding: 4px 10px; border: 1px solid #bdebd5; border-radius: 7px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(15, 70, 49, .04); flex-shrink: 0; }
.cm-device i { width: 7px; height: 7px; flex: 0 0 auto; border: 2px solid #c9f5df; border-radius: 50%; background: #10b981; }
.cm-device span { display: flex; align-items: baseline; min-width: 0; gap: 6px; }
.cm-device b { color: #176146; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cm-device small { overflow: hidden; max-width: 260px; color: #799086; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cm-device.warning { border-color: #fde68a; background: #fffbeb; }
.cm-device.warning i { border-color: #fef3c7; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.cm-device.warning b { color: #a16207; }
.cm-device.warning small { color: #b45309; }
.cm-device.offline { border-color: #fecaca; background: #fff7f7; }
.cm-device.offline i { border-color: #fee2e2; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.cm-device.offline b { color: #b91c1c; }
.cm-device.offline small { color: #dc2626; }
.cm-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cm-summary article { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #e3ede8; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .03); transition: border-color .15s, box-shadow .15s; }
.cm-summary article:hover { border-color: #bde4d3; box-shadow: 0 2px 6px rgba(15, 23, 42, .05); }
.cm-summary article.cm-summary-action { cursor: pointer; }
.cm-summary article.cm-summary-action:hover { background: #f3f8ff; border-color: #93c5fd; }
.cm-summary article.cm-summary-date { position: relative; }
.cm-summary-date input { width: 25px; height: 25px; margin-left: auto; padding: 0; border: 1px solid #cfe2da; border-radius: 6px; background: #fff; color: transparent; cursor: pointer; }
.cm-summary-date input::-webkit-calendar-picker-indicator { margin: 0; cursor: pointer; opacity: .75; }
.cm-stat-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 5px; background: #edf4f1; color: #547066; font-size: 10px; font-style: normal; font-weight: 800; }
.cm-stat-icon.new { background: #ecfeff; color: #0e7490; }
.cm-stat-icon.rising { background: #eff6ff; color: #2563eb; }
.cm-stat-icon.potential { background: #fff7ed; color: #ea580c; }
.cm-stat-icon.hit { background: #fff1f2; color: #e11d48; }
.cm-stat-icon.queue { background: #f5f3ff; color: #7c3aed; }
.cm-summary article div { display: flex; align-items: baseline; min-width: 0; gap: 5px; }
.cm-summary b { color: #16251f; font-size: 15px; font-weight: 800; line-height: 1; }
.cm-summary small { overflow: hidden; color: #718279; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cm-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 3px; border: 1px solid #e1ebe6; border-radius: 8px; background: #f2f6f4; width: fit-content; }
.cm-tabs button { min-height: 28px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: #5c6e64; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: all .15s; }
.cm-tabs button:hover { background: #fff; color: #0e7352; }
.cm-tabs button.active { background: #fff; color: #087651; font-weight: 750; box-shadow: 0 1px 4px rgba(31, 82, 62, .08); }
.cm-board { overflow: hidden; padding: 0; border-color: #e0e8e4; border-radius: 10px; box-shadow: 0 2px 10px rgba(15, 45, 33, .04); }
.cm-board-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e7eeea; background: #fbfdfc; }
.cm-window-tabs { display: flex; align-items: center; gap: 4px; }
.cm-window-tabs > span { margin-right: 2px; color: #66786f; font-size: 11px; font-weight: 750; }
.cm-window-tabs button { min-height: 26px; padding: 0 9px; border: 1px solid #dce6e1; border-radius: 6px; background: #fff; color: #65776e; font-size: 10px; font-weight: 700; cursor: pointer; }
.cm-window-tabs button.active { border-color: #0b9367; background: #0b9367; color: #fff; box-shadow: 0 2px 6px rgba(11, 147, 103, .16); }
.cm-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-filters input, .cm-filters select { height: 32px; min-width: 0; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #1f2937; font-size: 12px; outline: none; }
.cm-filters input { min-width: 180px; flex: 1; }
.cm-filters select { max-width: 170px; }
.cm-filters input:focus, .cm-filters select:focus { border-color: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, .15); }
.cm-filters button.cm-query-btn { min-height: 32px; padding: 0 16px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.cm-rise-guide { padding: 7px 14px; border-bottom: 1px solid #e7eeea; background: #f8fbff; color: #60758b; font-size: 11px; line-height: 1.5; }

/* 快捷排序按钮组 */
.cm-quick-sorts { display: inline-flex; align-items: center; gap: 6px; }
.cm-sort-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #374151; font-size: 12px; font-weight: 650; cursor: pointer; transition: all .15s; white-space: nowrap; user-select: none; }
.cm-sort-chip:hover { border-color: #10b981; color: #047857; background: #f0fdf4; }
.cm-sort-chip.active { border-color: #059669; background: #ecfdf5; color: #047857; font-weight: 800; box-shadow: 0 1px 3px rgba(5, 150, 105, .15); }
.cm-sort-chip .cm-sort-arrow { color: #059669; font-size: 11px; font-weight: 800; background: #d1fae5; padding: 1px 5px; border-radius: 4px; }

/* 表格主体 */
.cm-table-wrap { overflow: auto; }
.cm-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; }
.cm-table th { position: sticky; z-index: 2; top: 0; padding: 12px 14px; border-bottom: 1px solid #d1d5db; background: #f9fafb; color: #374151; font-size: 13px; font-weight: 750; text-align: left; white-space: nowrap; user-select: none; }
.cm-table th.cm-th-sortable { cursor: pointer; transition: background .15s, color .15s; }
.cm-table th.cm-th-sortable:hover { background: #f0fdf4; color: #047857; }
.cm-table th.cm-th-sortable.active { background: #ecfdf5; color: #047857; }
.cm-th-inner { display: inline-flex; align-items: center; gap: 6px; }
.cm-sort-tag { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #9ca3af; background: #f3f4f6; transition: all .15s; }
.cm-sort-tag.active { color: #047857; background: #d1fae5; }
.cm-th-metrics .cm-sort-tag { color: #64748b; background: #eef2f7; }
.cm-th-metrics.active .cm-sort-tag { color: #047857; background: #d1fae5; }

.cm-table td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; color: #1f2937; font-size: 13px; vertical-align: middle; }
.cm-table tbody tr:hover td { background: #f9fafb; }
.cm-table tbody tr.cm-hit-row td { background: linear-gradient(90deg, #fff9e6, #fffdf7); border-bottom-color: #f5d98d; }
.cm-table tbody tr.cm-hit-row td:first-child { box-shadow: inset 4px 0 0 #f0b429; }
.cm-table tbody tr.cm-hit-row:hover td { background: #fff4cf; }
.cm-table tbody tr:last-child td { border-bottom: 0; }

/* 排名 */
.cm-rank-cell { width: 56px; text-align: center; }
.cm-rank { display: grid; width: 32px; height: 32px; margin: 0 auto 4px; place-items: center; border-radius: 8px; background: #f3f4f6; color: #4b5563; font-size: 14px; font-weight: 850; }
.cm-rank.top-1 { background: linear-gradient(135deg, #fef08a, #eab308); color: #713f12; box-shadow: 0 4px 10px rgba(234, 179, 8, .3); }
.cm-rank.top-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; box-shadow: 0 4px 10px rgba(148, 163, 184, .25); }
.cm-rank.top-3 { background: linear-gradient(135deg, #ffedd5, #f97316); color: #7c2d12; box-shadow: 0 4px 10px rgba(249, 115, 22, .25); }
.cm-rank-score { color: #6b7280; font-size: 11px; font-weight: 600; }

/* 视频单元格 */
.cm-video-cell { display: flex; min-width: 240px; max-width: 360px; align-items: center; gap: 12px; }
.cm-cover { position: relative; display: grid; overflow: hidden; width: 48px; height: 64px; flex: 0 0 48px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: linear-gradient(145deg, #d1fae5, #dbeafe); color: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-cover i { position: relative; z-index: 1; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgba(15, 23, 42, .6); font-size: 9px; font-style: normal; }
.cm-video-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-video-title { display: -webkit-box; overflow: hidden; padding: 0; border: 0; background: transparent; color: #111827; font-size: 13px; font-weight: 750; line-height: 1.45; text-align: left; cursor: pointer; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cm-video-title:hover { color: #059669; }
.cm-video-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #6b7280; font-size: 12px; }
.cm-meta-author { font-weight: 600; color: #4b5563; }
.cm-meta-dot { color: #d1d5db; }
.cm-meta-time { font-weight: 500; color: #6b7280; }
.cm-meta-time.highlight { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 750; border: 1px solid #fde68a; }
.cm-meta-baseline { padding: 1px 6px; border-radius: 4px; background: #f3f4f6; color: #6b7280; font-size: 11px; font-weight: 600; }

/* 当前数据（固定） */
.cm-current-metrics { display: grid; min-width: 140px; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }
.cm-stat-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; white-space: nowrap; }
.cm-stat-tag b { color: #111827; font-size: 13px; font-weight: 700; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cm-tag-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 800; }
.cm-stat-tag.like .cm-tag-icon { background: #fef2f2; color: #dc2626; }
.cm-stat-tag.comment .cm-tag-icon { background: #f0f9ff; color: #0284c7; }
.cm-stat-tag.fav .cm-tag-icon { background: #fffbeb; color: #d97706; }
.cm-stat-tag.forward .cm-tag-icon { background: #ecfdf5; color: #059669; }

/* 增量数据 */
.cm-deltas { display: grid; min-width: 145px; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }
.cm-delta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cm-delta-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 800; }
.cm-delta-icon.forward { background: #d1fae5; color: #047857; }
.cm-delta-icon.like { background: #fee2e2; color: #b91c1c; }
.cm-delta-icon.fav { background: #fef3c7; color: #b45309; }
.cm-delta-icon.comment { background: #e0f2fe; color: #0369a1; }
.cm-delta-item b { font-size: 13px; font-weight: 800; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cm-delta-item.positive b { color: #059669; }
.cm-delta-item.zero b { color: #9ca3af; font-weight: 600; }

/* 爆款判断 */
.cm-score-card { display: flex; flex-direction: column; gap: 4px; min-width: 135px; }
.cm-score-top { display: flex; align-items: center; gap: 8px; }
.cm-score-num { color: #dc2626; font-size: 22px; font-weight: 850; line-height: 1; letter-spacing: -0.5px; }
.cm-level { display: inline-flex; width: max-content; min-height: 22px; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; line-height: 1.3; }
.cm-level.rising { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cm-level.potential { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.cm-level.hit { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.cm-level.normal { background: #f0fdf4; color: #047857; border: 1px solid #bbf7d0; }
.cm-score-reason { font-size: 11px; line-height: 1.4; color: #6b7280; max-width: 175px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 口播文案 */
.cm-copy-box { display: flex; flex-direction: column; gap: 5px; min-width: 160px; max-width: 230px; }
.cm-copy-header { display: flex; align-items: center; gap: 6px; }
.cm-copy-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 750; }
.cm-copy-badge.ready { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cm-copy-badge.extracting { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.cm-copy-badge.empty { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.cm-copy-body { font-size: 12px; line-height: 1.5; color: #374151; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-copy-tip { color: #9ca3af; font-size: 11px; }

/* 操作按钮 */
.cm-row-actions { display: flex; min-width: 160px; flex-wrap: wrap; gap: 6px; }
.cm-row-actions button, .cm-account-card footer button, .cm-digest-actions button { min-height: 28px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: 12px; font-weight: 650; cursor: pointer; transition: all .15s; }
.cm-row-actions button:hover, .cm-account-card footer button:hover { border-color: #9ca3af; background: #f9fafb; color: #111827; }
.cm-row-actions button.accent, .cm-account-card footer button.accent { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.cm-row-actions button.accent:hover { border-color: #6ee7b7; background: #d1fae5; }
.cm-row-actions button.primary { border-color: #059669; background: #059669; color: #fff; font-weight: 700; }
.cm-row-actions button.primary:hover { background: #047857; border-color: #047857; }
.cm-row-actions button:disabled { cursor: not-allowed; opacity: .5; }
.cm-pager { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 48px; border-top: 1px solid #edf1ef; color: #78877f; font-size: 10px; }
.cm-pager button { min-height: 28px; padding: 0 12px; border: 1px solid #dbe5df; border-radius: 7px; background: #fff; color: #52655b; font-size: 9px; cursor: pointer; }
.cm-pager button:disabled { cursor: not-allowed; opacity: .45; }
.cm-empty { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.cm-empty i { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: #eaf8f2; color: #0b9166; font-size: 23px; font-style: normal; }
.cm-empty h3 { margin: 14px 0 5px; color: #33483e; }
.cm-empty p { max-width: 600px; margin: 0 0 16px; color: #899890; font-size: 11px; line-height: 1.7; }
.cm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 2px 1px; }
.cm-section-heading h3 { margin: 0; color: #1a2d24; font-size: 18px; }
.cm-section-heading p { margin: 5px 0 0; color: #7a8d83; font-size: 11px; }
.cm-section-heading button { flex: 0 0 auto; }
.cm-account-panel, .cm-digest-panel { display: grid; gap: 14px; }
.cm-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.cm-account-card { overflow: hidden; border: 1px solid #dee9e3; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(15, 48, 35, .045); }
.cm-account-card.paused { background: #fafbfa; opacity: .78; }
.cm-account-card > header { display: flex; min-height: 75px; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #eef2f0; }
.cm-account-card > header > img, .cm-account-card > header > span { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #bcebd7, #b8d8f8); color: #14684c; font-size: 17px; font-weight: 850; object-fit: cover; }
.cm-account-card > header > div { min-width: 0; flex: 1; }
.cm-account-card h3 { overflow: hidden; margin: 0; color: #263a30; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cm-account-card header p { overflow: hidden; margin: 4px 0 0; color: #89988f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cm-account-card header em { padding: 3px 7px; border-radius: 999px; background: #f1f3f2; color: #8b9791; font-size: 8px; font-style: normal; font-weight: 750; }
.cm-account-card header em.online { background: #e9f9f1; color: #088258; }
.cm-account-card > section { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 8px; }
.cm-account-card > section div { display: grid; gap: 2px; padding: 0 8px; border-right: 1px solid #edf1ef; text-align: center; }
.cm-account-card > section div:last-child { border: 0; }
.cm-account-card > section b { color: #344b40; font-size: 13px; }
.cm-account-card > section small { color: #91a097; font-size: 8px; }
.cm-account-card dl { display: grid; gap: 5px; margin: 0; padding: 0 14px 12px; }
.cm-account-card dl div { display: flex; min-width: 0; justify-content: space-between; gap: 10px; color: #72847a; font-size: 9px; }
.cm-account-card dt, .cm-account-card dd { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.cm-account-card dd { color: #4b6156; }
.cm-account-error { overflow: hidden; margin: 0 14px 10px; padding: 7px 8px; border-radius: 7px; background: #fff1f2; color: #c83b52; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.cm-account-scan-status { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 8px 10px; border: 1px solid #dce8e2; border-radius: 8px; background: #f7faf8; color: #5d7167; }
.cm-account-scan-status > i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #9aa9a1; }
.cm-account-scan-status > span { display: grid; min-width: 0; gap: 2px; }
.cm-account-scan-status b { font-size: 9px; }
.cm-account-scan-status small { overflow: hidden; color: inherit; font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
.cm-account-scan-status.queued, .cm-account-scan-status.running { border-color: #b8d8ef; background: #f0f8fd; color: #28739f; }
.cm-account-scan-status.queued > i, .cm-account-scan-status.running > i { border: 2px solid #8bbcd8; border-top-color: transparent; background: transparent; animation: cm-spin .8s linear infinite; }
.cm-account-scan-status.success { border-color: #b7e3ce; background: #effaf5; color: #087651; }
.cm-account-scan-status.success > i { background: #12a66e; box-shadow: 0 0 0 3px rgba(18, 166, 110, .12); }
.cm-account-scan-status.error { border-color: #f0cbd1; background: #fff3f4; color: #be3348; }
.cm-account-scan-status.error > i { background: #db4c61; }
.cm-account-scan-status.timeout { border-color: #ead9b6; background: #fff9ec; color: #8b641c; }
.cm-account-scan-status.timeout > i { background: #d69a2d; }
.cm-account-card footer button.scan:disabled { cursor: wait; opacity: .68; }
.cm-account-card footer { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px; border-top: 1px solid #edf1ef; background: #fafcfb; }
.cm-account-card footer button.danger { margin-left: auto; border-color: #f3d0d4; color: #c63b4d; }
.cm-digest-tip { display: flex; align-items: center; gap: 14px; padding: 16px 19px; border: 1px solid #f7df9a; border-radius: 15px; background: linear-gradient(120deg, #fffaf0, #fffdf8); }
.cm-digest-tip > i { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 13px; background: #fff0ba; color: #cf7a0a; font-size: 20px; font-style: normal; }
.cm-digest-tip b { color: #74470d; font-size: 12px; }
.cm-digest-tip p { margin: 4px 0 0; color: #9b743d; font-size: 10px; }
.cm-digest-list { overflow: hidden; padding: 0; }
.cm-digest-row { display: grid; width: 100%; grid-template-columns: 1fr 130px 90px 100px; align-items: center; gap: 12px; padding: 14px 17px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; color: #43584d; text-align: left; cursor: pointer; }
.cm-digest-row:last-child { border-bottom: 0; }
.cm-digest-row:hover { background: #fbfefc; }
.cm-digest-row > span:not(.cm-digest-status) { display: grid; gap: 3px; }
.cm-digest-row b { color: #2c4136; font-size: 12px; }
.cm-digest-row small { color: #91a097; font-size: 8px; }
.cm-digest-status { width: max-content; padding: 4px 9px; border-radius: 999px; background: #fff4dd; color: #bc6b0a; font-size: 8px; font-weight: 800; }
.cm-digest-status.ready { background: #eaf8f1; color: #0a8059; }
.cm-digest-row > i { color: #16825e; font-size: 9px; font-style: normal; font-weight: 750; text-align: right; }
.cm-log-table { min-width: 940px; }
.cm-job-type, .cm-run-status { display: inline-flex; padding: 3px 7px; border-radius: 7px; background: #eef4f1; color: #526a5e; font-size: 8px; font-weight: 750; }
.cm-run-status.success { background: #eaf8f1; color: #078159; }
.cm-run-status.failed { background: #fff0f2; color: #cc304a; }
.cm-table-empty { padding: 60px; color: #94a39b; text-align: center; }
.cm-settings { display: grid; gap: 1px; overflow: hidden; margin-top: 12px; padding: 0; border-radius: 17px; }
.cm-setting-group { display: grid; gap: 14px; padding: 20px 22px; border-bottom: 1px solid #e9efec; }
.cm-setting-group > header { display: flex; align-items: center; gap: 10px; }
.cm-setting-group > header i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e9f7f1; color: #0b805a; font-size: 11px; font-style: normal; font-weight: 850; }
.cm-setting-group > header div { display: grid; gap: 2px; }
.cm-setting-group > header b { color: #2b4035; font-size: 12px; }
.cm-setting-group > header small { color: #8b9a92; font-size: 9px; }
.cm-setting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-setting-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cm-settings label, .cm-edit-account label { display: grid; gap: 6px; color: #52675d; font-size: 10px; font-weight: 700; }
.cm-settings input:not([type="checkbox"]), .cm-settings select, .cm-edit-account input, .cm-edit-account select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d9e4de; border-radius: 9px; background: #fbfdfc; color: #334a3e; outline: none; }
.cm-check-row { display: flex; flex-wrap: wrap; gap: 28px; }
.cm-settings label.cm-check { display: flex; align-items: center; grid-template-columns: none; gap: 8px; }
.cm-check input { width: 16px; height: 16px; accent-color: #0b9367; }
.cm-settings > footer { display: flex; justify-content: flex-end; padding: 15px 22px; background: #fafcfb; }
.cm-search-dialog { display: grid; gap: 15px; }
.cm-search-dialog > p { margin: 0; color: #687d72; font-size: 11px; line-height: 1.7; }
.cm-search-box { display: flex; gap: 8px; }
.cm-search-box input { min-width: 0; height: 42px; flex: 1; padding: 0 12px; border: 1px solid #c9ded4; border-radius: 10px; background: #fbfdfc; outline: none; }
.cm-search-result { overflow: auto; min-height: 190px; max-height: 390px; border: 1px solid #e1e9e5; border-radius: 12px; background: #fafcfb; }
.cm-search-placeholder, .cm-search-loading, .cm-search-error { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 7px; padding: 30px; color: #91a098; text-align: center; }
.cm-search-loading i { width: 27px; height: 27px; border: 3px solid #cce7dc; border-top-color: #0b9367; border-radius: 50%; animation: cm-spin .8s linear infinite; }
.cm-search-loading b, .cm-search-error b { color: #42584d; }
.cm-search-loading span, .cm-search-error span { color: #899990; font-size: 10px; }
.cm-search-error b { color: #c23b4e; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
.cm-search-result article { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #e8efeb; }
.cm-search-result article:last-child { border: 0; }
.cm-search-result article > span { display: grid; overflow: hidden; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 10px; background: #dff3ea; color: #147653; font-weight: 800; }
.cm-search-result article img { width: 100%; height: 100%; object-fit: cover; }
.cm-search-result article > div { display: grid; min-width: 0; flex: 1; gap: 3px; }
.cm-search-result article b { color: #344a3f; font-size: 11px; }
.cm-search-result article small { overflow: hidden; color: #8b9991; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cm-add-status { display: block; min-height: 13px; font-size: 9px; line-height: 1.4; }
.cm-add-status.loading { color: #9a6700; }
.cm-add-status.success { color: #087651; font-weight: 700; }
.cm-add-status.error { color: #c23b4e; font-weight: 700; }
.cm-search-result article button { min-height: 29px; padding: 0 10px; border: 1px solid #9fd5c0; border-radius: 7px; background: #edf9f4; color: #0a7d58; font-size: 9px; font-weight: 750; cursor: pointer; }
.cm-edit-account { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cm-edit-account .wide { grid-column: 1 / -1; }
#modalRoot .modal.cm-detail-modal { width: min(1050px, calc(100vw - 36px)); max-width: 1050px; }
.cm-detail { display: grid; gap: 17px; }
.cm-detail > header { display: flex; justify-content: space-between; gap: 20px; padding: 2px 3px; }
.cm-detail > header h2 { margin: 8px 0 5px; color: #21352b; font-size: 21px; line-height: 1.5; }
.cm-detail > header p { margin: 0; color: #819087; font-size: 10px; }
.cm-detail-score { display: grid; min-width: 80px; align-content: center; padding: 9px 15px; border: 1px solid #ffd4c8; border-radius: 13px; background: #fff5f2; text-align: center; }
.cm-detail-score strong { color: #dc5535; font-size: 26px; }
.cm-detail-score small { color: #a1786c; font-size: 8px; }
.cm-detail-current { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid #e0e9e4; border-radius: 12px; background: #f8fbf9; }
.cm-detail-current > div { display: flex; align-items: center; gap: 16px; }
.cm-detail-current > div > b { color: #374b41; font-size: 10px; white-space: nowrap; }
.cm-detail-current p { margin: 0; color: #74877d; font-size: 9px; }
.cm-detail > section > h3, .cm-detail-copy h3 { margin: 0 0 9px; color: #354a3f; font-size: 12px; }
.cm-window-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.cm-window-cards article { display: grid; gap: 4px; padding: 10px; border: 1px solid #e0e9e4; border-radius: 10px; background: #fff; }
.cm-window-cards article > b { margin-bottom: 2px; color: #176e50; font-size: 10px; }
.cm-window-cards article > span { color: #5f7268; font-size: 8px; }
.cm-window-cards article > small { margin-top: 2px; color: #9aa69f; font-size: 7px; }
.cm-detail-copy { overflow: hidden; border: 1px solid #dce7e1; border-radius: 13px; background: #f8fbf9; }
.cm-detail-copy > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #e0e9e4; background: #fff; }
.cm-detail-copy h3 { margin: 0; }
.cm-detail-copy > header span { color: #829289; font-size: 8px; }
.cm-detail-copy > div { max-height: 270px; overflow: auto; padding: 14px; color: #40564b; font-size: 11px; line-height: 1.85; white-space: pre-wrap; }
.cm-detail-copy details { padding: 0 14px 13px; color: #77887f; font-size: 9px; }
.cm-detail-copy details p { max-height: 180px; overflow: auto; line-height: 1.7; white-space: pre-wrap; }
.cm-snapshots { color: #6f8278; font-size: 10px; }
.cm-snapshots summary { cursor: pointer; font-weight: 750; }
.cm-snapshots .cm-table-wrap { max-height: 250px; margin-top: 9px; border: 1px solid #e2e9e5; border-radius: 10px; }
.cm-snapshots .cm-table { min-width: 600px; }
.cm-detail > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cm-detail > footer button { min-height: 36px; padding: 0 13px; }
.cm-detail > footer button.accent { border: 1px solid #9bd2bc; background: #edf9f4; color: #087b57; }
.cm-digest-detail { display: grid; gap: 10px; }
.cm-digest-detail > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid #f1dfae; border-radius: 11px; background: #fffaf0; }
.cm-digest-detail > header div { display: flex; align-items: baseline; gap: 7px; }
.cm-digest-detail > header b { color: #b56506; font-size: 18px; }
.cm-digest-detail > header span { color: #8f774e; font-size: 9px; }
.cm-digest-detail > header button { min-height: 29px; border: 1px solid #e9ca78; border-radius: 7px; background: #fff; color: #9b650e; font-size: 9px; cursor: pointer; }
.cm-digest-detail > article { display: grid; grid-template-columns: 29px 1fr auto; gap: 11px; padding: 14px; border: 1px solid #e1e9e5; border-radius: 12px; background: #fff; }
.cm-digest-detail > article > em { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #eaf7f1; color: #0a8059; font-size: 10px; font-style: normal; font-weight: 850; }
.cm-digest-detail article > div:nth-child(2) { min-width: 0; }
.cm-digest-detail h3 { margin: 7px 0 3px; color: #2f4539; font-size: 13px; }
.cm-digest-detail h4 { margin: 0 0 8px; color: #12805c; font-size: 10px; }
.cm-digest-detail p { max-height: 135px; overflow: auto; margin: 7px 0; color: #5b6f64; font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.cm-digest-detail small { color: #89988f; font-size: 8px; }

@media (max-width: 1280px) {
  .cm-summary { grid-template-columns: repeat(3, 1fr); }
  .cm-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-table { min-width: 1120px; }
}
@media (max-width: 820px) {
  .cm-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .cm-device { width: 100%; margin-left: 0; }
  .cm-summary { grid-template-columns: repeat(2, 1fr); }
  .cm-filters { flex-wrap: wrap; }
  .cm-filters input { width: 100%; min-width: 100%; }
  .cm-filters select { max-width: none; flex: 1; }
  .cm-account-grid { grid-template-columns: 1fr; }
  .cm-section-heading { align-items: flex-start; flex-direction: column; }
  .cm-digest-row { grid-template-columns: 1fr 90px; }
  .cm-digest-row > :nth-child(3), .cm-digest-row > :nth-child(4) { display: none; }
  .cm-setting-grid, .cm-setting-grid.four { grid-template-columns: repeat(2, 1fr); }
  .cm-window-cards { grid-template-columns: repeat(2, 1fr); }
  .cm-detail-current { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .cm-summary { grid-template-columns: 1fr 1fr; }
  .cm-stat-icon { display: none; }
  .cm-tabs button { padding: 0 12px; }
  .cm-window-tabs { overflow-x: auto; }
  .cm-setting-grid, .cm-setting-grid.four, .cm-edit-account { grid-template-columns: 1fr; }
  .cm-edit-account .wide { grid-column: auto; }
  .cm-search-box { flex-direction: column; }
}







/* ==========================================================================
   Autopilot Compact Metric Strip & 0~4 GPU Cluster Dashboard
   ========================================================================== */

.autopilot-metric-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.autopilot-metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}

.autopilot-metric-pill .metric-icon {
  font-size: 15px;
}

.autopilot-metric-pill .metric-label {
  font-weight: 500;
  color: #64748b;
}

.autopilot-metric-pill .metric-val {
  color: #0f172a;
}

.autopilot-metric-pill .metric-val b {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.autopilot-metric-pill.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.autopilot-metric-pill.warning .metric-val b {
  color: #b45309;
}

.autopilot-metric-pill.cluster-summary {
  margin-left: auto;
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.autopilot-metric-pill.cluster-summary .metric-val b {
  color: #166534;
  font-size: 13px;
}

/* GPU Dashboard (Settings & Global) */
.settings-gpu-dashboard,
.autopilot-gpu-dashboard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.gpu-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.gpu-dashboard-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpu-dashboard-title-icon {
  font-size: 18px;
}

.gpu-dashboard-title strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.gpu-dashboard-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 6px;
}

.gpu-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gpu-pulse-indicator {
  font-size: 12px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.gpu-refresh-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.gpu-refresh-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.gpu-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1280px) {
  .gpu-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gpu-cards-grid {
    grid-template-columns: 1fr;
  }
}

.gpu-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
}

.gpu-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.gpu-card.is-rendering {
  border-color: #f97316;
  background: #fffaf5;
}

.gpu-card.is-idle {
  opacity: 0.88;
}

.gpu-card.is-primary {
  border-color: #f59e0b;
  background: #fffdfa;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.gpu-primary-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  line-height: 1.4;
  margin-left: 4px;
}

.gpu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gpu-card-title-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.gpu-card-num {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.gpu-card-model {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.gpu-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gpu-status-badge .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gpu-status-badge.ready {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.gpu-status-badge.rendering {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.gpu-status-badge.busy {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.gpu-status-badge.idle {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.gpu-role-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  color: #334155;
}

.gpu-role-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpu-port-label {
  font-family: monospace;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 600;
}

.gpu-port-label.unassigned {
  color: #94a3b8;
  font-family: inherit;
}

.gpu-vram-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gpu-vram-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: #64748b;
}

.gpu-vram-text .vram-val b {
  color: #0f172a;
  font-weight: 700;
}

.gpu-vram-bar-wrap {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.gpu-vram-bar {
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease, background-color 0.3s ease;
}

.gpu-vram-bar.bar-normal {
  background: linear-gradient(90deg, #10b981, #059669);
}

.gpu-vram-bar.bar-warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.gpu-vram-bar.bar-danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.gpu-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
}

.gpu-metric-cell {
  display: flex;
  flex-direction: column;
}

.gpu-metric-cell:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.gpu-metric-k {
  font-size: 10px;
  color: #94a3b8;
}

.gpu-metric-v {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.gpu-metric-v.temp-hot {
  color: #dc2626;
}


/* ========================================================================== */
/* My Works Skeleton Shimmer Animation                                       */
/* ========================================================================== */
.work-card.skeleton-card {
  pointer-events: none;
}

.skeleton-cover {
  background: #1e293b !important;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background-color: #1e293b;
}

.skeleton-shimmer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.22) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: skeleton-shimmer-anim 1.5s infinite;
  content: '';
}

@keyframes skeleton-shimmer-anim {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-line {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}


/* ===== 紧凑精致型产品文案概览头部 ===== */
.copy-overview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.copy-overview-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.copy-overview-title-group .section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.copy-drag-hint-badge {
  font-size: 11px;
  font-weight: 500;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.copy-overview-mini-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1.2;
}

.mini-stat-label {
  color: #64748b;
  font-weight: 500;
}

.mini-stat-value {
  font-weight: 700;
  color: #1e293b;
}

.mini-stat-value.stat-draft {
  color: #d97706;
}

.mini-stat-value.stat-published {
  color: #059669;
}


/* ==========================================================================
   Product Management Page Modern Redesign (PM Styles)
   ========================================================================== */

.pm-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.pm-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pm-header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-header-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pm-badge-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.pm-badge-active {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.pm-header-subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.pm-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 230px;
}

.pm-search-box .pm-search-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  pointer-events: none;
}

.pm-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 32px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
}

.pm-search-box input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.pm-clear-btn {
  position: absolute;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  line-height: 1;
}

.pm-clear-btn:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.pm-subject-select-wrap select {
  height: 36px;
  min-width: 110px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pm-subject-select-wrap select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: #ffffff;
}

.pm-filter-btn,
.pm-reset-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pm-filter-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.pm-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pm-reset-btn {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.pm-reset-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.pm-primary-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.pm-primary-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* Table Card */
.pm-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.pm-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.pm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.pm-table thead th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pm-table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.pm-table tbody tr:hover {
  background: #f8fafc;
}

.pm-table tbody tr:last-child td {
  border-bottom: none;
}

.pm-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 13px;
  color: #334155;
}

/* Product Info Cell */
.pm-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pm-book-cover {
  width: 44px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.pm-book-badge {
  width: 44px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pm-product-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pm-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.pm-product-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.pm-meta-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.pm-meta-chip {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

/* Subject Badges */
.pm-tag-subject {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.subj-chinese {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.subj-math {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.subj-english {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.subj-physics,
.subj-chemistry,
.subj-biology {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.subj-history,
.subj-geography,
.subj-politics {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}
.subj-default {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Grade & Stage Pills */
.pm-pill-grade,
.pm-pill-stage {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pm-pill-stage {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f0abfc;
}

/* Price Box */
.pm-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.pm-price-currency {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.pm-price-val {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.pm-price-empty {
  color: #94a3b8;
  font-size: 13px;
}

/* Status Pill */
.pm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pm-status-pill.is-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.pm-status-pill.is-inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.pm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Action Buttons */
.pm-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.pm-btn-edit {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.pm-btn-edit:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.pm-btn-delete {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

.pm-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Empty State */
.pm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.pm-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.pm-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.pm-empty-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.pm-empty-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* ==========================================================================
   Product Management Pure Card Mode (PM Card Styles)
   ========================================================================== */

.pm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  width: 100%;
}

.pm-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f0f4fa 100%);
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

.pm-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: linear-gradient(165deg, #ffffff 0%, #e8f1fc 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.09);
}

.pm-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
  border: 2px dashed #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16) !important;
  cursor: grabbing !important;
}

.pm-card-drag-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: grab;
  transition: all 0.15s ease;
  z-index: 2;
}

.pm-card:hover .pm-card-drag-handle {
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
}

.pm-card-drag-handle:hover {
  color: #2563eb !important;
  background: #eff6ff !important;
}

.pm-card-drag-handle:active {
  cursor: grabbing !important;
}

.pm-card-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
}

.pm-card-cover-box {
  flex-shrink: 0;
}

.pm-card-cover {
  width: 52px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  display: block;
}

.pm-card-badge {
  width: 52px;
  height: 68px;
  border-radius: 6px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.pm-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pm-card-name {
  margin: 0 0 6px;
  padding-right: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.pm-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  min-height: 36px;
}

.pm-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pm-card-action-btn {
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.pm-card-action-btn.edit {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.pm-card-action-btn.edit:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.pm-card-action-btn.delete {
  background: #ffffff;
  color: #dc2626;
  border-color: #fca5a5;
}

.pm-card-action-btn.delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* Add New Card Slot */
.pm-add-card {
  background: linear-gradient(165deg, #f8fafc 0%, #edf2f8 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 140px;
  transition: all 0.2s ease;
  color: #64748b;
}

.pm-add-card:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-2px);
}

.pm-add-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.pm-add-card:hover .pm-add-icon {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pm-add-text {
  font-size: 13.5px;
  font-weight: 600;
}



/* ==========================================================================
   Merged Products & Copies Tab & Card Styles
   ========================================================================== */

.copies-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.copies-tab-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copies-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.copies-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.pm-card-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  width: fit-content;
}

.pm-card-btn-view {
  flex: 1.4;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.pm-card-btn-view:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}


/* ==========================================================================
   Works View Top Tabs (作品列表 vs 发布中心)
   ========================================================================== */
.works-main-tabs-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.works-main-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: linear-gradient(180deg, #e9eff6 0%, #dfe7f1 100%);
  border: 1px solid #cbd7e6;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.works-main-tab {
  padding: 9px 20px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* 🎬 视频作品生成: 初始状态 (淡冰蓝按键) */
.works-main-tab.works-tab-works:not(.active),
.works-main-tab:first-child:not(.active) {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.works-main-tab.works-tab-works:not(.active):hover,
.works-main-tab:first-child:not(.active):hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

/* 🎬 视频作品生成: 选中状态 (3D皇家科技蓝按钮) */
.works-main-tab.works-tab-works.active,
.works-main-tab.active:first-child {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.works-main-tab.works-tab-works.active:hover,
.works-main-tab.active:first-child:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 🚀 多平台发布中心: 初始状态 (淡紫按键) */
.works-main-tab.works-tab-publishing:not(.active),
.works-main-tab:last-child:not(.active) {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.08);
}

.works-main-tab.works-tab-publishing:not(.active):hover,
.works-main-tab:last-child:not(.active):hover {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
  box-shadow: 0 3px 8px rgba(109, 40, 217, 0.16);
  transform: translateY(-1px);
}

/* 🚀 多平台发布中心: 选中状态 (3D火箭炫彩紫按钮) */
.works-main-tab.works-tab-publishing.active,
.works-main-tab.active:last-child {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: 1px solid #5b21b6;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.works-main-tab.works-tab-publishing.active:hover,
.works-main-tab.active:last-child:hover {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 3D 浮雕数字徽标 */
.works-main-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: all 0.2s ease;
}

.works-main-tab:first-child:not(.active) .works-main-tab-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.works-main-tab:last-child:not(.active) .works-main-tab-badge {
  background: #ede9fe;
  color: #6d28d9;
}

.works-main-tab.active .works-main-tab-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(255, 255, 255, 0.3);
}
/* 视频提取页已合并链接提取能力，隐藏旧的重复导航入口。 */
#nav button[data-view="link-extractor"] { display: none !important; }
/* 统一输入框替代旧的视频号专用输入框。 */
.channel-unified-extract-form + div,
.channel-link-extract-row { display: none !important; }
.unified-link-list { margin-top: 18px; }
.unified-link-list .link-extract-list-head { margin-bottom: 12px; }
.unified-link-list .link-extract-grid { margin-top: 0; }
