:root {
  --primary: #1c4dd7;
  --primary-soft: #819bff;
  --secondary: #4647d3;
  --tertiary: #815100;
  --success: #008542;

  --bg: #f5f7f9;
  --surface: #f5f7f9;
  --surface-low: #eef1f3;
  --surface-card: #ffffff;
  --surface-high: #dfe3e6;
  --surface-highest: #d9dde0;

  --text: #2c2f31;
  --muted: #595c5e;
  --outline-soft: rgba(171, 173, 175, 0.2);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 9999px;

  --shadow-soft: 0 10px 40px -10px rgba(44, 47, 49, 0.06);
  --shadow-active: 0 20px 60px -15px rgba(28, 77, 215, 0.12);

  --gradient-primary: linear-gradient(135deg, #1c4dd7 0%, #819bff 100%);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.output-new-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.output-new-page .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ======================================
   TOP BAR â€” CONSOLIDATED
====================================== */

.fa-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Layout */
.fa-topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 28px;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
}

/* Brand */
.fa-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  text-decoration: none;
}

/* Navigation */
.fa-mainnav {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin-left: 28px;
}

.fa-mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.fa-mainnav a:hover {
  background: var(--surface-high);
  color: var(--text);
  transform: translateY(-1px);
}

.fa-mainnav a[aria-current="page"] {
  background: rgba(28, 77, 215, 0.08);
  color: var(--primary);
}

/* Right side */
.fa-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

/* CTA */
.fa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  z-index: 2;
}

.fa-cta:hover {
  transform: translateY(-1px);
  box-shadow: none !important;
  filter: brightness(1.05);
}

.fa-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(28, 77, 215, 0.2);
}

/* Avatar */
.fa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-high);
  box-shadow: none;
}

.omni-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--omni-avatar-bg, #e2e8f0);
  color: var(--omni-avatar-fg, #334155);
  border: 1px solid var(--omni-avatar-border, rgba(51, 65, 85, 0.14));
  box-shadow: none;
  overflow: hidden;
}

.omni-user-avatar--sm {
  width: 40px;
  height: 40px;
}

.omni-user-avatar-initials {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Shell */
.fa-shell {
  padding: 28px 24px 56px;
}

.fa-shell__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.fa-cta,
.fa-cta:visited {
  color: #fff !important;
}

.fa-cta:hover,
.fa-cta:focus,
.fa-cta:active {
  color: #fff !important;
}

/* Remove underline in topbar */
.fa-topbar a,
.fa-topbar a:hover,
.fa-topbar a:focus,
.fa-topbar a:active {
  text-decoration: none !important;
}

/* Loading */
.loading-state {
  display: none;
}

.loading-state.active {
  display: flex;
  min-height: 52vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 4px solid rgba(28, 77, 215, 0.12);
  border-top-color: var(--primary);
  animation: fa-spin 0.9s linear infinite;
}

@keyframes fa-spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 2rem;
  font-weight: 800;
}

.loading-subtitle {
  max-width: 52ch;
  text-align: center;
}

/* Hero */
.fa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 240px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.fa-hero__content,
.fa-scorecard {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.fa-hero__content {
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fa-hero__content > .output-header,
.fa-hero__content > .fa-output-header,
.fa-hero__content .fa-hero-meta,
.fa-hero__content .fa-hero-subtext {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.fa-hero__content > .fa-output-header {
  flex-direction: column;
  align-items: center;
}

.fa-hero__content .fa-hero-meta {
  flex-direction: column;
  gap: 10px;
}

.fa-statusline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 133, 66, 0.08);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fa-statusline__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.fa-output-header h1 {
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  text-align: center;
}

.fa-output-header p {
  font-size: 1.06rem;
  max-width: 60ch;
  line-height: 1.75;
}

.fa-scorecard {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.fa-scorecard__label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fa-scorecard__value {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.fa-scorecard__value span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
}

.fa-scorecard__value small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.fa-scorecard__dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.fa-scorecard__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.fa-scorecard__dots .is-muted {
  background: #cbd5e1;
}

.fa-scorecard__caption {
  margin-top: 10px;
  color: var(--success);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fa-output-meta {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 980px;
}

.fa-output-source,
.fa-output-generated {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.fa-output-meta__label {
  font-weight: 500;
  color: var(--muted);
  margin-right: 8px;
}

#faSourceUrl,
#faGeneratedAt {
  color: var(--text);
  font-weight: 700;
}

#faSourceUrl {
  word-break: break-word;
}

/* Quality zone */
.fa-quality-zone {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

#qualityAgentMount,
#qualityEditMount {
  display: none !important;
}

/* Toolbar */
.fa-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.fa-toolbar__filters,
.fa-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fa-pill,
.fa-btn {
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.fa-pill {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-high);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.fa-pill:hover {
  background: var(--surface-highest);
  color: var(--text);
  transform: translateY(-1px);
}

.fa-pill--active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 77, 215, 0.18);
}

.fa-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
}

.fa-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 77, 215, 0.18);
}

.fa-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(28, 77, 215, 0.22);
}

.fa-btn--secondary {
  background: var(--surface-high);
  color: var(--text);
}

.fa-btn--secondary:hover {
  background: var(--surface-highest);
  transform: translateY(-1px);
}

/* Hide legacy visual tab nav but keep it for JS compatibility */
.fa-compat-tabnav {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Content sections */
.fa-content-grid {
  display: grid;
  gap: 28px;
}

.fa-section {
  display: block;
}

.fa-section__lead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.fa-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fa-section__lead h2 {
  font-size: 1.7rem;
  font-weight: 800;
}

.output-grid {
  display: grid;
  gap: 24px;
}

/* Footer actions */
.fa-footer-actions {
  margin-top: 36px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--surface-low);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Keep compatibility for old buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 77, 215, 0.18);
}

.btn-secondary {
  background: var(--surface-high);
  color: var(--text);
}

/* Zoom overlay */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 47, 49, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

/* Responsive */
@media (max-width: 1080px) {
  .fa-hero {
    grid-template-columns: 1fr;
  }

  .fa-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fa-toolbar__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .fa-topbar__inner {
    padding: 14px 18px;
  }

  .fa-mainnav {
    display: none;
  }

  .fa-shell {
    padding: 20px 16px 40px;
  }

  .fa-hero__content {
  padding: 28px 24px;
  }

  .fa-scorecard {
    padding: 24px;
  }

  .fa-output-header h1 {
  font-size: 2.5rem;
  }

  .fa-output-source,
.fa-output-generated {
  font-size: 0.98rem;
  }
}

/* Hide duplicated summary layer from legacy quality banner */
#qualityAgentMount .quality-hero-banner > .quality-hero-content {
  display: none !important;
}

.fa-quality-zone {
  display: grid;
  gap: 16px;
  margin: 4px 0 28px;
}

#qualityAgentMount .qa-panel,
#qualityAgentMount .qa-edit-panel,
#qualityAgentMount .qa-state {
  margin-top: 0 !important;
}

/* Remove duplicate approve/export bar inside quality banner */
#qualityAgentMount .quality-actions,
#qualityAgentMount .qa-actions,
#qualityAgentMount .qa-controls {
  display: none !important;
}

/* ======================================
   CARD SYSTEM â€” FIX BROKEN OUTPUT CARDS
====================================== */

/* Grid stabilization */
.output-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: stretch;
}

/* Card shell */
.output-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px 18px 16px;
  background: var(--surface-card);
  border: 1px solid rgba(28, 77, 215, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Hover state */
.output-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-active);
}

/* Top accent stripe (fix rounded mismatch) */
.output-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(90deg, #4f9cf7 0%, #7f7cf5 42%, #ff8d6b 100%);
}

/* Title */
.output-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* Content text */
.output-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer / actions inside card */
.output-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ======================================
   ICON FIX â€” PREVENT GIANT / BROKEN ICONS
====================================== */

.output-card .material-symbols-outlined {
  font-size: 20px !important;
  line-height: 1 !important;
  vertical-align: middle;
}

