.app-container {
  display: block;
  min-height: 100dvh;
  position: relative;
  overflow-x: clip;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1040;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
}

.app-sidebar.collapsed {
  transform: translateX(100%);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
  display: block;
}

.app-main {
  margin-right: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  width: auto;
  max-width: 100%;
  transition: margin-right 0.3s ease;
  overflow-x: clip;
}

body.sidebar-collapsed .app-main {
  margin-right: 0;
}

.app-header {
  height: var(--header-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 990;
  gap: 10px;
}

.app-content {
  position: relative;
  padding: 1rem;
  flex-grow: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html.is-page-loading,
html.is-page-loading body {
  cursor: progress;
}

html.is-page-loading .app-sidebar,
html.is-page-loading .app-header {
  pointer-events: none;
  user-select: none;
}

html.is-page-loading .app-sidebar {
  opacity: 0.92;
}

.page-skeleton-layer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 40;
  padding: 1rem;
  overflow: auto;
  background: var(--bg-main, #fff);
}

html.is-page-loading .page-skeleton-layer {
  display: block;
}

.page-skeleton {
  max-width: 1100px;
}

.page-skeleton .sk-line,
.page-skeleton .sk-card,
.page-skeleton .sk-panel {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.32) 45%, rgba(148, 163, 184, 0.18) 100%);
  background-size: 220% 100%;
  animation: pageSkeletonShimmer 1.15s ease-in-out infinite;
  border-radius: 10px;
}

.page-skeleton .sk-line {
  height: 14px;
  margin-bottom: 10px;
}

.page-skeleton .sk-w-40 { width: 40%; height: 22px; }
.page-skeleton .sk-w-24 { width: 24%; height: 12px; margin-bottom: 1.25rem; }
.page-skeleton .sk-w-60 { width: 60%; }

.page-skeleton-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.page-skeleton .sk-card {
  height: 88px;
}

.page-skeleton .sk-panel {
  height: 140px;
  margin-bottom: 12px;
}

.page-skeleton .sk-panel-lg {
  height: 220px;
}

@keyframes pageSkeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
  .page-skeleton-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-skeleton .sk-line,
  .page-skeleton .sk-card,
  .page-skeleton .sk-panel {
    animation: none;
  }
}

.app-content.is-view-leaving {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.app-content.is-view-entering {
  opacity: 1;
  transform: none;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-brand {
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sidebar-brand-text .brand-name {
  font-size: var(--font-base);
  font-weight: bold;
  margin-bottom: 10px;
}

.sidebar-brand-text .brand-sub {
  font-size: var(--font-description);
  font-weight: 500;
  color: var(--sidebar-muted);
}

.sidebar-brand .brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-sidebar-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  padding: 5px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-sidebar-close:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-menu {
  padding: 0.50rem 8px 1rem;
  list-style: none;
  margin: 0;
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.app-sidebar,
.app-sidebar *,
.sidebar-menu {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar-menu::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar,
.app-sidebar *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

.menu-category {
  font-size: var(--font-description);
  color: var(--sidebar-muted);
  font-weight: 700;
  padding: 10px 10px 4px;
}

.sidebar-item {
  margin-bottom: 10px;
}

.sidebar-group {
  margin-bottom: 10px;
}

.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.50rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #e2e8f0;
  font-weight: 700;
  font-size: var(--font-base);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-group-toggle:hover {
  color: #fff;
}

.sidebar-group.has-active > .sidebar-group-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-group-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sidebar-group-label i {
  font-size: 18px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  margin-left: 10px;
}

.sidebar-group-chevron {
  font-size: 18px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-group.open > .sidebar-group-toggle .sidebar-group-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  margin: 0 0.85rem 0 0;
  padding: 0 0 0 0.35rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    transform 0.28s ease,
    margin 0.28s ease,
    padding 0.28s ease;
}

.sidebar-group.open > .sidebar-submenu {
  max-height: 28rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 4px;
  padding: 4px 0 4px 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-submenu,
  .sidebar-group-chevron {
    transition: none;
  }
}

.sidebar-submenu .sidebar-link {
  padding: 0.50rem 0.50rem;
  font-size: var(--font-base);
  color: #cbd5e1;
}

.sidebar-submenu .sidebar-link i {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  margin-left: 8px;
}

.sidebar-submenu .sidebar-link.active {
  color: #fff;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--font-base);
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  color: #fff;
  background: var(--sidebar-hover);
}

.sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 25px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.sidebar-link i {
  font-size: 18px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  margin-left: 10px;
}

.btn-icon-header {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-size: 18px;
}

.btn-icon-header:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

a.btn-icon-header {
  text-decoration: none;
}

.notif-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: var(--font-description);
  font-weight: 700;
  border-radius: 50rem;
  background: var(--danger);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-badge:empty,
.notif-badge.hidden {
  display: none;
}

.user-menu {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 4px 8px 4px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  transition: background 0.2s ease;
}

.user-menu:hover .user-chip,
.user-chip:hover,
.user-chip:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.user-chip img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-soft);
}

.user-menu-caret {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.user-menu:hover .user-menu-caret {
  transform: rotate(180deg);
  color: var(--navy);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.4rem;
  margin-top: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  z-index: 1200;
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
  animation: dropIn 0.18s ease forwards;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-size: var(--font-base);
  font-weight: 600;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item i {
  font-size: 18px;
  color: var(--text-muted);
}

.user-dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--navy);
}

.user-dropdown-item:hover i {
  color: var(--navy);
}

.user-dropdown-item.is-danger {
  color: var(--danger);
}

.user-dropdown-item.is-danger i {
  color: var(--danger);
}

.user-dropdown-item.is-danger:hover {
  background: rgba(244, 63, 94, 0.08);
  color: var(--danger);
}

.user-dropdown-divider {
  height: 1px;
  margin: 0.3rem 0.4rem;
  background: var(--border-color);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, 92vw);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  z-index: 1100;
  display: none;
  overflow: hidden;
}

.notif-dropdown.show {
  display: block;
  animation: dropIn 0.3s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-dropdown-header {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-soft);
}

.notif-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 10px;
}

.notif-item:hover {
  background: var(--primary-soft);
}

.notif-item.unread {
  background: white;
}

.notif-item-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--grad-icon);
  color: #fff;
  font-size: 18px;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-description);
}

