/* Content posting plan — polished week calendar */

.cp-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cp-root--calendar {
  padding: 0.15rem 0 1.5rem;
}

.cp-root--calendar::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(233, 30, 140, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(168, 85, 247, 0.06), transparent 50%);
}

.cp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(233, 30, 140, 0.25);
  background:
    linear-gradient(135deg, rgba(233, 30, 140, 0.14) 0%, rgba(168, 85, 247, 0.08) 45%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.cp-hero-main h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cp-hero-main h2 span {
  color: #f9a8d4;
}

.cp-hero-profile-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.cp-hero-profile-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-hero-profile-link:focus-visible {
  outline: 2px solid rgba(233, 30, 140, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.cp-hero-title-block h2 {
  margin: 0;
}

.cp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.cp-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cp-schedule-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cp-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  outline: none;
}

.cp-info-tip-icon {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(156, 163, 175, 0.95);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.cp-info-tip:hover .cp-info-tip-icon,
.cp-info-tip:focus .cp-info-tip-icon {
  border-color: rgba(233, 30, 140, 0.45);
  color: #f9a8d4;
  background: rgba(233, 30, 140, 0.1);
}

.cp-info-tip-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 18rem;
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  background: rgba(17, 17, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(229, 231, 235, 0.95);
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 40;
}

.cp-info-tip:hover .cp-info-tip-pop,
.cp-info-tip:focus .cp-info-tip-pop,
.cp-info-tip:focus-within .cp-info-tip-pop {
  opacity: 1;
  visibility: visible;
}

.cp-hero-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #9ca3af);
  max-width: 36rem;
  line-height: 1.45;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.cp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-stat strong {
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1;
}

.cp-stat span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ca3af);
}

.cp-stat--warn strong { color: #fcd34d; }
.cp-stat--ok strong { color: #86efac; }
.cp-stat--review strong { color: #c4b5fd; }
.cp-stat--muted strong { color: #64748b; }

.cp-week-nav--premium {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.cp-week-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f9a8d4;
}

.cp-week-iso {
  font-size: 0.68rem;
  color: var(--muted, #6b7280);
  font-variant-numeric: tabular-nums;
}

.cp-week-btn--icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.cp-week-btn--icon:hover {
  border-color: rgba(233, 30, 140, 0.45);
  background: rgba(233, 30, 140, 0.12);
  transform: translateY(-1px);
}

.cp-grid-wrap {
  padding: 0.15rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted, #9ca3af);
}

.cp-pipe-step {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-pipe-arrow {
  opacity: 0.35;
}

.cp-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--panel, #141414);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.cp-week-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  flex: 1 1 12rem;
}

.cp-week-label strong {
  font-size: 1rem;
}

.cp-week-btn {
  min-width: 2.5rem;
}

.cp-tz-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  gap: 2px;
}

.cp-tz-opt {
  min-width: 3.25rem;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #9ca3af);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.cp-tz-opt:hover:not(.cp-tz-opt--active) {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
}

.cp-tz-opt--active {
  background: var(--accent, #a855f7);
  color: #fff;
  box-shadow: 0 1px 8px rgba(168, 85, 247, 0.35);
}

.cp-tz-opt--active:hover {
  background: #9333ea;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: start;
}

.cp-day {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  min-height: 11rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.22) 100%);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 0.65rem 0.55rem 0.55rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cp-day:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.cp-day--today {
  border-color: rgba(168, 85, 247, 0.55);
  background:
    linear-gradient(165deg, rgba(168, 85, 247, 0.14) 0%, rgba(233, 30, 140, 0.06) 40%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.25),
    0 8px 28px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cp-day--weekend {
  opacity: 0.88;
}

.cp-day--weekend .cp-day-dow {
  color: #94a3b8;
}

.cp-day--has-slots {
  min-height: 12.5rem;
}

.cp-day--multi {
  min-height: 14rem;
}

.cp-day--many {
  min-height: 16rem;
}

.cp-day--multi .cp-day-slots {
  max-height: min(26rem, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 0.1rem;
}

.cp-day--many .cp-day-slots {
  max-height: min(32rem, 58vh);
}

.cp-day-slots::-webkit-scrollbar {
  width: 5px;
}

.cp-day-slots::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cp-day-slots::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 30, 140, 0.35);
}

.cp-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cp-day-date {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.cp-day-dow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #9ca3af);
}

.cp-day-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cp-day--today .cp-day-num {
  color: #e9d5ff;
}

.cp-day-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.cp-day-count {
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(233, 30, 140, 0.18);
  color: #fbcfe8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-day-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-day-badge {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(233, 30, 140, 0.25));
  color: #faf5ff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.cp-day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.cp-day-empty {
  margin: 0.35rem 0;
  padding: 1.1rem 0.5rem;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  color: var(--muted, #6b7280);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cp-day-empty-icon {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.35;
  font-weight: 300;
}

button.cp-day-empty {
  width: 100%;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

button.cp-day-empty:hover,
button.cp-day-empty:focus-visible {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text, #e5e7eb);
}

.cp-day-empty--action .cp-day-empty-icon {
  opacity: 0.85;
  font-weight: 600;
  color: #60a5fa;
}

.cp-add-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted, #9ca3af);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.cp-slot-reel-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted, #9ca3af);
  letter-spacing: 0.02em;
}

.cp-add-slot-icon {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.cp-add-slot:hover {
  border-color: rgba(233, 30, 140, 0.5);
  background: rgba(233, 30, 140, 0.08);
  color: #fbcfe8;
  transform: translateY(-1px);
}

.cp-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cp-slot--card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cp-slot--compact {
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

.cp-slot--compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.cp-slot--compact .cp-slot-stripe {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 3px;
  height: auto;
}

.cp-slot-compact-main {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cp-slot-compact-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.cp-slot--compact .cp-slot-time {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}

.cp-slot--compact .cp-slot-title {
  -webkit-line-clamp: 1;
  font-size: 0.68rem;
}

.cp-slot--compact .cp-status {
  font-size: 0.55rem;
  padding: 0.1rem 0.32rem;
}

.cp-slot-compact-thumb {
  flex-shrink: 0;
  width: 2.75rem;
  align-self: stretch;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-slot-compact-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.45;
  color: #e5e7eb;
}

.cp-slot-compact-thumb .cp-slot-thumb {
  width: 100%;
  height: 100%;
  min-height: 3.25rem;
  object-fit: cover;
}

.cp-slot-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

/* Post category colors — border + stripe frame each slot */
.cp-slot--type-reel {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}
.cp-slot--type-reel .cp-slot-stripe {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.cp-slot--type-reel:hover {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22), 0 8px 20px rgba(37, 99, 235, 0.15);
}

.cp-slot--type-trial_reel {
  border-color: rgba(167, 139, 250, 0.58);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.14);
}
.cp-slot--type-trial_reel .cp-slot-stripe {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.cp-slot--type-trial_reel:hover {
  border-color: rgba(167, 139, 250, 0.9);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.24), 0 8px 20px rgba(124, 58, 237, 0.18);
}

.cp-slot--type-carousel {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.cp-slot--type-carousel .cp-slot-stripe {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.cp-slot--type-carousel:hover {
  border-color: rgba(251, 191, 36, 0.88);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22), 0 8px 20px rgba(217, 119, 6, 0.14);
}

.cp-slot--type-story {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.12);
}
.cp-slot--type-story .cp-slot-stripe {
  background: linear-gradient(90deg, #db2777, #f472b6);
}
.cp-slot--type-story:hover {
  border-color: rgba(244, 114, 182, 0.88);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.22), 0 8px 20px rgba(219, 39, 119, 0.14);
}

.cp-slot--compact.cp-slot--type-reel .cp-slot-stripe {
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}
.cp-slot--compact.cp-slot--type-trial_reel .cp-slot-stripe {
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
}
.cp-slot--compact.cp-slot--type-carousel .cp-slot-stripe {
  background: linear-gradient(180deg, #d97706, #fbbf24);
}
.cp-slot--compact.cp-slot--type-story .cp-slot-stripe {
  background: linear-gradient(180deg, #db2777, #f472b6);
}

.cp-slot-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 10;
  max-height: 7.5rem;
  overflow: hidden;
  background: #0a0a0c;
}

.cp-slot-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-slot-media--reel {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(0, 0, 0, 0.5));
}

.cp-slot-media--trial_reel {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.2), rgba(0, 0, 0, 0.5));
}

.cp-slot-media--carousel {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(0, 0, 0, 0.5));
}

.cp-slot-media--story {
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.18), rgba(0, 0, 0, 0.5));
}

.cp-slot-compact-thumb--reel {
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

.cp-slot-compact-thumb--trial_reel {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.cp-slot-compact-thumb--carousel {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.cp-slot-compact-thumb--story {
  background: rgba(244, 114, 182, 0.1);
  color: #f9a8d4;
}

.cp-slot-type-icon {
  font-size: 1.5rem;
  opacity: 0.55;
  color: #e5e7eb;
}

.cp-slot-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.cp-slot-time-badge {
  position: absolute;
  bottom: 0.35rem;
  left: 0.4rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cp-slot-type-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #f3f4f6;
  backdrop-filter: blur(4px);
}

.cp-slot-body {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.cp-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.cp-slot-time {
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.cp-type-pill {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #9ca3af);
}

.cp-type-pill--reel {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.cp-type-pill--trial_reel {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.cp-type-pill--carousel {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.cp-type-pill--story {
  background: rgba(244, 114, 182, 0.14);
  color: #f9a8d4;
}

.cp-type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.cp-type-legend-item {
  font-size: 0.62rem;
}

.cp-slot-title {
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #e5e7eb;
}

.cp-slot-title--muted {
  color: var(--muted, #6b7280);
  font-style: italic;
  font-weight: 450;
}

.cp-slot-foot {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.cp-slot-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.cp-slot-thumb--video {
  object-fit: cover;
  background: #000;
}

.cp-slot-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.cp-status {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.cp-status--planned { color: #cbd5e1; }
.cp-status--in_editing { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.cp-status--pending_review { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.cp-status--needs_revision { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.cp-status--ready_to_post { background: rgba(74, 222, 128, 0.18); color: #86efac; }
.cp-status--posted { background: rgba(100, 116, 139, 0.25); color: #94a3b8; }

.cp-lead {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.cp-lead--warn { background: rgba(251, 191, 36, 0.25); color: #fcd34d; }
.cp-lead--bad { background: rgba(248, 113, 113, 0.25); color: #fca5a5; }

/* Modal */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 0.75rem max(1rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cp-modal-overlay > .cp-modal {
  margin: auto;
  flex-shrink: 0;
}

.cp-modal {
  width: min(760px, 100%);
  background: var(--panel, #141414);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.cp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.cp-modal-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.cp-modal-head h3 .cp-label-row {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

.cp-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #9ca3af);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.cp-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cp-modal-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  background: rgba(0, 0, 0, 0.2);
}

.cp-flow-step {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--muted, #6b7280);
  border: 1px solid transparent;
}

.cp-flow-step--done {
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}

.cp-flow-step--active {
  color: #e9d5ff;
  background: var(--accent-soft, rgba(168, 85, 247, 0.15));
  border-color: rgba(168, 85, 247, 0.35);
}

.cp-modal-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

.cp-section {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.cp-section--brief {
  border-left: 3px solid #fbbf24;
}

.cp-section--editor {
  border-left: 3px solid #60a5fa;
}

.cp-section--review {
  border-left: 3px solid #c4b5fd;
}

.cp-section--va {
  border-left: 3px solid #4ade80;
}

.cp-section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cp-section-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
  margin-top: 0.15rem;
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.cp-field > span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #9ca3af);
}

.cp-field textarea,
.cp-field input,
.cp-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(0, 0, 0, 0.35);
  color: var(--text, #f3f4f6);
}

.cp-field textarea:focus,
.cp-field input:focus,
.cp-field select:focus {
  outline: none;
  border-color: var(--accent, #a855f7);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(168, 85, 247, 0.15));
}

.cp-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Content Ops upload preview (brief inspo) */
.cp-root,
.cp-modal {
  --co-surface-2: #222226;
  --co-surface-3: #2a2a30;
  --co-border: rgba(255, 255, 255, 0.08);
  --co-text: #f4f4f5;
  --co-radius-sm: 8px;
}

.co-upload-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.co-upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  background: var(--co-surface-2);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  min-width: 0;
}

.co-upload-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--co-radius-sm) - 2px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--co-border);
}

.co-upload-preview img,
.co-upload-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.co-upload-preview--video video {
  object-fit: contain;
}

.co-upload-preview--file {
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-upload-file-icon {
  font-size: 1.75rem;
  opacity: 0.55;
}

.co-upload-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.co-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.cp-brief-name,
.cp-brief-link {
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
}

.cp-brief-link {
  color: #93c5fd;
  text-decoration: none;
}

.cp-brief-link:hover {
  text-decoration: underline;
}

.co-upload-box {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--co-border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cp-brief-upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cp-brief-upload-box--drag {
  border-color: var(--accent, #a855f7);
  background: rgba(168, 85, 247, 0.08);
}

.cp-brief-upload-box--busy {
  opacity: 0.92;
}

.cp-upload-hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.cp-brief-upload-btn {
  width: 100%;
}

.cp-brief-upload-btn--busy {
  opacity: 0.75;
  cursor: wait;
}

.co-upload-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--co-border);
}

.co-upload-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.72rem;
}

.co-upload-progress-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}

.co-upload-progress-meta {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.co-upload-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.co-upload-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #9333ea, #c084fc);
  transition: width 0.15s ease;
}

.co-upload-progress-bar[data-indeterminate="1"] {
  width: 35% !important;
  animation: cp-upload-indeterminate 1.1s ease-in-out infinite;
}

@keyframes cp-upload-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.cp-brief-link-row {
  display: flex;
  gap: 0.4rem;
}

.cp-brief-link-row input[type="url"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.co-upload-input {
  display: none;
}

.cp-deliverable {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cp-deliverable video,
.cp-deliverable-img {
  width: 100%;
  max-height: 280px;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
}

.cp-deliverable-img {
  background: rgba(255, 255, 255, 0.04);
}

.cp-brief-deliverable {
  padding: 0.75rem 1rem 0;
}

.cp-brief-section-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cp-brief-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cp-brief-section-head .cp-brief-section-label {
  margin: 0;
}

.cp-slide-count {
  font-size: 0.78rem;
}

.cp-field.cp-caption-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.cp-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cp-caption-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 5.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  resize: vertical;
}

.cp-read-block--caption strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.cp-modal .cp-brief-deliverable .cp-deliverable video,
.cp-modal .cp-brief-deliverable .cp-deliverable-img {
  max-height: min(42vh, 380px);
  aspect-ratio: 9 / 16;
}

.cp-brief-empty-hint {
  margin: 0 0 0.65rem;
}

.cp-brief-video-error {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border-radius: 6px;
}

.cp-review-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.cp-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.cp-danger {
  color: #f87171 !important;
}

.cp-caption-read {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.cp-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.cp-empty-state h3 {
  margin: 0 0 0.35rem;
}

.cp-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.65rem;
  opacity: 0.5;
}

/* Manager home (Fansly-style posting calendar) */
.cp-root--admin-home {
  gap: 1.15rem;
}

.cp-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(233, 30, 140, 0.28);
  background:
    linear-gradient(135deg, rgba(233, 30, 140, 0.14) 0%, rgba(168, 85, 247, 0.06) 42%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.cp-brand-bar::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 8rem;
  height: 8rem;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(233, 30, 140, 0.18), transparent 68%);
  pointer-events: none;
}

.cp-brand-bar-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
}

.cp-brand-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  height: 2.35rem;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(233, 30, 140, 0.22));
}

.cp-brand-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(249, 168, 212, 0.9);
}

.cp-model-section {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.cp-model-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.cp-model-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.cp-model-section-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cp-model-section-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #9ca3af);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.cp-model-section .cp-acc-grid {
  padding: 0.85rem;
}

.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.5rem 1.15rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.cp-empty h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cp-manager-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cp-manager-intro {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(233, 30, 140, 0.08));
}

.cp-manager-intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.cp-hero--home {
  margin-bottom: 0.25rem;
}

.cp-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.cp-acc-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel, #141414);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.cp-acc-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.cp-acc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.cp-acc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.cp-acc-avatar--hero {
  width: 56px;
  height: 56px;
}

.cp-acc-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: #f9a8d4;
  background: rgba(233, 30, 140, 0.14);
}

.cp-acc-names-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cp-acc-names-row--hero {
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.cp-acc-names {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cp-acc-nickname {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text, #f3f4f6);
  line-height: 1.2;
}

.cp-acc-handle {
  font-size: 0.82rem;
  color: var(--muted, #9ca3af);
  font-weight: 500;
}

.cp-acc-handle--empty {
  font-style: italic;
  font-weight: 400;
}

.cp-hero-title-block h2 {
  margin: 0 0 0.35rem;
}

.cp-acc-card:hover {
  border-color: rgba(233, 30, 140, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cp-acc-card strong {
  font-size: 1rem;
}

.cp-acc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
}

.cp-acc-card-arrow {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1rem;
  color: rgba(249, 168, 212, 0.85);
  transition: transform 0.12s ease;
}

.cp-acc-card:hover .cp-acc-card-arrow {
  transform: translateX(3px);
}

.cp-acc-card-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.cp-acc-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ca3af);
}

.cp-acc-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cp-acc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(233, 30, 140, 0.12);
  border: 1px solid rgba(233, 30, 140, 0.28);
  color: #fbcfe8;
}

.cp-acc-chip--meta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text, #e5e7eb);
}

.cp-acc-card-tags {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.cp-acc-status {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
}

.cp-acc-status--warmup {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

.cp-acc-status--active {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
}

.cp-acc-card-meta {
  font-size: 0.75rem;
  color: var(--muted, #9ca3af);
}

.cp-acc-card-cta {
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(249, 168, 212, 0.95);
}

/* Editor queue cards (shared) */
.cp-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.cp-queue-card-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.cp-queue-thumb-wrap {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cp-queue-thumb-wrap--empty {
  opacity: 0.45;
}

.cp-queue-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-queue-card-text {
  min-width: 0;
}

.cp-queue-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.cp-queue-hint {
  margin: 0 0 0.45rem;
}

.cp-empty-state--compact {
  padding: 1.25rem 1rem;
}

.vd-panel--posting {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.06), transparent);
}

.cp-queue-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-1px);
}

.cp-queue-card strong {
  display: block;
  font-size: 0.88rem;
}

.cp-queue-card span {
  font-size: 0.75rem;
  color: var(--muted, #9ca3af);
}

.cp-skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(233,30,140,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: cp-shimmer 1.2s infinite;
  min-height: 18rem;
}

@keyframes cp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1100px) {
  .cp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cp-grid { grid-template-columns: 1fr; }
}

/* Simplified layout */
.cp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cp-top-bar h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.cp-top-actions {
  display: flex;
  gap: 0.35rem;
}

.cp-modal--simple {
  width: min(540px, 100%);
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
}

.cp-modal-head--simple {
  align-items: center;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel, #141414);
}

.cp-modal-head-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cp-modal-when {
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cp-modal-body--simple {
  padding: 0;
  gap: 0;
  flex: 1 1 0%;
  min-height: 0;
  max-height: none;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  display: block;
}

.cp-brief-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cp-brief-meta {
  flex-shrink: 0;
  padding: 1rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-brief-assets {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.35rem;
}

.cp-brief-upload {
  flex-shrink: 0;
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-modal-foot--fixed {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel, #141414);
}

.cp-modal .cp-brief-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  grid-template-columns: unset;
  margin: 0;
}

.cp-modal .cp-brief-list .co-upload-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
}

.cp-modal .cp-brief-list .cp-brief-asset--link .co-upload-preview {
  width: 2.5rem;
  height: 2.5rem;
  max-height: 2.5rem;
}

.cp-modal .cp-brief-list .cp-brief-asset--video,
.cp-modal .cp-brief-list .cp-brief-asset--image {
  flex-direction: column;
  align-items: stretch;
}

.cp-modal .cp-brief-list .cp-brief-asset--video .co-upload-preview,
.cp-modal .cp-brief-list .cp-brief-asset--image .co-upload-preview {
  width: 100%;
  height: auto;
  min-height: 10rem;
  max-height: min(42vh, 380px);
  aspect-ratio: 9 / 16;
}

.cp-modal .cp-brief-list .cp-brief-asset--image .co-upload-preview {
  aspect-ratio: 4 / 5;
  max-height: min(36vh, 320px);
}

.cp-modal .cp-brief-list .cp-brief-asset--video .co-upload-meta,
.cp-modal .cp-brief-list .cp-brief-asset--image .co-upload-meta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cp-modal .cp-brief-list .cp-brief-asset--video .cp-brief-name,
.cp-modal .cp-brief-list .cp-brief-asset--image .cp-brief-name {
  -webkit-line-clamp: 1;
}

.cp-modal .cp-brief-list .co-upload-preview {
  width: 4.75rem;
  height: 6rem;
  max-height: 6rem;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.cp-modal .cp-brief-list .co-upload-preview video {
  object-fit: contain;
  background: #000;
}

.cp-modal .cp-brief-list .cp-brief-video {
  width: 100%;
  height: 100%;
  min-height: 10rem;
}

.cp-modal .cp-brief-list .cp-brief-asset--embed .co-upload-preview--drive {
  aspect-ratio: 9 / 16;
  max-height: min(52vh, 480px);
}

.cp-modal .cp-brief-list .cp-brief-asset--embed .co-upload-preview--drive video {
  object-fit: contain;
}

.cp-modal .cp-brief-list .cp-brief-asset--embed .co-upload-preview,
.cp-modal .cp-brief-list .cp-brief-asset--embed .co-upload-preview--embed {
  width: 100%;
  height: auto;
  min-height: 12rem;
  max-height: min(42vh, 380px);
  aspect-ratio: 16 / 10;
}

.cp-brief-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  border: 0;
  background: #000;
}

.cp-brief-missing-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.4;
}

.cp-modal .cp-brief-list .co-upload-meta {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.cp-modal .cp-brief-list .cp-brief-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-brief-panel.cp-brief-upload-box--drag,
.cp-brief-upload-box.cp-brief-upload-box--drag {
  outline: 2px dashed rgba(233, 30, 140, 0.55);
  outline-offset: 2px;
  background: rgba(233, 30, 140, 0.06);
}

.cp-brief-assets.cp-brief-upload-box--drag {
  background: rgba(233, 30, 140, 0.04);
}

.cp-modal-body--simple textarea,
.cp-modal-body--simple input[type="url"],
.cp-modal-body--simple input[type="date"],
.cp-modal-body--simple input[type="time"],
.cp-modal-body--simple select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.cp-brief-panel .cp-meta-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr;
  gap: 0.4rem;
}

.cp-brief-panel .co-upload-box {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cp-modal-foot {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cp-modal-foot .btn-primary {
  flex: 1 1 auto;
}

.cp-file-btn {
  display: block;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 0.88rem;
}

.cp-read-block {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.9rem;
}

.cp-muted-line {
  margin: 0;
  color: var(--muted, #9ca3af);
  font-size: 0.85rem;
}

.cp-acc-card-meta:empty {
  display: none;
}

.cp-global-upload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  pointer-events: none;
  background: rgba(12, 10, 22, 0.88);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.cp-global-upload[hidden] {
  display: none !important;
}

.cp-global-upload-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cp-global-upload-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.85), rgba(167, 139, 250, 0.95));
  transition: width 0.18s ease;
}

.cp-global-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.32rem 1rem 0.38rem;
  font-size: 0.7rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
}

.cp-global-upload-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-global-upload-pct {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.38);
}

.cp-global-upload--success .cp-global-upload-fill {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.85), rgba(110, 231, 183, 0.95));
}

.cp-global-upload--success .cp-global-upload-label {
  color: rgba(167, 243, 208, 0.92);
}

.cp-global-upload--success .cp-global-upload-pct {
  color: rgba(110, 231, 183, 0.88);
}

.cp-schedule-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.06);
}

.cp-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cp-schedule-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
}

.cp-schedule-label-row .cp-label-row {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
}

.cp-schedule-hint {
  margin: 0 0 0.55rem;
}

.cp-schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cp-schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-form-row--schedule {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 0.75rem;
}

.cp-form-row--trial {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 0.15rem;
}

.cp-trial-time-field--hidden {
  display: none;
}

.cp-schedule-chip--trial {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
}

.cp-schedule-chip--off {
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.85;
}

.cp-schedule-chip--off:hover {
  opacity: 1;
  border-color: rgba(168, 85, 247, 0.55);
}

.cp-schedule-form .cp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cp-schedule-form .cp-field span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.cp-schedule-form input {
  width: 100%;
}

.cp-editor-media-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-editor-media-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cp-editor-media-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cp-asset-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cp-asset-caption-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cp-asset-caption textarea,
.cp-editor-media-card .cp-asset-caption textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
}

.cp-asset-caption-read {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.88);
}

.cp-editor-brief {
  margin-bottom: 0.85rem;
}