/* If any legacy SVG/icons explode */
.output-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ======================================
   CONTENT WRAPPER FIX
====================================== */

/* Prevent transparent / collapsing layout */
.output-card > * {
  width: 100%;
}

/* Ensure text doesn't overflow weirdly */
.output-card pre,
.output-card code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ======================================
   SECTION SPACING FIX
====================================== */

.fa-section {
  margin-bottom: 6px;
}

/* ======================================
   SMALL POLISH
====================================== */

.output-card:hover .fa-pill {
  transform: none;
}

/* =========================================================
   OUTPUTS PAGE STABILIZATION â€” CARD / HERO / TOOLBAR / SCROLL
   append at very end of output_new.css
========================================================= */

/* ---------- HERO: force content visible and compact ---------- */

.fa-hero {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: stretch;
}

.fa-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 38px 44px;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.output-header.fa-output-header {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 18px;
}

.fa-output-header h1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  margin: 0;
}

.fa-hero-meta {
  display: grid !important;
  gap: 10px;
  width: 100%;
  max-width: 760px;
}

.fa-meta-row {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.fa-meta-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.fa-meta-value,
#faSourceUrl,
#faGeneratedAt {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 0.98rem;
  word-break: break-word;
}

.fa-hero-subtext {
  display: none !important;
}

/* ---------- TOOLBAR: selected pill must stay selected on hover ---------- */

.fa-pill--active,
.fa-pill--active:hover,
.fa-pill--active:focus,
.fa-pill--active:active {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(28, 77, 215, 0.18);
  transform: none;
}

/* ---------- GRID / CARDS ---------- */

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
  align-items: start;
}

.output-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 28px 26px 22px;
  background: var(--surface-card);
  border: 1px solid rgba(28, 77, 215, 0.10);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.output-card.full-width {
  grid-column: 1 / -1;
}

.output-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: linear-gradient(90deg, #4f9cf7 0%, #7f7cf5 40%, #ff8d6b 100%);
}

/* ---------- CARD HEADER ---------- */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(28, 77, 215, 0.20);
  border-radius: 999px;
  color: #2153a9;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #5a6b88;
}

.platform-icon svg {
  width: 22px;
  height: 22px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.approval-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.approval-state-badge--draft {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.2);
}

.approval-state-badge--approved {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.24);
}

#scheduled-posts-section {
  margin-top: 18px;
}

#scheduled-posts-section .scheduled-queue-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding: 1px 0;
}

#scheduled-posts-section .scheduled-queue-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.78));
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#scheduled-posts-section .scheduled-queue-filter:hover {
  border-color: rgba(59, 130, 246, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.84));
}

#scheduled-posts-section .scheduled-queue-filter:focus-within {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

#scheduled-posts-section .scheduled-queue-filter > span {
  color: #64748b;
  line-height: 1;
}

#scheduled-posts-section .scheduled-queue-filter select {
  min-height: 32px;
  padding: 0 20px 0 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  cursor: pointer;
}

#scheduled-posts-section .scheduled-post-item {
  border-radius: 14px !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

#scheduled-posts-section .scheduled-post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: rgba(148, 163, 184, 0.22);
}

#scheduled-posts-section .scheduled-post-item--queued::before {
  background: rgba(59, 130, 246, 0.36);
}

#scheduled-posts-section .scheduled-post-item--running::before {
  background: rgba(96, 165, 250, 0.3);
}

#scheduled-posts-section .scheduled-post-item--success::before {
  background: rgba(16, 185, 129, 0.34);
}

#scheduled-posts-section .scheduled-post-item--failed::before,
#scheduled-posts-section .scheduled-post-item--error::before {
  background: rgba(239, 68, 68, 0.34);
}

#scheduled-posts-section .scheduled-post-item--canceled::before,
#scheduled-posts-section .scheduled-post-item--cancelled::before,
#scheduled-posts-section .scheduled-post-item--unknown::before {
  background: rgba(148, 163, 184, 0.2);
}

#scheduled-posts-section .scheduled-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

#scheduled-posts-section .scheduled-post-header {
  padding: 18px 22px 0;
  gap: 20px;
  align-items: flex-start;
}

#scheduled-posts-section .scheduled-post-main {
  min-width: 0;
}

#scheduled-posts-section .scheduled-post-lower {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px 6px 26px;
}

#scheduled-posts-section .scheduled-post-utility-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 210px;
  padding-top: 0;
  margin-top: -6px;
}

#scheduled-posts-section .scheduled-post-utility-meta {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#scheduled-posts-section .scheduled-post-utility-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

#scheduled-posts-section .scheduled-post-title-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#scheduled-posts-section .scheduled-post-title-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex: 0 0 auto;
}

#scheduled-posts-section .scheduled-post-title-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

#scheduled-posts-section .scheduled-post-title-text {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

#scheduled-posts-section .scheduled-post-platform-line {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, auto);
  align-items: center;
  column-gap: 10px;
  padding-left: 0;
}

#scheduled-posts-section .scheduled-post-platform-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex: 0 0 auto;
}

#scheduled-posts-section .scheduled-post-platform-icon svg {
  width: 16px;
  height: 16px;
}

#scheduled-posts-section .scheduled-post-platform-label {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-left: 0;
}

#scheduled-posts-section .scheduled-post-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-right: 0;
  flex: 0 0 auto;
}

#scheduled-posts-section .scheduled-post-status-badge {
  align-self: flex-end;
}
#scheduled-posts-section .scheduled-post-reconciliation-badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

#scheduled-posts-section .scheduled-post-reconciliation-badge--metadata {
  align-self: flex-start;
}

#scheduled-posts-section .omni-cancel-scheduled-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.22);
  color: #475569;
}

#scheduled-posts-section .omni-cancel-scheduled-btn:hover {
  border-color: rgba(239, 68, 68, 0.32);
  color: #b91c1c;
}

#scheduled-posts-section .omni-cancel-scheduled-btn:active {
  border-color: rgba(239, 68, 68, 0.42);
  color: #991b1b;
}

#scheduled-posts-section .omni-requeue-scheduled-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

#scheduled-posts-section .omni-requeue-scheduled-btn:hover {
  border-color: rgba(59, 130, 246, 0.34);
  color: #1e40af;
  box-shadow: none;
}

#scheduled-posts-section .omni-open-scheduled-post-link {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.28);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

#scheduled-posts-section .omni-open-scheduled-post-link:hover {
  border-color: rgba(100, 116, 139, 0.35);
  color: #334155;
  text-decoration: none;
}

#scheduled-posts-section .omni-scheduled-details-toggle--compact {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#scheduled-posts-section .scheduled-details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  line-height: 1;
}

#scheduled-posts-section .scheduled-post-status-badge--queued {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.18);
}

#scheduled-posts-section .scheduled-post-status-badge--running {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.22);
}

#scheduled-posts-section .scheduled-post-status-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.24);
}

#scheduled-posts-section .scheduled-post-status-badge--failed,
#scheduled-posts-section .scheduled-post-status-badge--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

#scheduled-posts-section .scheduled-post-status-badge--canceled,
#scheduled-posts-section .scheduled-post-status-badge--cancelled {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.22);
}
#scheduled-posts-section .scheduled-post-reconciliation-badge--verified {
  background: rgba(20, 184, 166, 0.02);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.18);
}
#scheduled-posts-section .scheduled-post-reconciliation-badge--missing {
  background: rgba(245, 158, 11, 0.02);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.18);
}
#scheduled-posts-section .scheduled-post-reconciliation-badge--error {
  background: rgba(249, 115, 22, 0.02);
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.18);
}

#scheduled-posts-section .scheduled-post-time-meta {
  color: #334155;
}

#scheduled-posts-section .scheduled-post-meta {
  padding: 12px 22px 0;
  gap: 8px 14px;
}

#scheduled-posts-section .scheduled-post-meta .meta-item {
  padding-left: 26px;
}