.custom-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.badge-status {
  padding: 0.35em 0.75em;
  font-size: var(--font-description);
  font-weight: 600;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-published {
  background: #c8edd8;
  color: #145a3a;
}

.badge-draft {
  background: #ffe89a;
  color: #7a5c00;
}

.badge-generating {
  background: #ffd09a;
  color: #8a4500;
}

.badge-review {
  background: #ffc4a8;
  color: #8f3200;
}

.badge-approved {
  background: #d9f2e3;
  color: #146c43;
}

.badge-rejected {
  background: #f5b8c0;
  color: #8a1f30;
}

.btn-ai,
.btn-primary {
  background: var(--grad-primary);
  color: white;
  border: none;
  font-weight: 500;
}

.btn-ai:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #0d2340 0%, #143f66 100%);
  color: white;
}

.ai-field-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.ai-field-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.ai-field-row--textarea {
  align-items: flex-start;
}

.btn-ai-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.btn-ai-icon:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-ai-icon:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(16, 43, 78, 0.18);
}

.metric-score-box {
  background: linear-gradient(160deg, #f8fafc, #f0f9ff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.terminal-logs {
  background: #0b1220;
  color: #38bdf8;
  font-family: Consolas, "Courier New", monospace;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-description);
  max-height: 200px;
  overflow-y: auto;
  direction: ltr;
  text-align: left;
}

