/* Fansly posting calendar — admin config, editor upload, poster handoff */

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

.fp-root--calendar::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(99, 102, 241, 0.06), transparent 50%);
}

.fp-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(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.08) 45%, rgba(255, 255, 255, 0.02) 100%);
}

.fp-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.fp-hashtags {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-hashtags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fp-hashtags-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ca3af);
  margin: 0;
}

.fp-hashtags-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #bae6fd;
  word-break: break-word;
}

.fp-copy-hashtags {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  min-height: 0;
  line-height: 1.2;
}

.fp-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

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

.fp-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;
}

.fp-info-tip:hover .fp-info-tip-icon,
.fp-info-tip:focus .fp-info-tip-icon {
  border-color: rgba(31, 162, 241, 0.45);
  color: #bae6fd;
  background: rgba(31, 162, 241, 0.1);
}

.fp-info-tip-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 15rem;
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: normal;
  font-family: inherit;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 60;
  white-space: normal;
}

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

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

.fp-root--admin-home,
.fp-root--editor-home {
  gap: 1.15rem;
}

.fp-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(31, 162, 241, 0.22);
  background:
    linear-gradient(135deg, rgba(31, 162, 241, 0.14) 0%, rgba(31, 162, 241, 0.04) 42%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.fp-brand-bar::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 8rem;
  height: 8rem;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(31, 162, 241, 0.2), transparent 68%);
  pointer-events: none;
}

.fp-brand-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  height: 2.35rem;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(31, 162, 241, 0.22));
}

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

.fp-brand-bar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.fp-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(186, 230, 253, 0.85);
}

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

.fp-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%);
}

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

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

.fp-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);
}

.fp-model-section .fp-account-grid {
  padding: 0.85rem;
}

.fp-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);
}

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

.fp-acc-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fp-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;
  flex: 1;
}

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

.fp-acc-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(15, 15, 18, 0.92);
  color: rgba(248, 113, 113, 0.95);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.fp-acc-delete:hover {
  opacity: 1;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.55);
}

.fp-acc-delete:disabled {
  opacity: 0.45;
  cursor: wait;
}

.fp-acc-card-wrap:has(.fp-acc-delete) .fp-acc-card {
  padding-top: 2.1rem;
}

.fp-acc-card-wrap:has(.fp-acc-delete) .fp-acc-card-arrow {
  display: none;
}

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

.fp-acc-card-arrow {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1rem;
  color: rgba(14, 165, 233, 0.75);
  transition: transform 0.12s ease;
}

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

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

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

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

.fp-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(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #bae6fd;
}

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

.fp-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;
}

.fp-acc-card-cta {
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(14, 165, 233, 0.95);
}

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

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

.fp-acc-names-row--hero {
  gap: 0.85rem;
}

.fp-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);
}

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

.fp-acc-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: rgba(14, 165, 233, 0.95);
  background: rgba(14, 165, 233, 0.12);
}