#scheduled-posts-section .scheduled-post-time-meta > span:last-child {
  font-weight: 700;
  color: #0f172a;
}

#scheduled-posts-section .scheduled-post-meta--stacked {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

#scheduled-posts-section .scheduled-post-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

#scheduled-posts-section .scheduled-post-meta-split {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: nowrap;
  min-width: 0;
}

#scheduled-posts-section .scheduled-post-meta-pair {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

#scheduled-posts-section .scheduled-post-meta-key {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 0 0 auto;
  white-space: nowrap;
}

#scheduled-posts-section .scheduled-post-meta-row-value,
#scheduled-posts-section .scheduled-post-meta-inline-value {
  min-width: 0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: normal;
  white-space: nowrap;
}

#scheduled-posts-section .scheduled-post-meta-artifact-state {
  padding-top: 2px;
}

#scheduled-posts-section .scheduled-post-preview {
  padding: 10px 22px 8px 26px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

#scheduled-posts-section .scheduled-post-observability {
  padding: 4px 22px 20px 48px;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

#scheduled-posts-section .scheduled-post-observability-row + .scheduled-post-observability-row {
  margin-top: 6px;
}
#scheduled-posts-section .scheduled-post-reconciliation-row {
  padding-top: 4px;
}
#scheduled-posts-section .scheduled-post-reconciliation-note {
  margin-top: 4px;
  color: #64748b;
}

@media (max-width: 900px) {
  #scheduled-posts-section .scheduled-post-header {
    gap: 14px;
  }

  #scheduled-posts-section .scheduled-post-actions {
    align-items: flex-start;
  }

  #scheduled-posts-section .scheduled-post-lower {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 22px 6px 22px;
  }

  #scheduled-posts-section .scheduled-post-utility-actions {
    align-items: flex-start;
    justify-content: flex-start;
    max-width: none;
    padding-top: 0;
    margin-top: 0;
  }

  #scheduled-posts-section .scheduled-post-utility-meta,
  #scheduled-posts-section .scheduled-post-utility-controls {
    justify-content: flex-start;
  }

  #scheduled-posts-section .scheduled-post-status-badge {
    align-self: flex-start;
  }

  #scheduled-posts-section .scheduled-post-platform-line {
    padding-left: 0;
  }

  #scheduled-posts-section .scheduled-post-meta--stacked {
    padding: 0;
  }

  #scheduled-posts-section .scheduled-post-meta-row,
  #scheduled-posts-section .scheduled-post-meta-pair {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  #scheduled-posts-section .scheduled-post-meta-split {
    gap: 8px 14px;
    flex-wrap: wrap;
  }

  #scheduled-posts-section .scheduled-post-meta-row-value,
  #scheduled-posts-section .scheduled-post-meta-inline-value {
    white-space: normal;
  }

  #scheduled-posts-section .scheduled-post-preview {
    padding: 10px 22px 8px 22px;
  }
}

#scheduled-posts-section .scheduled-post-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  text-align: center;
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

#scheduled-posts-section .scheduled-post-empty h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

#scheduled-posts-section .scheduled-post-empty p {
  margin: 0;
  font-size: 0.92rem;
}

#scheduled-posts-section .scheduled-post-empty--error {
  border-style: solid;
  border-color: rgba(239, 68, 68, 0.14);
  background: rgba(254, 242, 242, 0.72);
}

#scheduled-posts-section .scheduled-post-error-text {
  margin-top: 10px !important;
  color: #991b1b;
  font-size: 0.84rem !important;
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #f8fafc;
  color: #44526a;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.output-card .card-header + .edit-tools {
  margin-top: 2px;
}

.output-card .edit-tools + .edit-textarea {
  margin-top: 2px;
}

/* ---------- TOOL BAR INSIDE CARD ---------- */

.edit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: #f8fafc;
}

.edit-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #4a5568;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.edit-tool-btn:hover {
  background: #f2f6fb;
}

.approve-toggle-btn {
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}

.approve-toggle-btn.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.34);
  color: #047857;
}

.edit-tool-btn .material-symbols-outlined,
.edit-tool-btn svg,
.edit-tool-btn span[aria-hidden="true"] {
  margin-right: 4px;
}

.edit-tool-label {
  color: #6b7280;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 2px 0 2px;
}

.edit-tool-split {
  width: 1px;
  align-self: stretch;
  min-height: 20px;
  background: rgba(148, 163, 184, 0.24);
}

.output-card.is-approved {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.output-card.is-approved::before {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.edit-tools.is-approval-locked {
  background: #f4fbf7;
  border-color: rgba(16, 185, 129, 0.16);
}

.edit-tools.is-approval-locked button:not(.approve-toggle-btn) {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.edit-tools.is-approval-locked .edit-tool-label,
.edit-tools.is-approval-locked .edit-tool-split {
  opacity: 0.55;
}

/* ---------- TEXTAREA ---------- */

.edit-textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px 14px 14px 14px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  line-height: 1.56;
  resize: none;
  box-sizing: border-box;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: #7aa0ff transparent;
}

.output-card.is-approved .edit-textarea[readonly] {
  background: #f7faf8;
  border-color: rgba(16, 185, 129, 0.18);
  color: #475569;
}

.edit-textarea::-webkit-scrollbar {
  width: 10px;
}

.edit-textarea::-webkit-scrollbar-track {
  background: transparent;
}

.edit-textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7aa0ff 0%, #5b7af0 100%);
  border-radius: 999px;
  border: 2px solid #fff;
}

.edit-textarea::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* ---------- BODY COPY / QA TEXT ---------- */

.output-card p,
.output-card .quality-reasoning,
.output-card .card-meta,
.output-card div,
.output-card li {
  line-height: 1.6;
}

.output-card .quality-reasoning,
.output-card .qa-callout {
  padding: 14px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #4b5563;
  font-size: 0.9rem;
}

.quality-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.38;
}

.quality-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quality-pill-issue {
  background: #fff7e8;
  border: 1px solid #f3cf91;
  color: #cc7000;
}

.quality-pill-improvement {
  background: #eaf1ff;
  border: 1px solid #9ebcff;
  color: #2b5fe6;
}

/* ---------- INSIGHTS: collapsed by default ---------- */

.card-insights-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #b7cdfd;
  border-radius: 999px;
  background: #f4f8ff;
  color: #2b5fe6;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.card-insights-toggle svg {
  width: 16px;
  height: 16px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-insights-content {
  display: none;
  margin-top: 6px;
}

.card-insights-content.is-open {
  display: block;
}

.output-card .publish-actions,
.output-card .card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.output-card .publish-actions .btn,
.output-card .card-actions .btn,
.output-card button[onclick*="publish"],
.output-card button[onclick*="Publish"],
.output-card button[onclick*="schedule"],
.output-card button[onclick*="Schedule"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.output-card .publish-actions .btn:hover,
.output-card .card-actions .btn:hover,
.output-card button[onclick*="publish"]:hover,
.output-card button[onclick*="Publish"]:hover,
.output-card button[onclick*="schedule"]:hover,
.output-card button[onclick*="Schedule"]:hover {
  background: var(--surface-highest);
  color: var(--text);
  transform: translateY(-1px);
}

.output-card button[onclick*="publish"],
.output-card button[onclick*="Publish"] {
  background: rgba(28, 77, 215, 0.08);
  color: var(--primary);
}

/* ---------- BOTTOM ACTION ROW ---------- */

.output-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-width: 0;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.meta-item {
  display: flex;
  align-items: baseline;
  align-content: flex-start;
  gap: 4px 6px;
  white-space: normal;
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  color: #5c677d;
  font-size: 0.78rem;
}

.meta-label {
  flex: 0 0 auto;
  color: #4b5563;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.meta-item > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 1100px) {
  .output-card .card-meta {
    flex-wrap: wrap;
  }
}

/* ---------- PAGE / TEXTAREA SCROLLBARS ---------- */

html {
  scrollbar-width: thin;
  scrollbar-color: #7aa0ff #eef1f3;
}

body.output-new-page ::-webkit-scrollbar,
body.output-new-page textarea::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body.output-new-page ::-webkit-scrollbar-track,
body.output-new-page textarea::-webkit-scrollbar-track {
  background: #eef1f3;
  border-radius: 999px;
}

body.output-new-page ::-webkit-scrollbar-thumb,
body.output-new-page textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7aa0ff 0%, #5b7af0 100%);
  border: 2px solid #eef1f3;
  border-radius: 999px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1280px) {
  .output-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 860px) {
  .fa-hero {
    grid-template-columns: 1fr;
  }

  .output-grid {
    grid-template-columns: 1fr;
  }

  .output-card {
    padding: 22px 18px 18px;
  }

  .edit-tools {
    gap: 8px;
    padding: 14px;
  }

  .platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(28, 77, 215, 0.20);
  border-radius: 999px;
  color: #2153a9;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #f8fafc;
  color: #44526a;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
 }
}

