/* 场景分享 · 电商风内容货架（对齐商城卡片气质） */
.cm-page {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 72px;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
    #050913;
  color: #e8eefc;
}
.cm-wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}
/* 标题左、Hub Tab + 发布 右上（与「我的传播」等页一致）；窄屏再上下堆叠 */
.cm-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 20px;
  margin-bottom: 18px;
}
.cm-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 560px);
}
.cm-head h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cm-head p {
  margin: 6px 0 0;
  color: #9db0d8;
  font-size: 14px;
  line-height: 1.6;
}
.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cm-hub-tabs-host {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 780px);
}
.cm-head > .cm-actions[data-cm-hub-tabs],
.cm-head > .cm-hub-tabs-host {
  flex: 0 1 auto;
  justify-content: flex-end;
  width: auto;
  max-width: min(100%, 780px);
  margin-left: auto;
}
.cm-hub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}
.cm-hub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cm-hub-tab:hover {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.55);
}
.cm-hub-tab.is-active {
  color: #eff6ff;
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 -2px 0 #3b82f6;
}
.cm-hub-publish {
  margin-left: 2px;
}
@media (max-width: 900px) {
  .cm-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cm-head > div:first-child {
    max-width: none;
  }
  .cm-hub-tabs-host,
  .cm-head > .cm-actions[data-cm-hub-tabs],
  .cm-head > .cm-hub-tabs-host {
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .cm-hub-tabs-host {
    justify-content: stretch;
    width: 100%;
  }
  .cm-hub-tabs {
    width: 100%;
  }
  .cm-hub-tab {
    flex: 1 1 calc(33.33% - 6px);
    min-width: calc(33.33% - 6px);
    padding: 0 8px;
    font-size: 12px;
  }
  .cm-hub-publish {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 2px;
  }
}
.cm-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cm-detail-nav-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cm-detail-nav-siblings .cm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.75);
  color: #e8eefc;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.cm-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.cm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cm-chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.65);
  color: #b6c7e8;
  font-size: 13px;
  cursor: pointer;
}
.cm-chip.is-active {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.55);
  color: #fff;
}
.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cm-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 16, 29, 0.92);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.35);
}
.cm-card.is-just-viewed {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 0 rgba(47, 127, 255, 0.55);
  animation: cmJustViewedPulse 1.1s ease-in-out 3;
  z-index: 1;
}
@keyframes cmJustViewedPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 127, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(47, 127, 255, 0.35);
  }
}
.cm-mine-card {
  padding: 0;
}
.cm-mine-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cm-mine-card .cm-cover {
  flex: 0 0 auto;
}
.cm-mine-list {
  display: grid;
  gap: 12px;
}
.cm-mine-row {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) minmax(200px, 220px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 16, 29, 0.92);
}
.cm-mine-cover {
  display: block;
  width: 228px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0b1220;
  flex-shrink: 0;
  align-self: center;
}
.cm-mine-cover .cm-cover {
  width: 100%;
  border-radius: 0;
  min-height: 128px;
  aspect-ratio: 16 / 9;
}
.cm-mine-main {
  min-width: 0;
  align-self: center;
}
.cm-mine-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}
.cm-mine-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}
.cm-mine-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cm-mine-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.cm-mine-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: center;
  min-width: 0;
  width: 100%;
}
.cm-mine-actions.cm-actions {
  display: grid;
  flex-direction: unset;
  flex-wrap: unset;
  align-items: stretch;
  gap: 6px;
}
.cm-mine-actions .cm-btn {
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.cm-mine-actions .cm-btn.primary {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .cm-mine-row {
    grid-template-columns: 180px minmax(0, 1fr) minmax(168px, 190px);
    gap: 12px;
  }
  .cm-mine-cover {
    width: 180px;
  }
  .cm-mine-cover .cm-cover {
    min-height: 101px;
  }
}
@media (max-width: 768px) {
  .cm-mine-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .cm-mine-cover {
    width: 100%;
    max-width: 100%;
  }
  .cm-mine-cover .cm-cover {
    min-height: 160px;
  }
  .cm-mine-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
  .cm-mine-actions .cm-btn {
    min-height: 36px;
    font-size: 13px;
  }
  .cm-mine-actions .cm-btn.primary {
    grid-column: 1 / -1;
  }
}
.cm-cover {
  aspect-ratio: 16 / 9;
  background: #0f172a center / cover no-repeat;
  position: relative;
}
.cm-cover-empty {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #172554 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-cover-video {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(155deg, #1e293b 0%, #0f172a 50%, #1e3a5f 100%);
}
.cm-cover-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cm-cover-video.is-ready video {
  opacity: 1;
}
.cm-cover-video.cm-cover-has-poster {
  background-size: cover;
  background-position: center;
}
.cm-cover-video.cm-cover-has-poster.is-ready video {
  opacity: 0;
}
.cm-cover-video.is-fallback video {
  opacity: 0;
}
.cm-cover-video-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 28px);
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  pointer-events: none;
  z-index: 1;
}
.cm-cover-video.is-ready .cm-cover-video-label {
  display: none;
}
.cm-cover-video.is-loading .cm-cover-video-label::after {
  content: " · 加载封面";
}
.cm-cover-video.is-fallback .cm-cover-video-label {
  display: inline-block;
}
.cm-cover-video.is-fallback .cm-cover-video-label::after {
  content: "";
}
.cm-cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  pointer-events: none;
  z-index: 1;
}
.cm-cover-play::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #e2e8f0;
}
.cm-cover-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.82);
  color: #93c5fd;
  z-index: 1;
}
.cm-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cm-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.cm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #8fa3c8;
  font-size: 12px;
}
.cm-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  font-size: 12px;
}
.cm-empty,
.cm-status {
  margin: 24px 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #9db0d8;
  text-align: center;
  line-height: 1.7;
}
.cm-status.is-err {
  border-style: solid;
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}
.cm-detail-media-block {
  margin-bottom: 8px;
}
.cm-detail-media-list {
  display: grid;
  gap: 14px;
}
.cm-detail-media-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cm-detail-media-item-label {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}
.cm-detail-media-item-head .cm-link-btn {
  border: 0;
  background: transparent;
  color: #7dd3fc;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.cm-detail-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1220;
  aspect-ratio: 16 / 9;
  position: relative;
}
.cm-detail-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #111827 0%, #0b1220 55%, #0f172a 100%);
}
.cm-detail-media-empty {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  text-align: center;
  color: #94a3b8;
}
.cm-detail-media-empty strong {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
}
.cm-detail-media-empty span {
  font-size: 13px;
  line-height: 1.5;
}
.cm-detail-media img,
.cm-detail-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cm-detail-media .shop-guarded-player {
  position: absolute;
  inset: 0;
}
.cm-detail-media .shop-guarded-player video {
  object-fit: contain;
}
.cm-media-download-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
}
.cm-media-download-bar .cm-meta {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.cm-detail-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
}
.cm-detail-body {
  margin: 16px 0;
  color: #d5e0f5;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.cm-shelf {
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
}
.cm-shelf h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #93c5fd;
}
.cm-shelf-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.cm-shelf-item {
  flex: 0 0 148px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.9);
  padding: 8px;
  text-decoration: none;
  color: inherit;
}
.cm-shelf-item.is-off {
  opacity: 0.55;
  pointer-events: none;
}
.cm-shelf-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #111827;
}
.cm-shelf-item .name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cm-shelf-item .price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}
.cm-shelf-item .off-label {
  margin-top: 4px;
  font-size: 12px;
  color: #fca5a5;
}
.cm-picked-products {
  margin-top: 10px;
}
.cm-picked-head {
  margin: 0 0 8px;
  font-size: 12px;
  color: #94a3b8;
}
.cm-picked-row {
  padding-bottom: 2px;
}
.cm-picked-item {
  position: relative;
  text-align: left;
}
.cm-picked-img-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #111827;
}
.cm-picked-remove {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
}
.cm-picked-remove:hover {
  border-color: rgba(96, 165, 250, 0.55);
  color: #93c5fd;
}
.cm-media-picked-list {
  margin-top: 10px;
}
.cm-media-picked-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cm-media-picked-item {
  width: 168px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}