.fp-acc-names {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fp-acc-names--hero {
  gap: 0.35rem;
}

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

.fp-acc-names--hero .fp-acc-nickname {
  font-size: 1.35rem;
  margin: 0;
}

.fp-acc-names--hero h3.fp-acc-nickname {
  font-size: 1.1rem;
}

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

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

.fp-queue-acc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.fp-queue-model {
  align-self: center;
}

.fp-slot--empty { opacity: 0.92; }
.fp-slot--in_editing { border-color: rgba(251, 191, 36, 0.35); }
.fp-slot--ready_to_post { border-color: rgba(52, 211, 153, 0.4); }
.fp-slot--posted { opacity: 0.72; }

/* Fansly calendar — week grid + slot cards */
.fp-root--calendar .cp-day--today {
  border-color: rgba(31, 162, 241, 0.5);
  background:
    linear-gradient(165deg, rgba(31, 162, 241, 0.14) 0%, rgba(14, 165, 233, 0.06) 42%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow:
    0 0 0 1px rgba(31, 162, 241, 0.22),
    0 8px 28px rgba(31, 162, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fp-root--calendar .cp-day--today .cp-day-num {
  color: #bae6fd;
}

.fp-root--calendar .cp-day-badge {
  background: linear-gradient(135deg, rgba(31, 162, 241, 0.4), rgba(14, 165, 233, 0.28));
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(31, 162, 241, 0.22);
}

.fp-root--calendar .cp-day-count {
  background: rgba(31, 162, 241, 0.16);
  color: #bae6fd;
}

.fp-root--calendar .cp-day-slots::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 162, 241, 0.35);
}

.fp-root--calendar .cp-week-nav--premium {
  margin-bottom: 0.15rem;
}

.fp-slot {
  flex-direction: row;
  align-items: stretch;
  min-height: 3.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.fp-slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  border-color: rgba(31, 162, 241, 0.35);
}

.fp-slot-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: rgba(148, 163, 184, 0.45);
  z-index: 1;
}

.fp-slot--in_editing .fp-slot-stripe {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.fp-slot--ready_to_post .fp-slot-stripe {
  background: linear-gradient(180deg, #34d399, #10b981);
}

.fp-slot--posted .fp-slot-stripe {
  background: linear-gradient(180deg, #64748b, #475569);
}

.fp-slot--empty .fp-slot-stripe {
  background: linear-gradient(180deg, rgba(31, 162, 241, 0.55), rgba(14, 165, 233, 0.35));
}

.fp-slot-main {
  flex: 1;
  min-width: 0;
  padding: 0.42rem 0.5rem 0.42rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
}

.fp-slot-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
}

.fp-slot-time {
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.fp-slot-num {
  font-size: 0.62rem;
  font-weight: 650;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.01em;
}

.fp-slot-hint {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.2;
}

.fp-root--calendar .fp-slot .cp-status {
  font-size: 0.55rem;
  padding: 0.12rem 0.38rem;
  margin-left: auto;
}

.fp-slot-upload-flag {
  font-size: 0.62rem;
  font-weight: 650;
  padding: 0.14rem 0.4rem;
  border-radius: 5px;
  margin: 0.1rem 0.5rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.fp-slot-upload-flag--queued,
.fp-slot-upload-flag--active {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.fp-slot-upload-flag--failed {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.fp-slot-upload-flag-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.fp-slot-upload-flag-bar {
  display: block;
  height: 100%;
  background: #60a5fa;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.fp-upload-fail-banner {
  margin: 0 0 0.6rem;
}

.fp-root--calendar .cp-status--empty {
  background: rgba(31, 162, 241, 0.12);
  color: #7dd3fc;
}

.fp-slot-thumb-wrap {
  position: relative;
  flex: 0 0 42%;
  min-width: 3.25rem;
  max-width: 5.25rem;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(186, 230, 253, 0.55);
}

.fp-slot-thumb-wrap--empty {
  align-items: center;
  flex: 0 0 2.65rem;
  max-width: 2.65rem;
}

.fp-slot-thumb {
  width: 100%;
  height: 100%;
  min-height: 3.35rem;
  object-fit: cover;
  display: block;
  background: #000;
}

.fp-slot-thumb-wrap--video {
  background: #000;
  color: #bae6fd;
}

.fp-slot-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.92;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  transition: opacity 0.15s ease;
}

.fp-slot-thumb-wrap:has(.fp-slot-thumb--loaded) .fp-slot-play {
  opacity: 0.42;
}

.fp-slot-thumb-wrap:has(.fp-slot-thumb--failed) {
  background: #000;
}

.fp-editor-queue .fp-slot {
  width: 100%;
  margin-top: 0.35rem;
}

.fp-video-wrap {
  margin-top: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  max-height: 220px;
}

.fp-video-wrap video {
  width: 100%;
  max-height: 220px;
  display: block;
}

.fp-video-error {
  margin: 0.5rem 0 0;
  color: #fca5a5;
}

.fp-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;
}

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

.fp-modal {
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel, #141414);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.fp-modal-head-main h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.fp-modal-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted, #9ca3af);
}

.fp-modal-close {
  flex-shrink: 0;
  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;
}

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

.fp-modal-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
}

.fp-modal--form .fp-config-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

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

.fp-form-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ca3af);
}

.fp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.fp-form-row + .fp-field,
.fp-form-row + .fp-form-row {
  margin-top: 0.65rem;
}

.fp-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

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

.fp-field-opt {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(156, 163, 175, 0.85);
}

.fp-field-hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted, #6b7280);
}

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

.fp-config-form .fp-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

.fp-config-form .fp-field textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.45;
}