.output-card button[onclick*="publish"],
.output-card button[onclick*="Publish"],
.output-card button[onclick*="schedule"],
.output-card button[onclick*="Schedule"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(28, 77, 215, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.output-card button[onclick*="publish"]:hover,
.output-card button[onclick*="Publish"]:hover,
.output-card button[onclick*="schedule"]:hover,
.output-card button[onclick*="Schedule"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(28, 77, 215, 0.24);
  filter: brightness(1.03);
}

/* cards: less rounded */
.output-card {
  border-radius: 6px !important;
}

.edit-tools {
  border-radius: 6px !important;
}

.edit-textarea {
  border-radius: 6px !important;
}

.output-card .quality-reasoning,
.output-card .qa-callout,
.quality-pill {
  border-radius: 8px !important;
}

/* top stripe stays full width and square */
.output-card::before {
  left: 0 !important;
  right: 0 !important;
  border-radius: 0 !important;
}

/* publish/schedule exact injected buttons */
.omni-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.omni-publish-btn,
.omni-schedule-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: none !important;
  border-radius: 999px;
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(28, 77, 215, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}


.omni-publish-btn:hover,
.omni-schedule-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: none !important;
  filter: brightness(1.03);
}

.omni-action-row.is-guarded {
  opacity: 0.82;
}

.omni-publish-btn[disabled],
.omni-schedule-btn[disabled] {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.62;
  box-shadow: none !important;
  transform: none !important;
}

.omni-publish-btn.omni-btn-disabled-approval,
.omni-schedule-btn.omni-btn-disabled-approval {
  cursor: default !important;
}

.omni-publish-btn.omni-btn-disabled-unsupported,
.omni-schedule-btn.omni-btn-disabled-unsupported {
  cursor: help !important;
}

.omni-schedule-panel {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 12px;
  background: #f4fbf7;
}

.omni-schedule-panel.is-open {
  display: flex;
}

.omni-schedule-input {
  flex: 1 1 220px;
  min-height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.omni-instagram-media-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 10px 0 12px;
}

.omni-instagram-media-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.omni-instagram-media-label-text {
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.omni-instagram-media-field {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.omni-instagram-media-field::placeholder {
  color: #94a3b8;
}

.omni-instagram-media-field:focus,
.omni-instagram-media-field:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.03);
  background: #fff;
}

.omni-instagram-media-textarea {
  height: 96px;
  min-height: 96px;
  max-height: 112px;
  padding: 12px 14px;
  resize: vertical;
  overflow-y: auto;
}

.output-card.is-zoomed .omni-instagram-media-controls {
  margin: 10px 0 12px;
}

.output-card.is-zoomed .omni-instagram-media-field {
  height: 44px;
  min-height: 44px;
}

.output-card.is-zoomed .omni-instagram-media-textarea {
  height: 118px;
  min-height: 118px;
  max-height: 140px;
}
.omni-schedule-confirm-btn,
.omni-schedule-cancel-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
}

.omni-schedule-panel .omni-schedule-confirm-btn {
  background: transparent !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.omni-schedule-panel .omni-schedule-cancel-btn {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}


.output-card.is-execution-ready .omni-action-row {
  padding-top: 2px;
}

.omni-execution-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.omni-execution-status--instagram,
.output-card[data-format-key="instagram_post"] .omni-execution-status,
.output-card[data-format-key="instagram_reel"] .omni-execution-status,
.output-card[data-format-key="instagram_carousel"] .omni-execution-status {
  min-height: 24px;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
}


.omni-execution-status[hidden] {
  display: none !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.omni-action-row + .card-insights-row,
.omni-action-row + .omni-execution-status[hidden] + .card-insights-row {
  margin-top: 6px;
}

.omni-execution-status[data-state="running"] {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

.omni-execution-status[data-state="success"] {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.omni-execution-status[data-state="error"] {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

/* =========================================
   OUTPUTS POLISH â€” toolbar approve/export,
   publish hover, insights, best practices,
   expanded panel blue theme
========================================= */

/* 1) Top toolbar Approve â†’ Export: make it distinct */
#btnApproveExport {
  background: linear-gradient(135deg, #2563eb 0%, #7c8cf8 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease !important;
}

#btnApproveExport:hover {
  background: linear-gradient(135deg, #16a34a 0%, #34d399 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.18) !important;
  transform: translateY(-1px);
}

#btnApproveExport:active {
  animation: approveExportFlash 0.32s ease;
}

@keyframes approveExportFlash {
  0%   { transform: scale(1); filter: brightness(1); }
  50%  { transform: scale(0.985); filter: brightness(1.12); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* 2) Publish / Schedule hover shadow smaller */
.omni-publish-btn,
.omni-schedule-btn {
  box-shadow: 0 8px 16px rgba(28, 77, 215, 0.14) !important;
}

.omni-publish-btn:hover,
.omni-schedule-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: none !important;
  filter: brightness(1.02);
}

/* 3) Insights pill smaller */
.card-insights-toggle {
  min-width: 126px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.card-insights-toggle svg {
  width: 14px !important;
  height: 14px !important;
}

.output-card.is-zoomed {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22) !important;
}

#zoomOverlay.active {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.42) !important;
  z-index: 10000 !important;
}

.output-card.is-zoomed {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Zoom overlay polish */
#zoomOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    backdrop-filter 0.22s ease,
    -webkit-backdrop-filter 0.22s ease,
    background 0.22s ease;
  z-index: 10000;
}

#zoomOverlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Zoomed card depth */
.output-card.is-zoomed {
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28) !important;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
}

/* Slight visual separation for zoomed card content */
.output-card.is-zoomed::before {
  height: 5px !important;
  background: linear-gradient(90deg, #2563eb 0%, #7c8cf8 100%) !important;
}

/* === FIX ZOOM SHELL / SCROLL AREA === */
.output-card.is-zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: var(--omni-zoom-shell-width, min(980px, calc(100vw - 64px))) !important;
  max-width: 980px !important;
  height: var(--omni-zoom-shell-height, calc(100vh - 64px)) !important;
  min-height: 0 !important;
  max-height: var(--omni-zoom-shell-max-height, calc(100vh - 64px)) !important;
  margin: 0 !important;
  z-index: 10001 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.output-card.is-zoomed > .zoom-scroll-frame {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}

.output-card.is-zoomed > .zoom-scroll-frame > .zoom-scroll-inner {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  padding-right: 0 !important;
}

.output-card.is-zoomed .edit-textarea-wrap {
  position: relative;
  overflow: visible !important;
}

.zoom-textarea-scroll-indicator {
  display: none;
}

.output-card.is-zoomed .edit-textarea-wrap .zoom-textarea-scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 30px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.68) 56%, rgba(248, 250, 252, 0.9) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.output-card.is-zoomed .edit-textarea-wrap.has-zoom-textarea-scroll .zoom-textarea-scroll-indicator {
  opacity: 1;
}

.zoom-textarea-scroll-indicator-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-bottom: 5px;
  color: rgba(71, 85, 105, 0.92);
  font-size: 14px;
  line-height: 1;
}

.output-card.is-zoomed .edit-textarea {
  max-height: none !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overscroll-behavior: contain;
}

.output-card.is-zoomed .edit-textarea::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

/* ============================================
   ZOOM MODE â€” FORCE MODAL BEHAVIOR (FINAL FIX)
============================================ */

/* Kill inherited stretch behavior */
.output-card.is-zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: var(--omni-zoom-shell-width, min(980px, calc(100vw - 64px))) !important;
  max-width: 980px !important;
  height: var(--omni-zoom-shell-height, calc(100vh - 64px)) !important;
  min-height: 0 !important;
  max-height: var(--omni-zoom-shell-max-height, calc(100vh - 64px)) !important;

  display: flex !important;
  flex-direction: column !important;

  z-index: 10001 !important;
  overflow: hidden !important;
}

