/* =====================================================
   BIRDPOST DEDICATED SUBMIT / POST PAGE (submit.css)
   Matches Drafts Page 3-column architecture (Image 5)
   Embeds full Composer workspace (Image 4)
   ===================================================== */

.submit-page-main {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ── Hero Header matching drafts-hero-header (Image 5) ── */
.submit-hero-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--bg-card, #121417);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

[data-theme="light"] .submit-hero-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.submit-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.submit-header-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #facc15 !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000 !important;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-header-icon-box:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
}

.submit-header-icon-box svg {
  stroke: #000000 !important;
  fill: none !important;
}

.submit-header-text {
  display: flex;
  flex-direction: column;
}

.submit-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.submit-page-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

[data-theme="light"] .submit-page-title {
  color: #0f172a;
}

.submit-type-badge {
  display: none !important;
}

.submit-page-subtitle {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

[data-theme="light"] .submit-page-subtitle {
  color: #64748b;
}

.submit-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-drafts-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #facc15 !important;
  color: #000000 !important;
  border: 1.5px solid #eab308 !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800 !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.25);
}

.btn-drafts-link svg {
  stroke: #000000 !important;
  fill: none !important;
  color: #000000 !important;
}

.btn-drafts-link span,
.btn-drafts-link span * {
  color: #000000 !important;
  font-weight: 800 !important;
}