.fp-config-form .fp-field input[type="number"] {
  max-width: 6rem;
}

.fp-config-form .fp-field textarea:focus,
.fp-config-form .fp-field input:focus,
.fp-config-form .fp-field select:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.fp-field--narrow {
  max-width: 8.5rem;
}

.fp-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.fp-modal-foot .btn-primary {
  min-width: 8.5rem;
}

.fp-modal-foot--split {
  justify-content: space-between;
}

.fp-modal-foot-start,
.fp-modal-foot-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.fp-modal-foot-end {
  margin-left: auto;
}

.fp-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

@media (max-width: 540px) {
  .fp-form-row {
    grid-template-columns: 1fr;
  }

  .fp-field--narrow {
    max-width: none;
  }

  .fp-config-form .fp-field input[type="number"] {
    max-width: none;
  }

  .fp-modal-foot--split {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-modal-foot-end {
    margin-left: 0;
    justify-content: flex-end;
  }
}

.fp-editor-queue .fp-queue-acc {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Legacy slot modal fields (editor/poster) */
.fp-config-form label:not(.fp-field) {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.fp-config-form label:not(.fp-field) input,
.fp-config-form label:not(.fp-field) textarea {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.fp-times-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fp-caption-box {
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-schedule-banner {
  margin-top: 0.35rem;
}

.fp-schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.fp-schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.fp-schedule-hint {
  margin: 0.45rem 0 0;
  max-width: 36rem;
}

.fp-model-archived {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(251, 191, 36, 0.12);
  vertical-align: middle;
}

.fp-archived-models {
  margin-top: 1.75rem;
}

.fp-archived-models-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.75rem;
  opacity: 0.92;
}

.fp-archived-models-body .fp-model-section {
  margin-top: 0;
}

.fp-btn-danger {
  color: rgba(248, 113, 113, 0.95);
}

.fp-modal--slot .fp-video-wrap {
  margin-top: 0;
  overflow: visible;
  max-height: none;
  background: transparent;
}

.fp-modal--slot .fp-video-wrap video {
  border-radius: 8px;
  background: #000;
}

.fp-modal--slot .fp-slot-upload {
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
  padding: 1.1rem 1rem;
}

.fp-modal--slot .fp-caption-field {
  margin-top: 0;
}

.fp-modal--slot .fp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

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

.fp-modal--slot .fp-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 6.5rem;
  resize: vertical;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text, #f3f4f6);
}

.fp-modal--slot .fp-field textarea:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.fp-slot-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.fp-slot-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.fp-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.fp-slot-actions:empty {
  display: none;
}

.fp-file-btn {
  cursor: pointer;
  margin: 0;
}

.fp-file-btn input[type="file"] {
  display: none;
}

.fp-caption-field {
  display: block;
  margin-top: 0.75rem;
}

.fp-upload-hint {
  margin: 0;
}

.fp-upload-progress {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.08);
}

.fp-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.fp-upload-progress-label {
  margin-right: auto;
}

.fp-upload-cancel {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fp-upload-cancel:hover {
  background: rgba(248, 113, 113, 0.25);
  border-color: rgba(248, 113, 113, 0.7);
  color: #fff;
}

.fp-upload-progress-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e0f2fe;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-upload-progress-meta {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.fp-upload-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fp-upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  transition: width 0.15s ease;
}

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

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

.fp-file-btn--busy {
  opacity: 0.55;
  pointer-events: none;
}

/* Light mode — replace dark-theme-only tints and light-on-light text */
[data-theme="light"] .fp-brand-bar {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.14) 0%,
    rgba(99, 102, 241, 0.07) 42%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

[data-theme="light"] .fp-brand-tagline {
  color: #0369a1;
}

[data-theme="light"] .fp-model-section {
  border-color: var(--border);
  background: var(--surface);
}

[data-theme="light"] .fp-model-section-head {
  border-bottom-color: var(--border);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, transparent 100%);
}

[data-theme="light"] .fp-model-section-count {
  background: var(--surface-2);
  color: var(--muted);
}

[data-theme="light"] .fp-empty {
  border-color: var(--border);
  background: var(--surface-2);
}

[data-theme="light"] .fp-acc-card {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

[data-theme="light"] .fp-acc-card:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.14);
}

[data-theme="light"] .fp-acc-delete {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}

[data-theme="light"] .fp-acc-delete:hover {
  background: rgba(254, 226, 226, 0.95);
}

[data-theme="light"] .fp-acc-chip {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.28);
  color: #0369a1;
}