/* Kill grid stretch inheritance */
.output-card.is-zoomed {
  align-self: center !important;
}

/* Scroll container ONLY here */
.output-card.is-zoomed > .zoom-scroll-frame {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow-y: auto !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
}

/* Disable ALL internal scrolls */
.output-card.is-zoomed textarea,
.output-card.is-zoomed .edit-textarea,
.output-card.is-zoomed .edit-textarea-wrap {
  overflow: visible !important;
  max-height: none !important;
}

/* ============================================
   INSIGHTS SPACING POLISH
============================================ */

.output-card .quality-reasoning {
  margin-bottom: 14px !important;
}

.output-card .quality-pills {
  gap: 14px !important;
}

/* ============================================
   ZOOM â€” CHECKBOX / HEADER SPACING (ENHANCED)
============================================ */

/* Increase space between checkbox and platform pill */
.output-card.is-zoomed .card-header {
  gap: 18px !important;
}

/* Push checkbox slightly away from content */
.output-card.is-zoomed .bulk-checkbox-wrapper,
.output-card.is-zoomed .bulk-checkbox {
  margin-right: 10px !important;
}

/* Ensure pill doesn't collapse visually */
.output-card.is-zoomed .platform-badge {
  margin-left: 2px;
}

/* ============================================
   ZOOM â€” STRIPE CONSISTENCY
============================================ */

.output-card.is-zoomed::before {
  background: linear-gradient(90deg, #4f9cf7 0%, #7f7cf5 40%, #ff8d6b 100%) !important;
}

/* ============================================
   CARD TOP EDGE â€” REMOVE THIN WHITE LINE
   normal hover + zoomed
============================================ */

.output-card {
  overflow: hidden;
  border-top-color: transparent !important;
}

.output-card::before {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  border-radius: 0 !important;
  z-index: 2;
}

.output-card.is-zoomed {
  border-top-color: transparent !important;
}

.output-card.is-zoomed::before {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  border-radius: 0 !important;
  z-index: 2;
}

.output-card:hover,
.output-card.is-zoomed {
  background-clip: padding-box;
}

/* ============================================
   CARD TOP EDGE â€” HARD REMOVE TOP BORDER LINE
============================================ */

.output-card,
.output-card:hover,
.output-card.is-zoomed {
  border-top-width: 0 !important;
}

.output-card::before,
.output-card.is-zoomed::before {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 5px !important;
  z-index: 3 !important;
}

/* ============================================
   ZOOM â€” EXTRA CHECKBOX / HEADER SPACING
============================================ */

.output-card.is-zoomed .card-header {
  gap: 26px !important;
}

.output-card.is-zoomed .bulk-checkbox-wrapper,
.output-card.is-zoomed .bulk-checkbox {
  margin-right: 14px !important;
}

.output-card.is-zoomed .platform-badge {
  margin-left: 6px !important;
}

/* ============================================
   FINAL ZOOM SCROLL MODEL
============================================ */

.output-card.is-zoomed {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: var(--omni-zoom-shell-height, calc(100vh - 64px)) !important;
  min-height: 0 !important;
  max-height: var(--omni-zoom-shell-max-height, calc(100vh - 64px)) !important;
}

.output-card.is-zoomed > .zoom-scroll-frame {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  scrollbar-width: thin !important;
  scrollbar-color: #5b7af0 #ffffff !important;
}

.output-card.is-zoomed > .zoom-scroll-frame::-webkit-scrollbar {
  width: 10px !important;
}

.output-card.is-zoomed > .zoom-scroll-frame::-webkit-scrollbar-track {
  background: #ffffff !important;
}

.output-card.is-zoomed > .zoom-scroll-frame::-webkit-scrollbar-thumb {
  background: #5b7af0 !important;
  border-radius: 999px !important;
  border: 2px solid #ffffff !important;
}

.output-card.is-zoomed > .zoom-scroll-frame::-webkit-scrollbar-button {
  display: none !important;
}

.output-card.is-zoomed > .zoom-scroll-frame > .zoom-scroll-inner {
  display: block !important;
  min-height: 0 !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.output-card.is-zoomed .edit-textarea {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 42vh !important;
  max-height: 42vh !important;
  height: 42vh !important;

  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.output-card.is-zoomed .edit-textarea::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.output-card:not(.is-zoomed) .edit-textarea:focus,
.output-card:not(.is-zoomed) .edit-textarea:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.03);
  background: #ffffff;
}
.output-card.is-zoomed .edit-textarea:focus,
.output-card.is-zoomed .edit-textarea:focus-visible {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16) !important;
  background: #ffffff !important;
}

.output-card.is-zoomed .card-header {
  gap: 28px !important;
}

.output-card.is-zoomed .bulk-checkbox-wrapper,
.output-card.is-zoomed .bulk-checkbox {
  margin-right: 16px !important;
}

.output-card.is-zoomed .platform-badge {
  margin-left: 8px !important;
}

.output-card.is-zoomed > .zoom-scroll-frame {
  padding-right: 20px !important;
  padding-bottom: 16px !important;
  padding-left: 2px; /* keeps visual balance */
}

/* ============================================
   BULK SELECTION â€” STRONG VISUAL STATE
============================================ */

.output-card.bulk-selected {
  outline: 2px solid #5b7af0;
  box-shadow: 0 0 0 4px rgba(91, 122, 240, 0.12);
  transform: translateY(-1px);
}

/* subtle hover upgrade */
.output-card.bulk-selected:hover {
  box-shadow: 0 6px 20px rgba(91, 122, 240, 0.18);
}

/* checkbox stronger */
.bulk-checkbox {
  transform: scale(1.1);
}
.omni-action-row .omni-publish-btn,
.omni-action-row .omni-schedule-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1;
  box-shadow: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.omni-action-row .omni-publish-btn {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border: none !important;
}

.omni-action-row .omni-publish-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: none !important;
}

.omni-action-row .omni-schedule-btn {
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--text, #2c2f31) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

.omni-action-row .omni-schedule-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff !important;
  border-color: rgba(28, 77, 215, 0.22) !important;
  box-shadow: none !important;
}

.output-card.is-zoomed .omni-action-row .omni-publish-btn,
.output-card.is-zoomed .omni-action-row .omni-schedule-btn {
  min-height: 38px;
  padding: 0 15px;
}

/* === PHASE 11 SETTINGS PANEL START === */
#omni-settings-panel {
  margin-top: 18px;
}

#omni-settings-panel .omni-settings-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

#omni-settings-panel .omni-settings-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

#omni-settings-panel .omni-settings-row:last-child {
  border-bottom: 0;
}

#omni-settings-panel .omni-settings-label {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}

#omni-settings-panel .omni-settings-value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

#omni-settings-panel .omni-settings-error {
  color: #991b1b;
}

#omni-settings-panel .omni-settings-error span {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
}

#omni-settings-panel .omni-settings-publisher-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

#omni-settings-panel .omni-settings-publisher-control > div {
  display: grid;
  gap: 4px;
}

#omni-settings-panel .omni-settings-publisher-control small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

#omni-settings-panel .omni-settings-publisher-action {
  border: 1px solid rgba(148, 163, 184, 0.44);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