.cm-media-picked-item.is-cover {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}
.cm-media-picked-cover-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  z-index: 1;
}
.cm-media-picked-actions .cm-btn.is-cover-btn:disabled {
  opacity: 0.85;
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.45);
}
.cm-media-picked-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(155deg, #1e293b 0%, #0f172a 55%, #1e3a5f 100%);
  cursor: pointer;
}
.cm-media-picked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cm-media-picked-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  font-size: 13px;
}
.cm-media-picked-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.cm-media-picked-play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}
.cm-media-picked-ord {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}
.cm-media-picked-name {
  margin: 8px 0 0;
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-media-picked-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.cm-media-picked-actions .cm-btn[data-set-cover] {
  grid-column: 1 / -1;
}
.cm-media-picked-actions .cm-btn {
  min-height: 30px;
  font-size: 12px;
  padding: 0 6px;
}
.cm-compose-media-preview-card {
  max-width: min(920px, 94vw);
  width: 100%;
}
.cm-compose-media-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cm-compose-media-preview-body {
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  min-height: 220px;
}
.cm-compose-media-preview-body video,
.cm-compose-media-preview-body img {
  display: block;
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
  background: #020617;
}
@media (max-width: 768px) {
  .cm-picked-item,
  .cm-shelf-item {
    flex-basis: 132px;
  }
  .cm-media-picked-item {
    width: calc(50% - 6px);
    min-width: 140px;
  }
}
.cm-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.cm-links,
.cm-replies {
  margin-top: 18px;
}
.cm-links a {
  color: #93c5fd;
}
.cm-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cm-wizard-steps span {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cm-wizard-steps span.is-on {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.25);
}
.cm-compose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 13px;
}
.cm-compose-links a {
  color: #93c5fd;
}
.cm-asset-meta {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.35);
}
.cm-asset-meta summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
}
.cm-asset-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.cm-body-toolbar {
  display: grid;
  gap: 10px;
}
.cm-six-outline-details {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(30, 58, 138, 0.14);
}
.cm-six-outline-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #bfdbfe;
  font-size: 13px;
}
.cm-six-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}
.cm-compose-benefit-tip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 13px;
  color: #d1fae5;
}
.cm-compose-benefit-tip a {
  color: #6ee7b7;
  width: fit-content;
}
.cm-copyright {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
  display: grid;
  gap: 10px;
}
.cm-copyright legend {
  padding: 0 6px;
  color: #e2e8f0;
  font-weight: 600;
}
.cm-shelf-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #94a3b8;
}
.cm-pack-reward-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #fcd34d;
}
.cm-detail-body--sections {
  display: grid;
  gap: 12px;
}
.cm-case-section {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cm-case-section h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #93c5fd;
}
.cm-case-section p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #e2e8f0;
}
.cm-asset-next {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(30, 58, 138, 0.2);
}
.cm-asset-next h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.cm-guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cm-guide-toc a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
}
.cm-guide-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.cm-guide-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.cm-guide-card ol,
.cm-guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.6;
}
.cm-benefits-status.is-on {
  border-color: rgba(52, 211, 153, 0.45);
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.35);
}
.cm-benefits-status.is-off {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.28);
}
.cm-benefits-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}
.cm-benefits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cm-benefits-table th,
.cm-benefits-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: top;
}
.cm-benefits-table th {
  color: #93c5fd;
  font-weight: 600;
  white-space: nowrap;
}
.cm-benefits-table td:nth-child(2) {
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
}
.cm-benefits-rules-list:not([hidden]) {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .cm-benefits-table th,
  .cm-benefits-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .cm-asset-meta-grid {
    grid-template-columns: 1fr;
  }
}
.cm-form {
  display: grid;
  gap: 12px;
}
.cm-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #b6c7e8;
}
.cm-form input:not([type="checkbox"]):not([type="file"]),
.cm-form textarea,
.cm-form select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
.cm-form textarea {
  min-height: 140px;
  resize: vertical;
}
.cm-form input[type="file"] {
  min-height: auto;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
}
.cm-field-block {
  display: grid;
  gap: 6px;
}
.cm-field-hint {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}
.cm-upload-progress {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.7);
}
.cm-upload-progress.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(69, 10, 10, 0.35);
}
.cm-upload-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}
.cm-upload-progress-head strong {
  flex: 0 0 auto;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
}
.cm-upload-progress.is-error .cm-upload-progress-head,
.cm-upload-progress.is-error .cm-upload-progress-head strong {
  color: #fecaca;
}
.cm-upload-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}
.cm-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.18s ease-out;
}
.cm-upload-progress.is-error .cm-upload-progress-bar {
  background: #f87171;
}
.cm-product-kw {
  flex: 1 1 160px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 0 12px;
}
.cm-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  grid-template-columns: none !important;
}
.cm-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px !important;
  margin: 3px 0 0;
  padding: 0 !important;
  border: none !important;
  border-radius: 3px !important;
  background: transparent !important;
  flex: 0 0 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}