[data-theme="light"] .fp-acc-chip--meta {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] .fp-acc-card-tags,
[data-theme="light"] .fp-hashtags-text {
  color: var(--muted);
}

[data-theme="light"] .fp-hashtags {
  background: var(--surface-2);
  border-color: var(--border);
}

[data-theme="light"] .fp-acc-card-cta {
  color: #0284c7;
}

[data-theme="light"] .fp-acc-card-arrow {
  color: #0284c7;
}

[data-theme="light"] .fp-hero {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.12) 0%,
    rgba(99, 102, 241, 0.06) 45%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

[data-theme="light"] .fp-info-tip-icon {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

[data-theme="light"] .fp-info-tip:hover .fp-info-tip-icon,
[data-theme="light"] .fp-info-tip:focus .fp-info-tip-icon {
  border-color: rgba(14, 165, 233, 0.45);
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .fp-slot {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .fp-slot-time {
  color: var(--text);
}

[data-theme="light"] .fp-slot-num,
[data-theme="light"] .fp-slot-hint {
  color: var(--muted);
}

[data-theme="light"] .fp-slot-thumb-wrap {
  border-left-color: var(--border);
  background: var(--surface-2);
  color: #0284c7;
}

[data-theme="light"] .fp-root--calendar .cp-day--today {
  background: linear-gradient(
    165deg,
    rgba(14, 165, 233, 0.12) 0%,
    rgba(14, 165, 233, 0.05) 42%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

[data-theme="light"] .fp-root--calendar .cp-day--today .cp-day-num,
[data-theme="light"] .fp-root--calendar .cp-day-count {
  color: #0369a1;
}

[data-theme="light"] .fp-root--calendar .cp-status--empty {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

[data-theme="light"] .fp-schedule-chip {
  color: #0369a1;
}

[data-theme="light"] .fp-modal,
[data-theme="light"] .fp-form-section,
[data-theme="light"] .fp-modal--slot .fp-field textarea {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] .fp-caption-box,
[data-theme="light"] .fp-slot-upload {
  border-color: var(--border);
  background: var(--surface);
}

[data-theme="light"] .fp-modal-head,
[data-theme="light"] .fp-modal-foot {
  border-color: var(--border);
  background: var(--surface-2);
}

[data-theme="light"] .fp-config-form .fp-field textarea,
[data-theme="light"] .fp-config-form .fp-field input,
[data-theme="light"] .fp-config-form .fp-field select {
  border-color: var(--border);
  background: var(--input-bg);
  color: var(--text);
}

[data-theme="light"] .fp-config-form label:not(.fp-field) input,
[data-theme="light"] .fp-config-form label:not(.fp-field) textarea {
  border-color: var(--border);
  background: var(--input-bg);
  color: var(--text);
}

[data-theme="light"] .fp-modal-close {
  background: var(--surface-2);
  color: var(--muted);
}

[data-theme="light"] .fp-modal-close:hover {
  background: var(--hover-bg);
  color: var(--text);
}