#omni-settings-panel .omni-settings-publisher-action:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.38);
  color: #2563eb;
}

#omni-settings-panel .omni-settings-publisher-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

#omni-settings-panel .omni-settings-action-error {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 0.84rem;
  font-weight: 700;
}
/* === PHASE 11 SETTINGS PANEL END === */

/* === PHASE 11.1B CARD RADIUS UNIFICATION START === */

/* Scheduled posts cards */
#scheduled-posts-section .scheduled-post-item {
  border-radius: 6px !important;
}

#scheduled-posts-section .scheduled-post-item::before {
  border-radius: 6px 0 0 6px !important;
}

/* Settings panel card */
#omni-settings-panel .omni-settings-card {
  border-radius: 6px !important;
}

/* Section containers (only if visibly inconsistent) */
#omni-settings-panel .fa-section,
#scheduled-posts-section .fa-section {
  border-radius: 6px !important;
}

/* === PHASE 11.1B CARD RADIUS UNIFICATION END === */

/* === PHASE 11.2B.1C SETTINGS VISUAL ALIGNMENT START === */
#omni-settings-panel .omni-settings-surface {
  color: var(--text);
}

#omni-settings-panel .omni-settings-card {
  padding: 20px 22px !important;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

#omni-settings-panel .omni-settings-row {
  align-items: center;
  gap: 22px;
  min-height: 44px;
  padding: 11px 0;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

#omni-settings-panel .omni-settings-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

#omni-settings-panel .omni-settings-value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

#omni-settings-panel .omni-settings-publisher-control {
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: rgba(148, 163, 184, 0.14);
}

#omni-settings-panel .omni-settings-publisher-control > div {
  gap: 5px;
}

#omni-settings-panel .omni-settings-publisher-control small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

#omni-settings-panel .omni-settings-publisher-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#omni-settings-panel .omni-settings-publisher-action:hover:not(:disabled),
#omni-settings-panel .omni-settings-publisher-action:focus-visible:not(:disabled) {
  border-color: rgba(100, 116, 139, 0.35);
  background: rgba(248, 250, 252, 0.98);
  color: #334155;
  transform: translateY(-1px);
}

#omni-settings-panel .omni-settings-publisher-action:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

#omni-settings-panel .omni-settings-action-error {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}
/* === PHASE 11.2B.1C SETTINGS VISUAL ALIGNMENT END === */

/* === PHASE 11.2B.2 SETTINGS SIGNAL CLARITY UPGRADE START === */
#omni-settings-panel .omni-settings-card {
  display: grid;
  gap: 16px;
}

#omni-settings-panel .omni-settings-group {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.54);
  overflow: hidden;
}

#omni-settings-panel .omni-settings-group-title {
  margin: 0;
  padding: 12px 14px 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

#omni-settings-panel .omni-settings-group-body {
  padding: 0 14px;
}

#omni-settings-panel .omni-settings-group-body .omni-settings-row:last-child {
  border-bottom: 0;
}

#omni-settings-panel .omni-settings-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#omni-settings-panel .omni-settings-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
}

#omni-settings-panel .omni-settings-status--positive {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}

#omni-settings-panel .omni-settings-status--muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: #64748b;
}

#omni-settings-panel .omni-settings-status--negative {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

#omni-settings-panel .omni-settings-publisher-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

#omni-settings-panel .omni-settings-publisher-state {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
}

#omni-settings-panel .omni-settings-publisher-state small {
  max-width: 54ch;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

#omni-settings-panel .omni-settings-publisher-module .omni-settings-publisher-action {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  #omni-settings-panel .omni-settings-row,
  #omni-settings-panel .omni-settings-publisher-module {
    align-items: flex-start;
    flex-direction: column;
  }

  #omni-settings-panel .omni-settings-value {
    text-align: left;
  }
}
/* === PHASE 11.2B.2 SETTINGS SIGNAL CLARITY UPGRADE END === */

/* === PHASE 12.0 OMNI VISIBILITY PANEL START === */
.omni-visibility-panel {
  margin-bottom: 22px;
}

.omni-visibility-panel .omni-visibility-card {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.omni-visibility-status-row,
.omni-visibility-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.omni-visibility-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.82rem;
  line-height: 1;
}

.omni-visibility-status-dot,
.omni-visibility-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.omni-visibility-status-label {
  color: #64748b;
  font-weight: 700;
}

.omni-visibility-status strong {
  color: currentColor;
  font-weight: 800;
}

.omni-visibility-status--positive {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}

.omni-visibility-status--muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: #64748b;
}

.omni-visibility-status--negative {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.omni-visibility-kpi {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.54);
}

.omni-visibility-kpi strong {
  display: block;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.omni-visibility-kpi span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.omni-visibility-timeline {
  padding-top: 2px;
}

.omni-visibility-timeline h3 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.omni-visibility-timeline-row,
.omni-visibility-timeline-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 650;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.omni-visibility-timeline-row--success {
  color: #047857;
}

.omni-visibility-timeline-row--queued,
.omni-visibility-timeline-row--running {
  color: #1d4ed8;
}

.omni-visibility-timeline-row--failed,
.omni-visibility-timeline-row--error {
  color: #b91c1c;
}

.omni-visibility-timeline-row--canceled,
.omni-visibility-timeline-row--cancelled {
  color: #64748b;
}

@media (max-width: 860px) {
  .omni-visibility-status-row,
  .omni-visibility-kpi-row {
    grid-template-columns: 1fr;
  }
}
/* === PHASE 12.0 OMNI VISIBILITY PANEL END === */

/* === PHASE 12.0B OUTPUTS HIERARCHY + VISIBILITY COMPACTION START === */
.omni-visibility-panel {
  margin: 16px 0 22px;
  padding: 12px;
}

.omni-visibility-panel .omni-visibility-card {
  gap: 10px;
  padding: 12px;
}

.omni-visibility-status-row {
  gap: 8px;
}

.omni-visibility-status {
  min-height: 0;
  padding: 6px 10px;
  gap: 8px;
  font-size: 12px;
}

.omni-visibility-status-dot,
.omni-visibility-timeline-dot {
  width: 7px;
  height: 7px;
}

.omni-visibility-summary {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.omni-visibility-summary strong {
  color: #0f172a;
  font-weight: 750;
}

.omni-visibility-summary span {
  color: #94a3b8;
  padding: 0 5px;
}

.omni-visibility-timeline h3 {
  margin-bottom: 6px;
  font-size: 11px;
}

.omni-visibility-timeline-row,
.omni-visibility-timeline-empty {
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 650;
}
/* === PHASE 12.0B OUTPUTS HIERARCHY + VISIBILITY COMPACTION END === */

/* === PHASE 12.2 OUTPUTS PAGE POLISH START === */
#outputContent .fa-section {
  margin-top: 32px;
}

#outputContent .fa-section:first-child {
  margin-top: 0;
}

#outputContent .fa-content-grid {
  margin-bottom: 32px;
}

#outputContent .omni-visibility-panel {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

#outputContent .omni-visibility-panel .omni-visibility-card {
  padding: 16px;
  gap: 16px;
}

#outputContent .omni-visibility-status-row {
  gap: 8px;
}

#outputContent .omni-visibility-status {
  height: 26px;
  min-height: 26px;
  padding: 6px 10px;
  gap: 8px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 500;
}

#outputContent .omni-visibility-status-dot {
  width: 6px;
  height: 6px;
  margin-right: 0;
}

#outputContent .omni-visibility-summary {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 4px;
}

#outputContent .omni-visibility-timeline {
  margin-top: 12px;
}

#outputContent .omni-visibility-timeline-row,
#outputContent .omni-visibility-timeline-empty {
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#outputContent .omni-visibility-timeline-row span,
#outputContent .omni-visibility-timeline-empty {
  color: rgba(0, 0, 0, 0.65);
}