.cm-check span {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}
.cm-mine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cm-st {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.cm-st-pending { background: #422006; color: #fcd34d; }
.cm-st-published { background: #052e16; color: #86efac; }
.cm-st-rejected { background: #450a0a; color: #fca5a5; }
.cm-st-draft { background: #1e293b; color: #cbd5e1; }
.cm-st-taken { background: #334155; color: #e2e8f0; }
.cm-mine-status-tip {
  margin: 0 0 4px;
  line-height: 1.45;
  color: #cbd5e1 !important;
}

.cm-reply {
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}
.cm-reply.is-nested {
  margin-left: 16px;
  border-style: dashed;
}
.cm-reply-text {
  color: #e2e8f0;
  line-height: 1.55;
  word-break: break-word;
}
.cm-reply-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cm-reply-thumb {
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #0b1220;
  cursor: pointer;
}
.cm-reply.is-nested .cm-reply-thumb {
  width: 72px;
  height: 72px;
}
.cm-reply-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cm-reply-compose-actions {
  flex-wrap: wrap;
}
.cm-reply-upload-host {
  margin: 10px 0 4px;
}
.cm-reply-upload-host .shop-uz {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
}
.cm-reply-upload-host .shop-uz-title {
  font-size: 13px;
  font-weight: 650;
}
.cm-reply-upload-host .shop-uz-hint {
  font-size: 11px;
}
.cm-reply-upload-host .shop-uz-btn {
  font-size: 13px;
  padding: 4px 2px;
}
.cm-reply-draft-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.cm-reply-draft-item {
  width: 96px;
  display: grid;
  gap: 6px;
}
.cm-reply-draft-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1220;
}
.cm-reply-upload-hint {
  margin: 6px 0 0;
}
.cm-reply-upload-hint.is-err {
  color: #fca5a5 !important;
}
.cm-reply-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.88);
}
.cm-reply-lightbox img {
  max-width: min(920px, 100%);
  max-height: min(86vh, 100%);
  object-fit: contain;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.cm-reply-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 768px) {
  .cm-reply.is-nested {
    margin-left: 8px;
  }
  .cm-reply-thumb {
    width: 76px;
    height: 76px;
  }
  .cm-reply-compose-actions .cm-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
  .cm-reply-upload-host .shop-uz-btn {
    width: auto;
    text-align: right;
  }
}
.cm-share-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  padding: 16px;
}
.cm-share-card {
  width: min(360px, 100%);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.cm-share-card h3 { margin: 0 0 6px; }
.cm-share-card img {
  margin: 12px auto;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.cm-share-card input {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  color: #e2e8f0;
  font-size: 12px;
}
.cm-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.cm-btn-soft {
  border-color: rgba(96, 165, 250, 0.35) !important;
  background: rgba(37, 99, 235, 0.16) !important;
  color: #dbeafe !important;
}
.cm-btn-mini {
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}
.cm-ai-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
    rgba(15, 23, 42, 0.75);
}
.cm-ai-toolbar-copy {
  display: grid;
  gap: 2px;
}
.cm-ai-toolbar-copy strong {
  color: #eff6ff;
  font-size: 14px;
}
.cm-ai-toolbar-copy span {
  color: #9db0d8;
  font-size: 12px;
  line-height: 1.45;
}
.cm-ai-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cm-polish-panel,
.cm-xp-redeem,
.cm-xp-ledgers {
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(30, 64, 175, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.88);
}
.cm-polish-head,
.cm-spread-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cm-polish-head h2,
.cm-polish-head h3,
.cm-xp-redeem h2,
.cm-xp-ledgers h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.cm-polish-head p {
  margin: 0;
  color: #9db0d8;
  font-size: 12px;
  line-height: 1.6;
}
.cm-polish-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}
.cm-polish-col {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
}
.cm-polish-col header {
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cm-polish-col p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 13px;
  max-height: 220px;
  overflow: auto;
}
.cm-polish-actions {
  margin-top: 4px;
}
.cm-pack-card {
  width: min(480px, 100%);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  text-align: left;
  padding: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(96, 165, 250, 0.28) !important;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(37, 99, 235, 0.28), transparent 50%),
    #0b1220 !important;
}
.cm-pack-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}
.cm-pack-kicker {
  margin: 0 0 4px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cm-pack-hero h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.cm-pack-close {
  flex: 0 0 auto;
  align-self: flex-start;
}
.cm-pack-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 18px 14px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.cm-pack-seg-btn {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9db0d8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cm-pack-seg-btn.is-active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.cm-pack-result {
  display: grid;
  gap: 12px;
  margin: 0 18px;
}
.cm-pack-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
}
.cm-pack-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 600;
}
.cm-pack-block textarea,
.cm-pack-block input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #020617;
  color: #e2e8f0;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}