.btn-drafts-link:hover {
  background: #eab308 !important;
  border-color: #ca8a04 !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

[data-theme="light"] .btn-drafts-link {
  background: #facc15 !important;
  color: #000000 !important;
  border-color: #eab308 !important;
}

[data-theme="light"] .btn-drafts-link svg {
  stroke: #000000 !important;
}

[data-theme="light"] .btn-drafts-link span,
[data-theme="light"] .btn-drafts-link span * {
  color: #000000 !important;
}

/* ── Writer Accreditation Notice Banner (Full Width Strip: Left to Right - Image 1 Spec) ── */
#writerAccessNoticeBanner,
.submit-notice-banner {
  width: 100% !important;
  margin: 0 0 16px 0 !important;
  padding: 10px 32px !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.submit-notice-content {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.45;
}

.submit-notice-title {
  font-weight: 750;
  color: #f59e0b;
  font-size: 13px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.submit-notice-text {
  color: #d1d5db;
  font-size: 12px;
}

.submit-notice-username {
  color: #ffffff;
  font-weight: 700;
}

.submit-notice-role {
  color: #fef08a;
  font-weight: 700;
}

.submit-notice-btn,
#writerAccessNoticeBanner a.btn {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.submit-notice-btn:hover,
#writerAccessNoticeBanner a.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Light Mode Support for Writer Accreditation Notice Banner (Full-Width Strip Image 1) */
[data-theme="light"] #writerAccessNoticeBanner,
[data-theme="light"] .submit-notice-banner,
body.bp-theme-light #writerAccessNoticeBanner,
body.bp-theme-light .submit-notice-banner {
  background: #fffbeb !important;
  border-bottom: 1px solid #fcd34d !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="light"] .submit-notice-title,
[data-theme="light"] #writerAccessNoticeBanner div[style*="font-weight: 700"],
body.bp-theme-light .submit-notice-title {
  color: #b45309 !important;
  font-size: 13px !important;
}

[data-theme="light"] .submit-notice-text,
[data-theme="light"] #writerAccessNoticeBanner div[style*="color"],
[data-theme="light"] #writerAccessNoticeBanner p,
[data-theme="light"] #writerAccessNoticeBanner span,
body.bp-theme-light .submit-notice-text,
body.bp-theme-light #writerAccessNoticeBanner div[style*="color"],
body.bp-theme-light #writerAccessNoticeBanner p,
body.bp-theme-light #writerAccessNoticeBanner span {
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

[data-theme="light"] .submit-notice-username,
[data-theme="light"] #noticeBannerUsername,
body.bp-theme-light .submit-notice-username,
body.bp-theme-light #noticeBannerUsername {
  color: #111827 !important;
}

[data-theme="light"] .submit-notice-role,
[data-theme="light"] #writerAccessNoticeBanner strong,
body.bp-theme-light .submit-notice-role,
body.bp-theme-light #writerAccessNoticeBanner strong {
  color: #92400e !important;
}

[data-theme="light"] .submit-notice-btn,
[data-theme="light"] #writerAccessNoticeBanner a.btn,
body.bp-theme-light .submit-notice-btn,
body.bp-theme-light #writerAccessNoticeBanner a.btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .submit-notice-btn:hover,
[data-theme="light"] #writerAccessNoticeBanner a.btn:hover,
body.bp-theme-light .submit-notice-btn:hover,
body.bp-theme-light #writerAccessNoticeBanner a.btn:hover {
  background: #f3f4f6 !important;
  color: #000000 !important;
  border-color: #9ca3af !important;
}

/* ── Composer Workspace Wrapper ── */
.submit-composer-container {
  position: relative;
  padding: 16px 32px 48px;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════
   SINGLE CONSOLIDATED WARNING FOR READERS (KEPT ALONE IN CENTER)
   Card: Totally Blue Background, White Text (Image 3 Inspiration)
   Primary Button: White Button, Black Text (Image 4)
   Secondary Button: Black Tab, White Text (Image 5)
   ══════════════════════════════════════════════════════════════════ */
.writer-single-warning {
  width: 100%;
  max-width: 480px;
  margin: 16px auto 36px auto;
  box-sizing: border-box;
  animation: warningFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes warningFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BLUE WARNING CARD ── */
.warning-left-card {
  background: #2563eb !important;
  border: 1px solid #1d4ed8 !important;
  border-radius: 24px;
  padding: 32px 26px 28px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.warning-illustration-wrap {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.warning-vector-illustration {
  display: block;
  max-width: 100%;
  height: auto;
}

.warning-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: #ffffff;
  color: #dc2626; /* Bold red/coral like Image 3 */
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  line-height: 1;
}

.warning-card-title {
  font-size: 21px;
  font-weight: 850;
  color: #ffffff !important;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.warning-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #ffffff !important;
  margin: 0 0 24px 0;
}

.warning-user-pill {
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: underline;
}

.warning-role-pill {
  color: #ffffff !important;
  font-weight: 850;
}

.warning-email-inline {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 800 !important;
}

.warning-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* 4th Image as White Button, Black Text */
.btn-warning-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 850 !important;
  font-size: 13px !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.18s ease !important;
  flex: 1 1 auto;
  min-width: 180px;
}

.btn-warning-email:hover {
  background: #f8fafc !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35) !important;
}

.btn-warning-email svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* 5th Image as Black Tab, White Text */
.btn-warning-feed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000 !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 13px !important;
  padding: 12px 22px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.18s ease !important;
}

.btn-warning-feed:hover {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-1px);
}

/* ── Embedded Composer Card (Image 4 embedded on dedicated page) ── */
.submit-composer-card {
  background: #000000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

[data-theme="light"] .submit-composer-card,
body.bp-theme-light .submit-composer-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ── Composer Header Tabs (Story, Ranker, Polls, Birdchat) ── */
.submit-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #2f3336;
}

.submit-tabs-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.submit-tabs-group::-webkit-scrollbar {
  display: none;
}

.submit-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: #71767b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}

.submit-tab-item:hover:not(.locked) {
  color: #eff3f4;
  background: rgba(239, 243, 244, 0.08);
}

.submit-tab-item.active {
  color: #ffffff;
  border-color: #ffffff;
  background: transparent;
}

.submit-tab-item.locked {
  cursor: not-allowed;
  opacity: 0.65;
}

.submit-reset-btn {
  background: transparent;
  border: none;
  color: #71767b;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.submit-reset-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Subbar: Category, Subcategory, Tags ── */
.submit-subbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #2f3336;
  position: relative;
}

.submit-pill-wrap {
  position: relative;
}

.submit-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #000000 !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.submit-pill-btn svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.submit-pill-btn:hover {
  background: #eef1f4 !important;
  border-color: #eef1f4 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.submit-pill-btn.has-value {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.submit-pill-btn.has-value svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

/* Subcategory Pill (Matching Image 3 solid white style) */
.submit-pill-btn.subcat-btn {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

.submit-pill-btn.subcat-btn svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.submit-pill-btn.subcat-btn:hover {
  background: #eef1f4 !important;
  border-color: #eef1f4 !important;
  color: #000000 !important;
}

/* Tags Pill (Matching Image 3 solid white style) */
.submit-tags-container {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.submit-tags-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #000000 !important;
  font-size: 13px;
  font-weight: 700 !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.submit-tags-pill:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.25);
}

#submitTagChips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.submit-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  background: #0f172a !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.submit-tag-chip .remove-tag {
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
  margin-left: 2px;
  font-size: 13px;
  line-height: 1;
}