#scheduled-posts-section {
  margin-top: 32px;
}
/* === PHASE 12.2 OUTPUTS PAGE POLISH END === */

/* PHASE 12.2B â€” SYSTEM STATUS PANEL ALIGNMENT */
.omni-visibility-panel {
  padding-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* PHASE 12.2C — FLATTEN SYSTEM STATUS */
.omni-visibility-panel {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 12px;
}

.omni-visibility-panel > * + * {
  margin-top: 10px;
}

/* PHASE 12.2C.1 - FORCE FLATTEN SYSTEM STATUS */
#outputContent .omni-visibility-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 12px;
}

#outputContent .omni-visibility-panel > * + * {
  margin-top: 10px;
}

/* PHASE 12.3 - GUIDANCE LAYER */
#outputContent .omni-empty-state {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

#outputContent .omni-empty-state small {
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.45);
}

#outputContent .omni-guidance-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

/* PHASE 12.4 - OUTPUTS FEEL / MICRO-POLISH */
body.output-new-page .fa-mainnav a,
body.output-new-page .fa-pill,
body.output-new-page .fa-btn,
body.output-new-page .btn,
body.output-new-page .copy-btn,
body.output-new-page .edit-tool-btn,
body.output-new-page .approve-toggle-btn,
body.output-new-page #btnApproveExport,
body.output-new-page .omni-publish-btn,
body.output-new-page .omni-schedule-btn,
body.output-new-page .omni-schedule-confirm-btn,
body.output-new-page .omni-schedule-cancel-btn,
#scheduled-posts-section .scheduled-queue-filter,
#scheduled-posts-section .scheduled-queue-filter select,
#scheduled-posts-section .omni-cancel-scheduled-btn,
#scheduled-posts-section .omni-requeue-scheduled-btn,
#scheduled-posts-section .omni-open-scheduled-post-link,
#scheduled-posts-section .omni-scheduled-details-toggle {
  transition: background 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out, filter 160ms ease-out;
}

body.output-new-page .output-card,
#scheduled-posts-section .scheduled-post-item {
  transition: border-color 170ms ease-out, box-shadow 170ms ease-out, transform 170ms ease-out, background-color 170ms ease-out;
}

body.output-new-page .output-card:hover {
  border-color: rgba(28, 77, 215, 0.18);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transform: translateY(-0.5px);
}

#scheduled-posts-section .scheduled-post-item:hover {
  border-color: rgba(100, 116, 139, 0.24) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-0.5px);
}

body.output-new-page .fa-pill:hover,
body.output-new-page .fa-btn:hover,
body.output-new-page .btn:hover,
body.output-new-page .copy-btn:hover,
body.output-new-page .edit-tool-btn:hover,
#scheduled-posts-section .omni-cancel-scheduled-btn:hover,
#scheduled-posts-section .omni-requeue-scheduled-btn:hover,
#scheduled-posts-section .omni-open-scheduled-post-link:hover,
#scheduled-posts-section .omni-scheduled-details-toggle:hover {
  box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.28);
}

body.output-new-page .fa-pill:focus-visible,
body.output-new-page .fa-btn:focus-visible,
body.output-new-page .btn:focus-visible,
body.output-new-page .copy-btn:focus-visible,
body.output-new-page .edit-tool-btn:focus-visible,
body.output-new-page .approve-toggle-btn:focus-visible,
body.output-new-page #btnApproveExport:focus-visible,
body.output-new-page .omni-publish-btn:focus-visible,
body.output-new-page .omni-schedule-btn:focus-visible,
body.output-new-page .omni-schedule-confirm-btn:focus-visible,
body.output-new-page .omni-schedule-cancel-btn:focus-visible,
body.output-new-page .fa-mainnav a:focus-visible,
#scheduled-posts-section .scheduled-queue-filter:focus-within,
#scheduled-posts-section .omni-cancel-scheduled-btn:focus-visible,
#scheduled-posts-section .omni-requeue-scheduled-btn:focus-visible,
#scheduled-posts-section .omni-open-scheduled-post-link:focus-visible,
#scheduled-posts-section .omni-scheduled-details-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 8px 18px -16px rgba(15, 23, 42, 0.28);
}

body.output-new-page .omni-publish-btn:active,
body.output-new-page .omni-schedule-btn:active,
body.output-new-page .fa-btn:active,
body.output-new-page .fa-pill:active,
body.output-new-page .btn:active,
#scheduled-posts-section .omni-cancel-scheduled-btn:active,
#scheduled-posts-section .omni-requeue-scheduled-btn:active,
#scheduled-posts-section .omni-open-scheduled-post-link:active,
#scheduled-posts-section .omni-scheduled-details-toggle:active {
  transform: translateY(0);
}

#scheduled-posts-section .omni-scheduled-details-toggle[aria-expanded="true"] {
  background: #ffffff;
  color: #475569;
  border-color: rgba(100, 116, 139, 0.46);
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.08);
}

body.output-new-page .omni-visibility-status {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

/* PHASE 12.5 - OUTPUTS BOTTOM ACTION BAR RADIUS ALIGNMENT */
#outputContent .fa-footer-actions {
  border-radius: 12px !important;
}

/* Phase 13.4M — filter pills shadow cleanup */
.fa-pill,
.fa-pill:hover,
.fa-pill:focus,
.fa-pill:focus-visible,
.fa-pill:active,
.fa-pill--active,
.fa-pill--active:hover,
.fa-pill--active:focus,
.fa-pill--active:focus-visible,
.fa-pill--active:active {
  box-shadow: none !important;
}