.cm-pack-block textarea {
  min-height: 132px;
  resize: vertical;
}
.cm-pack-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.cm-pack-qr-block {
  text-align: center;
}
.cm-pack-qr {
  min-height: 48px;
  color: #8fa3c8;
  font-size: 12px;
}
.cm-pack-qr img {
  display: block;
  margin: 4px auto 0;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.cm-pack-footer {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding: 12px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.96) 28%);
}
.cm-pack-generate {
  width: 100%;
  min-height: 46px !important;
}
.cm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.cm-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
}
.cm-dash-meta {
  margin-bottom: 4px;
}
.cm-kpi-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
  padding-bottom: 6px;
}
.cm-kpi-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.22), rgba(10, 16, 29, 0.95));
  color: inherit;
  font: inherit;
  text-align: left;
}
.cm-kpi-card.is-selectable {
  width: 100%;
  cursor: pointer;
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 14px 14px 12px;
  min-height: 96px;
}
.cm-kpi-card.is-selectable .cm-kpi-accent {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #3b82f6;
  border-radius: 12px 12px 0 0;
}
.cm-kpi-card.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 64, 175, 0.22);
}
.cm-kpi-card.is-active .cm-kpi-accent {
  display: block;
}
.cm-kpi-card strong,
.cm-kpi-value {
  color: #f8fafc;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700;
}
.cm-kpi-card span {
  color: #9db0d8;
  font-size: 13px;
}
.cm-kpi-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.cm-kpi-delta {
  font-size: 12px;
  font-weight: 600;
}
.cm-kpi-delta.is-up { color: #86efac; }
.cm-kpi-delta.is-down { color: #fca5a5; }
.cm-kpi-delta.is-flat { color: #94a3b8; }
.cm-trend-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(8, 13, 23, 0.88);
  padding: 14px 14px 10px;
  margin-bottom: 8px;
}
.cm-trend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cm-trend-head h2 {
  margin: 0;
  font-size: 16px;
  color: #e2e8f0;
}
.cm-trend-chart {
  position: relative;
}
.cm-trend-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #e2e8f0;
  font-size: 12px;
  white-space: nowrap;
}
.cm-insight-banner {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(30, 64, 175, 0.18);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}
.cm-channel-bars {
  display: grid;
  gap: 10px;
}
.cm-channel-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  color: #cbd5e1;
  font-size: 13px;
}
.cm-channel-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.7);
  overflow: hidden;
}
.cm-channel-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: inherit;
}
.cm-geo-hint {
  margin-top: 4px;
}
.cm-geo-bar-row {
  grid-template-columns: minmax(104px, 1.5fr) 1fr auto;
}
.cm-geo-bar-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-geo-bar-row > strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cm-dash-skel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.cm-skel {
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.7) 0%,
    rgba(51, 65, 85, 0.85) 45%,
    rgba(30, 41, 59, 0.7) 100%
  );
  background-size: 200% 100%;
  animation: cm-skel-pulse 1.2s ease-in-out infinite;
}
.cm-skel-kpi { min-height: 96px; }
.cm-skel-trend { min-height: 220px; }
.cm-skel-rows {
  display: grid;
  gap: 10px;
}
.cm-skel-row { min-height: 88px; }
@keyframes cm-skel-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cm-help-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 6, 23, 0.55);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.cm-help-drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cm-help-drawer {
  width: min(360px, 92vw);
  height: 100%;
  background: #0b1220;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  padding: 16px;
  overflow: auto;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
}
.cm-help-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cm-help-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.cm-help-drawer h4 {
  margin: 0 0 6px;
  color: #f1f5f9;
  font-size: 14px;
}
.cm-help-drawer p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}
.cm-help-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  position: relative;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.55);
}
.cm-help-q:hover,
.cm-help-q:focus {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.75);
  outline: none;
}
.cm-help-q[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(260px, 72vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.12s ease;
}
.cm-help-q:hover::after,
.cm-help-q:focus::after {
  opacity: 1;
  visibility: visible;
}
.cm-chip .cm-help-q {
  margin-left: 6px;
}
.cm-section-title {
  margin: 22px 0 10px;
  font-size: 16px;
  color: #e2e8f0;
}
.cm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}
.cm-tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 650;
}
.cm-tab.is-active {
  border-color: rgba(96, 165, 250, 0.7);
  color: #fff;
  background: rgba(37, 99, 235, 0.35);
}
.cm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cm-stat-cell {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}
.cm-stat-label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 6px;
}
.cm-stat-value {
  color: #f8fafc;
  font-size: 22px;
}
.cm-stat-hint {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.cm-analytics-head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cm-analytics-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 10px 0 12px;
}
.cm-analytics-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.cm-analytics-cover .cm-cover {
  width: 100%;
  border-radius: 0;
}
.cm-analytics-cover-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
  background: #0b1220;
}
.cm-analytics-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
}
.cm-spark-wrap {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 13, 23, 0.8);
}
.cm-spark {
  width: 100%;
  height: auto;
  display: block;
}
.cm-spark-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.cm-spark-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
}
.cm-channel-list {
  display: grid;
  gap: 8px;
}
.cm-channel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
}
.cm-top-posts {
  display: grid;
  gap: 10px;
}
.cm-top-post {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}
.cm-top-post--media {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.cm-top-cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0b1220;
}
.cm-top-cover .cm-cover {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
.cm-top-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cm-top-post h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #f1f5f9;
}
@media (max-width: 768px) {
  .cm-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cm-analytics-hero {
    grid-template-columns: 1fr;
  }
  .cm-analytics-cover {
    max-width: 100%;
  }
  .cm-kpi-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 42vw);
    grid-template-columns: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cm-top-post {
    flex-direction: column;
    align-items: stretch;
  }
  .cm-top-post--media {
    grid-template-columns: 1fr;
  }
  .cm-channel-bar-row {
    grid-template-columns: 64px 1fr auto;
  }
  .cm-geo-bar-row {
    grid-template-columns: minmax(88px, 1.35fr) 1fr auto;
  }
  .cm-geo-bar-row > strong {
    font-size: 12px;
  }
}
.cm-author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.cm-author-stats span {
  padding: 9px 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #bfdbfe;
  font-size: 13px;
}
.cm-spread-list {
  display: grid;
  gap: 12px;
}
.cm-spread-row {
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), transparent 40%),
    rgba(10, 16, 29, 0.94);
}
.cm-spread-row-main {
  min-width: 0;
}
.cm-spread-row-head h2 {
  margin: 8px 0 0;
  color: #e8eefc;
  font-size: 16px;
  line-height: 1.35;
}
.cm-spread-row-head time {
  color: #8fa3c8;
  font-size: 12px;
  white-space: nowrap;
}
.cm-channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #1e293b;
  color: #cbd5e1;
}
.cm-channel-xiaohongshu,
.cm-channel-xhs {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}
.cm-channel-bilibili {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.cm-channel-generic,
.cm-channel-link {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}
.cm-spread-summary {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}
.cm-spread-link-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 12px 0 10px;
}
.cm-spread-link-label {
  color: #8fa3c8;
  font-size: 12px;
  white-space: nowrap;
}
.cm-pack-url-inline {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: #020617;
  color: #bfdbfe;
  font-size: 12px;
}
.cm-spread-actions {
  margin-top: 2px;
}
.cm-xp-disabled {
  padding: 40px 20px;
  border-style: solid;
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(37, 99, 235, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 18px;
  text-align: center;
}
.cm-xp-rules-wrap {
  margin: 16px auto 0;
  max-width: 520px;
  text-align: left;
}
.cm-xp-rules-title {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
}
.cm-xp-rules {
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.45);
  display: grid;
  gap: 10px;
}
.cm-xp-rules li {
  display: grid;
  gap: 2px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}