.submit-tag-chip .remove-tag:hover {
  opacity: 1;
  color: #ef4444 !important;
}

.submit-tag-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #000000 !important;
  font-size: 13px;
  font-weight: 700 !important;
  font-family: inherit;
  width: 145px;
}

.submit-tag-input::placeholder {
  color: #1e293b !important;
  opacity: 0.85;
  font-weight: 700 !important;
}

/* Dropdown Menu */
.submit-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #121417;
  border: 1px solid #333639;
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  display: none;
}

.submit-dropdown-menu.visible {
  display: block;
}

.submit-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: #eff3f4;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}

.submit-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.submit-dropdown-item.active {
  color: #000000;
  font-weight: 800;
  background: var(--accent, #facc15);
}

.submit-dropdown-item.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Composer Form Body ── */
.submit-composer-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submit-author-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.submit-title-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.submit-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.submit-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.submit-title-input-wrap {
  width: 100%;
  position: relative;
}

.submit-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.28;
  letter-spacing: -0.015em;
  padding: 2px 0 4px;
  box-sizing: border-box;
  resize: none;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  display: block;
}

.submit-title-input::placeholder {
  color: #71767b;
  font-weight: 700;
}

[data-theme="light"] .submit-title-input {
  color: #0f1419;
}

.submit-title-required-star,
.submit-required-star {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.submit-field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.submit-field-error.visible {
  display: block;
}

.submit-pill-btn.has-error,
.submit-tags-pill.has-error,
.submit-title-input.has-error,
.submit-subtitle-input.has-error,
.submit-image-btn.has-error,
.submit-image-paste-box.has-error,
.submit-story-editor.has-error {
  border-color: #ef4444 !important;
  outline: 1px solid rgba(239, 68, 68, 0.6) !important;
}

/* Subtitle */
.submit-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submit-subtitle-input-wrap {
  width: 100%;
  position: relative;
}

.submit-subtitle-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #9ca3af;
  font-size: 16.5px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  padding: 2px 0 6px;
  box-sizing: border-box;
  resize: none;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  display: block;
}

.submit-subtitle-input::placeholder {
  color: #71767b;
  font-weight: 400;
}

[data-theme="light"] .submit-subtitle-input {
  color: #536471;
}

/* Image Upload & Direct Paste System */
.submit-image-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submit-image-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-image-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.submit-image-btn:hover {
  background: rgba(0, 174, 236, 0.15);
  border-color: rgba(0, 174, 236, 0.45);
  color: #38bdf8;
}

.submit-image-paste-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border: 1px solid #333639;
  border-radius: 9999px;
  padding: 6px 14px;
  flex: 1;
  min-width: 240px;
  transition: all 0.15s ease;
}

.submit-image-paste-box:focus-within {
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 0 1px var(--accent, #facc15);
}

.submit-image-paste-box.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5) !important;
}

.submit-image-paste-box svg {
  color: #71767b;
  flex-shrink: 0;
}

.submit-image-paste-input {
  background: transparent;
  border: none;
  outline: none;
  color: #eff3f4;
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
}

.submit-image-paste-input::placeholder {
  color: #71767b;
}

[data-theme="light"] .submit-image-paste-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .submit-image-paste-input {
  color: #0f172a;
}

.submit-image-preview-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  max-height: 380px;
  border: 1px solid #2f3336;
  display: none;
  margin-top: 4px;
}

.submit-image-preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(4px);
  z-index: 4;
}

.submit-image-preview-box img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.submit-image-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 6;
}

.submit-image-remove-btn:hover {
  background: #ef4444;
}