.view-section {
  display: block;
  animation: viewFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view-section.active-view {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .app-content,
  .view-section.active-view {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

65% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.filter-block-label {
  font-size: var(--font-description);
  font-weight: 700;
  color: var(--text-muted);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-filter {
  appearance: none;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  border-radius: 50rem;
  padding: 0.4rem 0.85rem;
  font-size: var(--font-description);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tag-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.tag-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 43, 78, 0.22);
}

[data-theme="dark"] .tag-filter {
  background: var(--card-bg);
}

[data-theme="dark"] .tag-filter.is-active {
  color: #fff;
}

.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  font-size: var(--font-base);
  padding: 0.3rem 1.15rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active.fw-bold {
  color: #fff !important;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(16, 43, 78, 0.25);
}

.nav-tabs .nav-link.text-muted:not(.active) {
  color: var(--text-muted) !important;
}

.table th {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text-muted);
}

.table td {
  font-size: var(--font-base);
  vertical-align: middle;
}

.page-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: var(--font-description);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .app-sidebar,
  .app-sidebar.collapsed {
    transform: translateX(100%);
  }

  .app-sidebar.open {
    transform: translateX(0) !important;
  }

  .app-main,
  body.sidebar-collapsed .app-main {
    margin-right: 0;
  }

  .app-content {
    padding: 1rem;
  }
}

.keyword-input-row {
  display: flex;
  gap: 10px;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
  padding: 0.50rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0.7rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50rem;
  font-size: var(--font-description);
  color: var(--primary);
  position: relative;
}

.keyword-chip .chip-remove {
  display: none;
  border: none;
  background: transparent;
  color: var(--danger);
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
}

.keyword-chip:hover .chip-remove {
  display: inline-flex;
}

[data-theme="dark"] .btn-icon-header {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .table {
  color: var(--text-main);
}

[data-theme="dark"] .table-light {
  --bs-table-bg: #1a2332;
  color: var(--text-main);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .modal-content {
  background: var(--card-bg);
  color: var(--text-main);
  border-color: var(--border-color);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.75rem 1.25rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  width: 100%;
}

.empty-state-image {
  width: min(180px, 55%);
  max-width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
}

.empty-state-text {
  margin: 0;
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text-muted);
}

.empty-state--compact {
  padding: 1.5rem 1rem;
  border-style: dashed;
}

.empty-state--compact .empty-state-image {
  width: min(120px, 50%);
  max-width: 120px;
}

.empty-state--compact .empty-state-text {
  font-size: var(--font-description);
}

.form-label,
.label-sm {
  font-size: var(--font-base);
  font-weight: bold;
}

.form-label.fw-bold,
.label-sm.fw-bold {
  font-weight: 700;
}

.user-name {
  font-size: var(--font-base);
  font-weight: 700;
}

.user-role {
  font-size: var(--font-description);
  color: var(--text-muted);
}

.section-caption {
  font-size: var(--font-description);
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-link-action {
  padding: 0;
  text-decoration: none;
  font-size: var(--font-description);
}

.app-main .btn,
.modal .btn,
.view-section .btn {
  padding: 10px 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--font-base);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.app-main .btn.px-2,
.modal .btn.px-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.app-main .btn.py-2,
.modal .btn.py-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.app-main .btn-group-sm > .btn {
  min-height: 35px;
  padding: 10px 10px;
}

.badge-flow {
  background: #ece4f7;
  color: #4e3578;
}

.badge-flow-request {
  background: #e8e4f2;
  color: #42386a;
}

.badge-flow-production {
  background: #d9d0f5;
  color: #3f2f8a;  
}

.badge-flow-approval {
  background: #f0daf8;
  color: #6d2f86;
}

.badge-flow-review {
  background: #ffe4cf;
  color: #8f4b16;
}

.badge-flow-published {
  background: #ddd6f7;
  color: #372f7a;
}

.badge-flow-rejected {
  background: #ead0ef;
  color: #6a2a6e;
}

.badge-channel-website {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.badge-channel-instagram {
  background: #f3c2dc;
  color: #8e2558;
  border: 1px solid #d97eaa;
}

.badge-channel-linkedin {
  background: #a8ccec;
  color: #0a4a78;
  border: 1px solid #5a9ed0;
}

.input-group-text i {
  font-size: 18px;
}

.ck-blurred {
  text-align: right !important;
  direction: rtl !important;
  font-size: var(--font-base) !important;
  font-family: "Kahroba" !important;
}

form.modal.small-modal {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex !important;
  width: min(440px, 100%);
  max-width: 440px;
  height: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(16, 43, 78, 0.22);
  padding: 1.15rem 1.2rem 1.1rem;
  flex-direction: column;
  gap: 0.85rem;
  overflow: visible;
  z-index: 1;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

form.modal.small-modal .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

form.modal.small-modal .eyebrow {
  margin: 0 0 0.25rem;
  font-size: var(--font-description);
  font-weight: 700;
  color: var(--secondary-hover, #e0b300);
}

form.modal.small-modal .modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
}

form.modal.small-modal > p {
  margin: 0;
  font-size: var(--font-description);
  color: var(--text-main);
  line-height: 1.85;
}

form.modal.small-modal label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--font-description);
  font-weight: 700;
  color: var(--text-main);
}

form.modal.small-modal textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: var(--font-description);
  font-family: inherit;
  line-height: 1.8;
  color: var(--text-main);
  background: #fff;
}

form.modal.small-modal textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 43, 78, 0.12);
}

form.modal.small-modal .modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

form.modal.small-modal .modal-actions button {
  appearance: none;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 0.55rem 14px;
  font-size: var(--font-description);
  font-weight: 700;
  cursor: pointer;
}

form.modal.small-modal .modal-actions button.primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

form.modal.small-modal .modal-actions button.primary:hover {
  filter: brightness(0.96);
}

small,
.small,
.form-text,
.page-subtitle,
.text-xs,
.muted-desc,
[class$="-desc"],
[class*="-desc "],
[class$="-meta"],
[class*="-meta "] {
  font-size: var(--font-description) !important;
}