.cm-xp-rules li strong {
  color: #e2e8f0;
  font-size: 13px;
}
.cm-xp-rules li span {
  color: #94a3b8;
}
.cm-xp-status-pill {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}
.cm-xp-redeem,
.cm-xp-ledgers {
  margin-top: 18px;
}

@media (max-width: 768px) {
  .cm-page { padding-top: 88px; padding-bottom: 88px; }
  .cm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cm-card-title { font-size: 13px; }
  .cm-cover-play {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
  .cm-cover-play::before {
    left: 15px;
    top: 12px;
    border-width: 8px 0 8px 12px;
  }
  .cm-cta-bar .cm-btn { flex: 1 1 calc(50% - 8px); }
  .cm-detail-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .cm-detail-nav-siblings {
    width: 100%;
  }
  .cm-detail-nav-siblings .cm-btn {
    flex: 1 1 calc(50% - 8px);
  }
  .cm-kpi-grid { grid-template-columns: 1fr 1fr; }
  .cm-help-q[data-tip]::after {
    left: 0;
    transform: none;
    max-width: min(240px, 80vw);
  }
  .cm-ai-toolbar { flex-direction: column; align-items: stretch; }
  .cm-ai-toolbar-actions .cm-btn { flex: 1 1 calc(50% - 8px); }
  .cm-polish-compare { grid-template-columns: 1fr; }
  .cm-pack-card { max-height: calc(100vh - 16px); }
  .cm-pack-grid { grid-template-columns: 1fr; }
  .cm-spread-row-head { flex-direction: column; gap: 8px; }
  .cm-spread-link-row { grid-template-columns: 1fr; }
  .cm-spread-actions .cm-btn { flex: 1 1 calc(50% - 8px); }
  .cm-detail-media-list { gap: 12px; }
  .cm-detail-media-item-label { font-size: 13px; }
}
@media (max-width: 420px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-ai-toolbar-actions .cm-btn,
  .cm-polish-panel .cm-actions .cm-btn,
  .cm-spread-actions .cm-btn { width: 100%; }
  .cm-pack-seg { grid-template-columns: 1fr; }
  .cm-pack-seg-btn { width: 100%; }
}