/* Floating Image Source / Credit Box */
.submit-image-source-box {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  z-index: 5;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.submit-image-source-box:focus-within {
  border-color: #1d9bf0;
  background: rgba(10, 15, 20, 0.95);
}

.submit-image-source-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.submit-image-source-header svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.submit-image-source-header .submit-req-star {
  color: #ef4444;
  margin-left: 2px;
}

.submit-image-source-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13.5px;
  padding: 4px 0 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.submit-image-source-input:focus {
  border-bottom-color: #38bdf8;
}

.submit-image-source-input.has-error {
  border-bottom-color: #ef4444 !important;
}

.submit-image-source-input::placeholder {
  color: #64748b;
  font-size: 12.5px;
}

[data-theme="light"] .submit-image-source-box {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .submit-image-source-header {
  color: #475569;
}

[data-theme="light"] .submit-image-source-input {
  color: #0f172a;
  border-bottom-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .submit-image-source-input::placeholder {
  color: #94a3b8;
}

/* ── Rich Formatting Toolbar (Image 4 Spec) ── */
.submit-formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2f3336;
  flex-wrap: wrap;
}

.submit-fmt-btn {
  background: transparent;
  border: none;
  color: #eff3f4;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  font-family: inherit;
  min-width: 28px;
}

.submit-fmt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.submit-fmt-divider {
  width: 1px;
  height: 20px;
  background: #2f3336;
  margin: 0 4px;
}

/* ── Story Input / Textarea ── */
.submit-story-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submit-story-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.submit-story-editor {
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
  outline: none;
  color: #eff3f4;
  font-size: 15.5px;
  line-height: 1.6;
  font-family: inherit;
  box-sizing: border-box;
  padding: 8px 0;
}

/* Neutralize pasted inline backgrounds & fonts (5th image fix: make it look like 2nd image) */
.submit-story-editor,
.submit-story-editor *:not(a):not(button):not(input) {
  background: transparent !important;
  background-color: transparent !important;
  color: #eff3f4 !important;
}

.submit-story-editor a {
  color: #38bdf8 !important;
  text-decoration: underline;
  background: transparent !important;
}

.submit-story-editor strong,
.submit-story-editor b {
  font-weight: 700 !important;
  color: #ffffff !important;
}

.submit-story-editor em,
.submit-story-editor i {
  font-style: italic !important;
}

.submit-story-editor p {
  margin: 0 0 14px 0;
}

/* Inline Article Images: Equal Top & Bottom Spacing + Rounded Corners */
.submit-story-editor img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.submit-story-editor figure {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.submit-story-editor figure img {
  border-radius: 14px !important;
  margin: 0 auto !important;
}

.submit-story-editor blockquote {
  border-left: 3px solid var(--accent, #facc15);
  padding-left: 14px;
  margin: 12px 0;
  opacity: 0.9;
  font-style: italic;
}

[data-theme="light"] .submit-story-editor,
[data-theme="light"] .submit-story-editor *:not(a):not(button):not(input) {
  color: #0f172a !important;
}

[data-theme="light"] .submit-story-editor a {
  color: #0284c7 !important;
}

.submit-story-editor:empty:before {
  content: attr(data-placeholder);
  color: #71767b;
  pointer-events: none;
  display: block;
}

.submit-word-counter {
  font-size: 12px;
  color: #71767b;
  text-align: right;
  margin-top: 4px;
}

/* ── Composer Footer Action Bar (Image 4) ── */
.submit-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #2f3336;
  background: #000000;
}

.submit-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-submit-save-draft {
  padding: 10px 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f1419;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-submit-save-draft:hover {
  background: #e7e9ea;
  transform: translateY(-1px);
}

.btn-submit-schedule-clock {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-submit-schedule-clock:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-submit-post-primary {
  padding: 10px 32px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f1419;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-submit-post-primary:hover {
  background: #e7e9ea;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* ── Right Sidebar Guidelines Card (Matching Image 1 Numbered Design) ── */
.submit-guidelines-card {
  background: var(--bg-card, #141416);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
}

[data-theme="light"] .submit-guidelines-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.submit-guidelines-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .submit-guidelines-title {
  color: #0f172a;
}

.guidelines-numbered-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.guideline-num-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 4px;
}

.guideline-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.guideline-number {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, sans-serif;
}

[data-theme="light"] .guideline-number {
  color: #0f172a;
}

.guideline-divider-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}

[data-theme="light"] .guideline-divider-line {
  background: #0f172a;
}

.guideline-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 4px;
}

.guideline-item-title {
  font-size: 14px;
  font-weight: 750;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .guideline-item-title {
  color: #0f172a;
}

.guideline-toggle-icon {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

[data-theme="light"] .guideline-toggle-icon {
  color: #0f172a;
}

.guideline-item-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 4px 0 6px 0;
  animation: guideExpand 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes guideExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.guideline-num-item:not(.active) .guideline-item-body {
  display: none;
}

/* Image 1 Left Accent Bar Beside Active Answer */
.guideline-accent-bar {
  width: 3px;
  background: #facc15;
  border-radius: 2px;
  flex-shrink: 0;
}

[data-theme="light"] .guideline-accent-bar {
  background: #0f172a;
}

.guideline-item-text {
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

[data-theme="light"] .guideline-item-text {
  color: #475569;
}

/* ── Toast Notifications (Image 2 Spec) ── */
.submit-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f1419;
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 400;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  max-width: 92vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES FOR COMPOSER WORKSPACE (Image 4 light-theme adaptation)
   ══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .submit-tabs-header,
body.bp-theme-light .submit-tabs-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .submit-tab-item,
body.bp-theme-light .submit-tab-item {
  color: #536471;
}

[data-theme="light"] .submit-tab-item:hover:not(.locked),
body.bp-theme-light .submit-tab-item:hover:not(.locked) {
  color: #0f1419;
  background: rgba(15, 20, 25, 0.06);
}

[data-theme="light"] .submit-tab-item.active,
body.bp-theme-light .submit-tab-item.active {
  color: #0f1419;
  border-color: #0f1419;
  background: transparent;
}

[data-theme="light"] .submit-reset-btn,
body.bp-theme-light .submit-reset-btn {
  color: #536471;
}

[data-theme="light"] .submit-reset-btn:hover,
body.bp-theme-light .submit-reset-btn:hover {
  color: #0f1419;
  background: rgba(15, 20, 25, 0.08);
}

[data-theme="light"] .submit-subbar,
body.bp-theme-light .submit-subbar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .submit-pill-btn,
body.bp-theme-light .submit-pill-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .submit-pill-btn:hover,
body.bp-theme-light .submit-pill-btn:hover {
  background: #f1f3f5 !important;
  color: #000000 !important;
}

[data-theme="light"] .submit-pill-btn.has-value,
body.bp-theme-light .submit-pill-btn.has-value {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #000000 !important;
}

[data-theme="light"] .submit-tags-pill,
body.bp-theme-light .submit-tags-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #000000 !important;
}

[data-theme="light"] .submit-tag-chip,
body.bp-theme-light .submit-tag-chip {
  background: #0f172a !important;
  border: none !important;
  color: #ffffff !important;
}

[data-theme="light"] .submit-tag-chip .remove-tag:hover,
body.bp-theme-light .submit-tag-chip .remove-tag:hover {
  color: #ef4444;
}

[data-theme="light"] .submit-tag-input,
body.bp-theme-light .submit-tag-input {
  color: #000000 !important;
}

[data-theme="light"] .submit-tag-input::placeholder,
body.bp-theme-light .submit-tag-input::placeholder {
  color: #334155 !important;
}

[data-theme="light"] .submit-dropdown-menu,
body.bp-theme-light .submit-dropdown-menu {
  background: #ffffff;
  border-color: #cfd9de;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .submit-dropdown-item,
body.bp-theme-light .submit-dropdown-item {
  color: #0f1419;
}

[data-theme="light"] .submit-dropdown-item:hover,
body.bp-theme-light .submit-dropdown-item:hover {
  background: #f7f9f9;
}

[data-theme="light"] .submit-dropdown-item.active,
body.bp-theme-light .submit-dropdown-item.active {
  color: #00aeec;
  background: rgba(0, 174, 236, 0.1);
}

[data-theme="light"] .submit-user-avatar,
body.bp-theme-light .submit-user-avatar {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .submit-title-input,
body.bp-theme-light .submit-title-input {
  color: #0f1419;
}

[data-theme="light"] .submit-title-input::placeholder,
body.bp-theme-light .submit-title-input::placeholder {
  color: #536471;
}

[data-theme="light"] .submit-field-label,
body.bp-theme-light .submit-field-label {
  color: #0f1419;
}

[data-theme="light"] .submit-subtitle-input,
body.bp-theme-light .submit-subtitle-input {
  color: #536471;
}

[data-theme="light"] .submit-subtitle-input::placeholder,
body.bp-theme-light .submit-subtitle-input::placeholder {
  color: #536471;
}

[data-theme="light"] .submit-image-btn,
body.bp-theme-light .submit-image-btn {
  background: #ffffff;
  border-color: #cfd9de;
  color: #0f1419;
}

[data-theme="light"] .submit-image-btn:hover,
body.bp-theme-light .submit-image-btn:hover {
  background: #f7f9f9;
  border-color: #536471;
}

[data-theme="light"] .submit-image-preview-box,
body.bp-theme-light .submit-image-preview-box {
  border-color: #cfd9de;
}

[data-theme="light"] .submit-formatting-toolbar,
body.bp-theme-light .submit-formatting-toolbar {
  background: #f7f9f9;
  border-color: #eff3f4;
}

[data-theme="light"] .submit-fmt-btn,
body.bp-theme-light .submit-fmt-btn {
  color: #0f1419;
}

[data-theme="light"] .submit-fmt-btn:hover,
body.bp-theme-light .submit-fmt-btn:hover {
  background: rgba(15, 20, 25, 0.08);
}

[data-theme="light"] .submit-fmt-divider,
body.bp-theme-light .submit-fmt-divider {
  background: #cfd9de;
}

[data-theme="light"] .submit-story-label,
body.bp-theme-light .submit-story-label {
  color: #0f1419;
}

[data-theme="light"] .submit-story-editor,
body.bp-theme-light .submit-story-editor {
  color: #0f1419;
}

[data-theme="light"] .submit-story-editor:empty:before,
body.bp-theme-light .submit-story-editor:empty:before {
  color: #536471;
}

[data-theme="light"] .submit-word-counter,
body.bp-theme-light .submit-word-counter {
  color: #536471;
}

[data-theme="light"] .submit-composer-footer,
body.bp-theme-light .submit-composer-footer {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-submit-save-draft,
body.bp-theme-light .btn-submit-save-draft {
  background: #ffffff;
  border: 1px solid #cfd9de;
  color: #0f1419;
}

[data-theme="light"] .btn-submit-save-draft:hover,
body.bp-theme-light .btn-submit-save-draft:hover {
  background: #f7f9f9;
  border-color: #536471;
}

[data-theme="light"] .btn-submit-schedule-clock,
body.bp-theme-light .btn-submit-schedule-clock {
  border-color: #cfd9de;
  color: #0f1419;
}

[data-theme="light"] .btn-submit-schedule-clock:hover,
body.bp-theme-light .btn-submit-schedule-clock:hover {
  background: rgba(15, 20, 25, 0.06);
  border-color: #536471;
}

[data-theme="light"] .btn-submit-post-primary,
body.bp-theme-light .btn-submit-post-primary {
  background: #0f1419;
  color: #ffffff;
}

[data-theme="light"] .btn-submit-post-primary:hover,
body.bp-theme-light .btn-submit-post-primary:hover {
  background: #272c30;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .submit-story-editor blockquote,
body.bp-theme-light .submit-story-editor blockquote {
  border-left-color: var(--accent, #facc15);
  background: #f8fafc;
  color: #334155;
}

[data-theme="light"] .submit-story-editor .submit-callout,
body.bp-theme-light .submit-story-editor .submit-callout {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .submit-story-editor table,
body.bp-theme-light .submit-story-editor table,
[data-theme="light"] .submit-story-editor th,
body.bp-theme-light .submit-story-editor th,
[data-theme="light"] .submit-story-editor td,
body.bp-theme-light .submit-story-editor td {
  border-color: #e2e8f0;
}

[data-theme="light"] .submit-story-editor th,
body.bp-theme-light .submit-story-editor th {
  background: #f8fafc;
}

/* ── Admin Persona Switcher Bar (Signature Yellow & Crisp Black Text) ── */
.submit-persona-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #facc15 !important;
  border: 1px solid #eab308 !important;
  border-radius: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35) !important;
}

[data-theme="light"] .submit-persona-bar,
body.bp-theme-light .submit-persona-bar {
  background: #facc15 !important;
  border-color: #eab308 !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28) !important;
}

.submit-persona-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-persona-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #000000 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-persona-label svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.submit-persona-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.submit-persona-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
  border: 1.5px solid rgba(0, 0, 0, 0.28) !important;
  border-radius: 8px;
  padding: 7px 32px 7px 12px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.submit-persona-select:hover,
.submit-persona-select:focus {
  background: rgba(0, 0, 0, 0.14) !important;
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.16) !important;
}

[data-theme="light"] .submit-persona-select,
body.bp-theme-light .submit-persona-select {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .submit-persona-select:hover,
[data-theme="light"] .submit-persona-select:focus,
body.bp-theme-light .submit-persona-select:hover,
body.bp-theme-light .submit-persona-select:focus {
  background: rgba(0, 0, 0, 0.14) !important;
  border-color: #000000 !important;
}

.submit-persona-select optgroup {
  background: #18191c !important;
  color: #facc15 !important;
  font-weight: 700;
}

[data-theme="light"] .submit-persona-select optgroup,
body.bp-theme-light .submit-persona-select optgroup {
  background: #ffffff !important;
  color: #b45309 !important;
}

.submit-persona-select option {
  background: #18191c !important;
  color: #ffffff !important;
  font-weight: 500;
  padding: 6px 10px;
}

[data-theme="light"] .submit-persona-select option,
body.bp-theme-light .submit-persona-select option {
  background: #ffffff !important;
  color: #0f1419 !important;
}

.submit-persona-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #000000 !important;
  stroke: #000000 !important;
}

.submit-persona-active-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  animation: fadeIn 0.25s ease-out;
  color: #000000 !important;
}

[data-theme="light"] .submit-persona-active-badge,
body.bp-theme-light .submit-persona-active-badge {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
  box-shadow: none;
  color: #000000 !important;
}

.submit-persona-active-badge .persona-badge-name {
  color: #000000 !important;
}

.submit-persona-active-badge .persona-badge-role {
  color: #78350f !important;
  font-weight: 700 !important;
}

.submit-persona-active-badge .persona-badge-reset-btn {
  color: #000000 !important;
}

.persona-badge-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #16181c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.persona-badge-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
}

.persona-badge-name {
  font-weight: 700;
  color: #ffffff;
}

[data-theme="light"] .persona-badge-name,
body.bp-theme-light .persona-badge-name {
  color: #0f1419;
}

.persona-badge-role {
  font-size: 11px;
  color: #1d9bf0;
  font-weight: 600;
}

.persona-badge-reset-btn {
  background: none;
  border: none;
  color: #71767b;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
}

.persona-badge-reset-btn:hover {
  color: #f4212e;
  background: rgba(244, 33, 46, 0.15);
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE & TABLET ROTATE MODE: FULL-WIDTH EDGE-TO-EDGE COMPOSER
   Fills the content on both left and right on mobile/tablet screens
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 800px), (orientation: landscape) and (max-height: 550px) {
  .submit-page-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-right: none !important;
  }

  .submit-hero-header {
    padding: 16px 14px 14px !important;
    border-left: none !important;
    border-right: none !important;
  }

  .submit-composer-container {
    padding: 0 0 36px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .submit-composer-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  .submit-tabs-header {
    padding: 14px 14px 12px !important;
  }

  .submit-subbar {
    padding: 12px 14px !important;
    gap: 8px !important;
  }

  .submit-composer-body {
    padding: 16px 14px !important;
  }

  .submit-persona-bar {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }

  .submit-persona-select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .submit-author-title-row {
    gap: 12px !important;
  }

  .submit-title-input {
    font-size: 1.45rem !important;
  }

  .submit-subtitle-input {
    font-size: 15px !important;
  }

  .submit-image-actions-row {
    gap: 8px !important;
  }

  .submit-image-paste-box {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .submit-formatting-toolbar {
    gap: 3px !important;
    padding: 6px 8px !important;
  }

  .submit-composer-footer {
    padding: 14px 14px !important;
  }
}