/* Phase 13.4M — export CTA shadow cleanup */
#btnApproveExport,
#btnApproveExport:hover,
#btnApproveExport:focus,
#btnApproveExport:focus-visible,
#btnApproveExport:active {
  box-shadow: none !important;
}
/* Phase 13.4N - scheduled posts pagination */
.omni-scheduled-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.omni-scheduled-load-more,
.omni-scheduled-less {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 28px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: none !important;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.omni-scheduled-load-more {
  background: linear-gradient(135deg, #2563eb, #6d7dfb);
  color: #fff;
}

.omni-scheduled-less {
  background: rgba(226, 232, 240, 0.88);
  color: #1f2937;
}

.omni-scheduled-load-more:hover,
.omni-scheduled-less:hover {
  transform: translateY(-1px);
  box-shadow: none !important;
}

.omni-scheduled-load-more:focus,
.omni-scheduled-load-more:focus-visible,
.omni-scheduled-load-more:active,
.omni-scheduled-less:focus,
.omni-scheduled-less:focus-visible,
.omni-scheduled-less:active {
  box-shadow: none !important;
}

/* Phase 13.4N - footer Generate More Content shadow cleanup */
.fa-footer-actions .btn-primary,
.fa-footer-actions .btn-primary:hover,
.fa-footer-actions .btn-primary:focus,
.fa-footer-actions .btn-primary:focus-visible,
.fa-footer-actions .btn-primary:active {
  box-shadow: none !important;
}
/* Phase 13.4O - output button shape consistency polish */
:root {
  --omni-output-button-radius: 10px;
}

.fa-pill,
.fa-pill--active,
#btnExportPack,
#btnApproveExport,
.omni-scheduled-load-more,
.omni-scheduled-less,
.fa-footer-actions .btn-primary,
.fa-footer-actions .btn-secondary {
  border-radius: var(--omni-output-button-radius) !important;
  box-shadow: none !important;
}

.fa-pill:hover,
.fa-pill:focus,
.fa-pill:focus-visible,
.fa-pill:active,
.fa-pill--active:hover,
.fa-pill--active:focus,
.fa-pill--active:focus-visible,
.fa-pill--active:active,
#btnExportPack:hover,
#btnExportPack:focus,
#btnExportPack:focus-visible,
#btnExportPack:active,
#btnApproveExport:hover,
#btnApproveExport:focus,
#btnApproveExport:focus-visible,
#btnApproveExport:active,
.omni-scheduled-load-more:hover,
.omni-scheduled-less:hover,
.omni-scheduled-load-more:focus,
.omni-scheduled-less:focus,
.omni-scheduled-load-more:focus-visible,
.omni-scheduled-less:focus-visible,
.omni-scheduled-load-more:active,
.omni-scheduled-less:active,
.fa-footer-actions .btn-primary:hover,
.fa-footer-actions .btn-primary:focus,
.fa-footer-actions .btn-primary:focus-visible,
.fa-footer-actions .btn-primary:active,
.fa-footer-actions .btn-secondary:hover,
.fa-footer-actions .btn-secondary:focus,
.fa-footer-actions .btn-secondary:focus-visible,
.fa-footer-actions .btn-secondary:active {
  box-shadow: none !important;
}

.fa-pill:hover,
.fa-pill--active:hover,
#btnExportPack:hover,
#btnApproveExport:hover,
.omni-scheduled-load-more:hover,
.omni-scheduled-less:hover,
.fa-footer-actions .btn-primary:hover,
.fa-footer-actions .btn-secondary:hover {
  transform: translateY(-1px);
}

.omni-scheduled-load-more {
  background: var(--gradient-primary) !important;
  color: #fff !important;
}

.omni-scheduled-less {
  background: rgba(226, 232, 240, 0.88) !important;
  color: #1f2937 !important;
}
/* Phase 13.4Q - scheduled pagination buttons match dashboard Recent Runs */
.omni-scheduled-pagination {
  gap: 12px !important;
  margin-top: 22px !important;
}

.omni-scheduled-load-more {
  min-height: 46px !important;
  padding: 0 26px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(37, 99, 235, 0.72) !important;
  background: linear-gradient(135deg, #2563eb 0%, #6d8cff 100%) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transform: none !important;
  transition: filter 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}

.omni-scheduled-load-more:hover {
  filter: brightness(1.04) saturate(1.04) !important;
  box-shadow: none !important;
  transform: none !important;
}

.omni-scheduled-load-more:focus,
.omni-scheduled-load-more:focus-visible {
  box-shadow: none !important;
  transform: none !important;
}

.omni-scheduled-load-more:active {
  filter: brightness(0.96) !important;
  box-shadow: none !important;
  transform: none !important;
}

.omni-scheduled-less {
  min-height: 46px !important;
  padding: 0 24px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: rgba(51, 65, 85, 0.95) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transform: none !important;
}

.omni-scheduled-less:hover {
  border-color: rgba(148, 163, 184, 0.58) !important;
  background: rgba(248, 250, 252, 0.96) !important;
  box-shadow: none !important;
  transform: none !important;
}

.omni-scheduled-less:focus,
.omni-scheduled-less:focus-visible,
.omni-scheduled-less:active {
  box-shadow: none !important;
  transform: none !important;
}
/* Phase 15 pre-fix - scheduled queue expanded details bottom-edge alignment */
#scheduled-posts-section .scheduled-post-item {
  overflow: hidden !important;
}

#scheduled-posts-section .scheduled-post-details {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 0 6px 6px !important;
}



/* Phase 15A - compact inline scheduled failure reason */
.scheduled-job-error-inline {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 500;
  opacity: 0.9;
}

.scheduled-job-error-inline::before {
  content: "Last error: ";
}


/* Phase 15D UI consistency - Scheduled Queue rectangular action buttons */
#scheduled-posts-section .omni-open-scheduled-post-link,
#scheduled-posts-section .omni-scheduled-details-toggle,
#scheduled-posts-section .omni-requeue-scheduled-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
/* Phase 15D UI consistency - Scheduled Queue and System Status rectangular pills */
#scheduled-posts-section .omni-open-scheduled-post-link,
#scheduled-posts-section .omni-scheduled-details-toggle,
#scheduled-posts-section .scheduled-post-details-toggle,
#scheduled-posts-section .omni-requeue-scheduled-btn,
#scheduled-posts-section .scheduled-post-status-badge,
.omni-visibility-status,
#outputContent .omni-visibility-status {
  border-radius: 6px !important;
}
/* Phase 16A - Scheduled Queue attempts + retry feedback polish */
#scheduled-posts-section .scheduled-post-meta .meta-label {
  white-space: nowrap;
}

#scheduled-posts-section .scheduled-post-meta .meta-item span:last-child {
  color: #475569;
}

#scheduled-posts-section .omni-requeue-scheduled-btn.is-retrying,
#scheduled-posts-section .omni-requeue-scheduled-btn[disabled] {
  opacity: 0.7;
  box-shadow: none;
  cursor: progress;
}
/* Phase 16B - Scheduled Queue attempts context */
#scheduled-posts-section .scheduled-post-attempts-detail {
  border-radius: 6px;
  color: #64748b;
}

#scheduled-posts-section .scheduled-post-attempts-detail.has-attempts,
#scheduled-posts-section .scheduled-post-timeline-row.has-attempts {
  color: #334155;
  font-weight: 600;
}

#scheduled-posts-section .scheduled-post-timeline-row.has-attempts {
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  padding: 4px 8px;
}
/* Phase 16C - output card rectangular pills */
.output-card .approval-state-badge,
.output-card .approval-state-badge--draft,
.output-card .card-insights-toggle,
.output-card .quality-pill,
.output-card .publish-actions .btn,
.output-card .card-actions .btn,
.output-card button[onclick*="publish"],
.output-card button[onclick*="Publish"],
.output-card button[onclick*="schedule"],
.output-card button[onclick*="Schedule"],
.output-card .omni-publish-btn,
.output-card .omni-schedule-btn {
  border-radius: 6px !important;
}
/* Phase 16D - content card hover shadow cleanup */
.output-card .card-insights-toggle:hover,
.output-card .card-insights-toggle:active,
.output-card .publish-actions .btn:active,
.output-card .card-actions .btn:active,
.output-card button[onclick*="publish"]:active,
.output-card button[onclick*="Publish"]:active,
.output-card button[onclick*="schedule"]:active,
.output-card button[onclick*="Schedule"]:active,
.output-card .omni-publish-btn:active,
.output-card .omni-schedule-btn:active {
  box-shadow: none !important;
}

.output-card .card-insights-toggle:hover {
  transform: translateY(-0.5px);
  box-shadow: none !important;
}
/* Phase 16D.2 - scoped publish/schedule copy-btn hover override */
.output-card .omni-publish-btn:hover,
.output-card .omni-schedule-btn:hover,
body.output-new-page .output-card .omni-publish-btn:hover,
body.output-new-page .output-card .omni-schedule-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: none !important;
  filter: brightness(1.02);
}

.output-card .omni-publish-btn:active,
.output-card .omni-schedule-btn:active,
body.output-new-page .output-card .omni-publish-btn:active,
body.output-new-page .output-card .omni-schedule-btn:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Phase 26 - scheduled queue retry visibility */
#scheduled-posts-section .scheduled-queue-notice {
  margin: 12px 0 4px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

#scheduled-posts-section .scheduled-queue-notice--success {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
}

#scheduled-posts-section .scheduled-queue-notice--error {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
}

#scheduled-posts-section .scheduled-job-feedback-inline {
  margin: 8px 22px 0 48px;
  font-size: 0.82rem;
  line-height: 1.45;
}

#scheduled-posts-section .scheduled-job-feedback-inline--error {
  color: #b91c1c;
}

#scheduled-posts-section .scheduled-post-details--failed,
#scheduled-posts-section .scheduled-post-details--error {
  background: rgba(254, 242, 242, 0.76);
  border-color: rgba(239, 68, 68, 0.18);
}


/* Phase 30B.Beta.UX.5b - Scheduled Posts history meta layout guard */
#scheduled-posts-section .scheduled-post-meta-pair:has(.scheduled-post-meta-inline-value--history) {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 92px);
}

#scheduled-posts-section .scheduled-post-meta-pair:not(:has(.scheduled-post-meta-inline-value--history)) {
  flex: 0 0 auto;
}

#scheduled-posts-section .scheduled-post-meta-inline-value--history {
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
