.ops-header-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-eyebrow,
.ops-hero-kicker,
.ops-section-kicker {
  margin: 0;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-page-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.ops-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.ops-action-link--button {
  cursor: pointer;
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 54, 93, 0.1);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 600;
}

.ops-status-pill--muted {
  background: rgba(74, 111, 165, 0.12);
  color: var(--secondary-color);
}

[data-ops-view][hidden] {
  display: none !important;
}

[data-ops-view-link][hidden] {
  display: none !important;
}

.ops-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ops-hero-copy {
  max-width: 760px;
}

.ops-hero-text,
.ops-section-meta {
  margin: 0;
  color: #526173;
}

.ops-window-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eff4fa;
}

.ops-window-button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: #526173;
  font-weight: 600;
  transition: var(--transition);
}

.ops-window-button.is-active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--box-shadow);
}

.ops-window-button:hover {
  color: var(--primary-color);
}

.ops-window-button.is-active:hover {
  color: white;
}

.ops-kpi-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ops-kpi-grid,
.ops-funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.ops-kpi-card,
.ops-funnel-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(26, 54, 93, 0.08);
  box-shadow: var(--box-shadow);
}

.ops-kpi-label,
.ops-funnel-label,
.ops-funnel-meta {
  margin: 0;
  color: #6a7b8e;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-kpi-value,
.ops-funnel-value {
  margin: 8px 0 0;
  color: var(--primary-color);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.ops-kpi-footnote,
.ops-funnel-rate {
  margin: 10px 0 0;
  color: #526173;
  font-size: 0.85rem;
}

.ops-panel-heading {
  margin-bottom: 12px;
}

.ops-panel-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.ops-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ops-chart-shell {
  min-height: 340px;
}

.ops-chart-shell--compact {
  margin-top: 24px;
  min-height: 280px;
}

.ops-two-column,
.ops-three-column {
  display: grid;
  gap: 20px;
}

.ops-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-table-shell {
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ops-table th,
.ops-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(26, 54, 93, 0.08);
  vertical-align: top;
}

.ops-table th {
  color: #6a7b8e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-table td {
  color: #314152;
}

.ops-table-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 111, 165, 0.12);
  color: var(--secondary-color);
  font-size: 0.76rem;
  font-weight: 700;
}

.ops-table-badge--severity-critical,
.ops-table-badge--email-failed {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.ops-table-badge--email-lifecycle-bounced,
.ops-table-badge--email-lifecycle-complained {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.ops-table-badge--severity-error {
  background: rgba(234, 88, 12, 0.14);
  color: #c2410c;
}

.ops-table-badge--email-lifecycle-failed,
.ops-table-badge--email-lifecycle-delivery_delayed,
.ops-table-badge--email-lifecycle-suppressed {
  background: rgba(234, 88, 12, 0.14);
  color: #c2410c;
}

.ops-table-badge--severity-warning,
.ops-table-badge--email-skipped {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ops-table-badge--email-lifecycle-skipped,
.ops-table-badge--email-lifecycle-scheduled,
.ops-table-badge--email-lifecycle-unknown {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ops-table-badge--severity-info,
.ops-table-badge--email-sent {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.ops-table-badge--email-lifecycle-sent,
.ops-table-badge--email-lifecycle-delivered,
.ops-table-badge--email-lifecycle-opened,
.ops-table-badge--email-lifecycle-clicked,
.ops-table-badge--email-lifecycle-received {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.ops-empty-state {
  padding: 28px 18px;
  border: 1px dashed rgba(26, 54, 93, 0.15);
  border-radius: 14px;
  color: #526173;
  text-align: center;
}

.ops-inline-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ops-metric-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
}

.ops-metric-dot--success {
  background: #10b981;
}

.ops-metric-dot--warning {
  background: #f59e0b;
}

.ops-kpi-grid--pipeline {
  margin-bottom: 24px;
}

.ops-scope-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ops-scope-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eff4fa;
  flex-wrap: wrap;
}

.ops-scope-button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: #526173;
  font-weight: 700;
}

.ops-scope-button.is-active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--box-shadow);
}

.ops-scope-button[hidden] {
  display: none;
}

.content-section--nested {
  padding: 20px;
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-filter-grid,
.ops-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ops-filter-grid {
  margin-bottom: 24px;
}

.ops-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-filter-field span {
  color: #526173;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-filter-field select,
.ops-filter-field input,
.ops-filter-field textarea {
  width: 100%;
  border: 1px solid rgba(26, 54, 93, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: #243241;
}

.ops-filter-field textarea {
  resize: vertical;
  min-height: 96px;
}

.ops-filter-field--full {
  grid-column: 1 / -1;
}

.ops-filter-actions,
.ops-drawer-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ops-action-button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  transition: var(--transition);
}

.ops-action-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.ops-action-button--secondary {
  background: rgba(26, 54, 93, 0.1);
  color: var(--primary-color);
}

.ops-action-button--danger {
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
}

.ops-action-button--danger:hover {
  box-shadow: 0 18px 36px rgba(153, 27, 27, 0.16);
}

.ops-action-button:disabled,
.ops-action-link--button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ops-three-column--pipeline {
  align-items: stretch;
}

.ops-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.ops-queue-card {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9ed 0%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.ops-queue-label {
  margin: 0;
  color: #7f5c1d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-queue-value {
  margin: 10px 0 0;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.ops-table-button {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary-color);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.ops-table-button:hover {
  text-decoration: underline;
}

.ops-table-badge--status,
.ops-table-badge--priority,
.ops-table-badge--overdue {
  margin-right: 6px;
}

.ops-table-badge--priority {
  background: rgba(16, 185, 129, 0.12);
  color: #0a7a57;
}

.ops-table-badge--overdue {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.ops-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 29, 41, 0.45);
  backdrop-filter: blur(3px);
  z-index: 90;
}

.ops-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: min(520px, 100vw);
  height: 100vh;
  background: #f7f9fc;
  box-shadow: -24px 0 64px rgba(19, 29, 41, 0.2);
  z-index: 100;
  transition: right 220ms ease;
  display: flex;
  flex-direction: column;
}

.ops-drawer.is-open {
  right: 0;
}

.ops-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(26, 54, 93, 0.08);
  background: white;
}

.ops-drawer-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary-color);
}

.ops-drawer-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ops-drawer-block {
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-summary-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8fc;
}

.ops-summary-card strong,
.ops-activity-item strong {
  display: block;
  color: var(--primary-color);
}

.ops-summary-card span,
.ops-activity-meta {
  color: #66788d;
  font-size: 0.85rem;
}

.ops-note-form {
  margin-bottom: 18px;
}

.ops-two-column--ops-users {
  align-items: stretch;
}

.ops-detail-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-invite-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-copy-field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ops-copy-field input {
  flex: 1 1 260px;
  border: 1px solid rgba(26, 54, 93, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: #243241;
}

.ops-copy-note {
  margin: 10px 0 0;
  color: #526173;
  font-size: 0.88rem;
}

.ops-inline-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #0b7b57;
  font-size: 0.76rem;
  font-weight: 700;
}

.ops-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-activity-item {
  padding: 14px;
  border-radius: 12px;
  background: #f5f8fc;
}

.ops-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8fc 0%, #edf3fa 100%);
}

.ops-auth-card {
  width: min(480px, 100%);
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 54, 93, 0.08);
  box-shadow: 0 24px 72px rgba(26, 54, 93, 0.14);
}

.ops-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ops-auth-brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.ops-auth-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.9rem;
}

.ops-auth-copy {
  margin: 0 0 24px;
  color: #526173;
}

.ops-auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ops-auth-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.ops-auth-feedback {
  margin-top: 14px;
  min-height: 20px;
  color: #526173;
}

.ops-auth-feedback.is-error {
  color: #b91c1c;
}

.ops-auth-feedback.is-success {
  color: #0a7a57;
}

.ops-two-column--rag {
  align-items: stretch;
}

.ops-rag-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-rag-meta-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8fc;
}

.ops-rag-meta-card strong {
  display: block;
  color: var(--primary-color);
}

.ops-rag-meta-card span {
  color: #66788d;
  font-size: 0.85rem;
}

.ops-rag-doc-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ops-rag-doc-subtitle {
  color: #66788d;
  font-size: 0.84rem;
}

.ops-rag-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-rag-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary-color);
  font-size: 0.76rem;
  font-weight: 600;
}

.ops-table-badge--rag-active {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.ops-table-badge--rag-paused {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ops-table-badge--rag-archived {
  background: rgba(71, 85, 105, 0.16);
  color: #334155;
}

.ops-table-button.is-selected {
  text-decoration: underline;
}

.ops-upload-note {
  margin: 0;
  color: #66788d;
  font-size: 0.86rem;
}

.ops-filter-field--wide {
  grid-column: span 2;
}

.ops-two-column--chat {
  align-items: start;
}

.ops-chat-preview {
  margin-top: 6px;
  color: #526173;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ops-chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-chat-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 111, 165, 0.12);
  color: var(--secondary-color);
  font-size: 0.74rem;
  font-weight: 700;
}

.ops-chat-visitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ops-chat-visitor-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8fc;
}

.ops-chat-visitor-grid span {
  color: #66788d;
  font-size: 0.8rem;
}

.ops-chat-visitor-grid strong {
  color: var(--primary-color);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.ops-chat-message-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ops-chat-message {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 54, 93, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  box-shadow: var(--box-shadow);
}

.ops-chat-message--assistant {
  border-color: rgba(16, 185, 129, 0.18);
}

.ops-chat-message--user {
  border-color: rgba(74, 111, 165, 0.18);
}

.ops-chat-message--system {
  border-color: rgba(245, 158, 11, 0.18);
}

.ops-chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: #66788d;
  font-size: 0.8rem;
}

.ops-chat-message-meta strong {
  color: var(--primary-color);
}

.ops-chat-message-body {
  color: #314152;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ops-rag-preview-block {
  margin-top: 16px;
}

.ops-section-meta--stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.ops-two-column--publications {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.ops-publication-catalog-shell,
.ops-publication-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ops-section-meta--editorial {
  margin-bottom: 18px;
}

.ops-richtext-field {
  gap: 10px;
}

.ops-richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-richtext-toolbar button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(26, 54, 93, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--primary-color);
  transition: var(--transition);
}

.ops-richtext-toolbar button:hover {
  background: rgba(74, 111, 165, 0.08);
}

.ops-richtext-editor {
  min-height: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 54, 93, 0.1);
  background: #fff;
  color: #314152;
  line-height: 1.7;
}

.ops-richtext-editor--body {
  min-height: 260px;
}

.ops-richtext-editor:focus {
  outline: none;
  border-color: rgba(74, 111, 165, 0.55);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.12);
}

.ops-two-column--publication-assets,
.ops-two-column--news-assets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.ops-asset-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-asset-card--publication-editor,
.ops-asset-card--news-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ops-asset-card--publication-ai,
.ops-asset-card--news-ai {
  margin-top: 18px;
}

.ops-publication-editor-ai,
.ops-news-editor-ai {
  padding-top: 18px;
  border-top: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-asset-card--publication-branding,
.ops-asset-card--news-branding {
  margin-top: 18px;
}

.ops-publication-ai-preview,
.ops-news-ai-preview {
  display: grid;
  gap: 10px;
}

.ops-asset-card textarea {
  min-height: 120px;
}

.ops-asset-preview {
  margin-top: 14px;
}

.ops-asset-preview-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(26, 54, 93, 0.05);
}

.ops-asset-preview-card--stack {
  align-items: flex-start;
}

.ops-asset-preview-image {
  width: 112px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-asset-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(74, 111, 165, 0.16);
  color: var(--primary-color);
  font-size: 1.4rem;
}

.ops-asset-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #526173;
}

.ops-asset-preview-meta strong,
.ops-asset-preview-meta a {
  color: var(--primary-color);
}

.ops-two-column--publication-branding,
.ops-two-column--news-branding {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 12px;
  align-items: start;
}

.ops-two-column--cookies {
  align-items: start;
}

.ops-two-column--cookies-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-cookie-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ops-cookie-provider-card {
  border: 1px solid rgba(16, 40, 70, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.ops-cookie-provider-label {
  display: block;
  margin-bottom: 6px;
  color: #6b7a8c;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-cookie-provider-value {
  display: block;
  color: #102846;
  font-size: 0.96rem;
  word-break: break-word;
}

.ops-branding-preview-shell {
  padding: 16px;
  border-radius: 18px;
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-logo-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ops-logo-library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(26, 54, 93, 0.1);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: var(--transition);
}

.ops-logo-library-item:hover {
  border-color: rgba(74, 111, 165, 0.32);
  box-shadow: 0 18px 38px rgba(26, 54, 93, 0.12);
}

.ops-logo-library-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-logo-library-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ops-logo-library-meta strong,
.ops-logo-library-meta span {
  color: #314152;
}

.ops-logo-composer-preview {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(226, 232, 240, 0.85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 232, 240, 0.85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, 0.85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, 0.85) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.ops-logo-composer-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.ops-logo-composer-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

.ops-logo-composer-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

.ops-logo-composer-overlay {
  position: absolute;
  pointer-events: none;
  transform-origin: top left;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.18));
}

.ops-logo-composer-empty {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #526173;
  text-align: center;
}

.ops-logo-layer-shell {
  margin-top: 18px;
}

.ops-logo-layer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ops-logo-layer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26, 54, 93, 0.1);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: var(--transition);
}

.ops-logo-layer-item:hover,
.ops-logo-layer-item.is-selected {
  border-color: rgba(74, 111, 165, 0.32);
  box-shadow: 0 18px 38px rgba(26, 54, 93, 0.12);
}

.ops-logo-layer-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-logo-layer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ops-logo-layer-meta strong,
.ops-logo-layer-meta span {
  color: #314152;
}

.ops-logo-controls {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.ops-drawer-actions--publication-compose,
.ops-drawer-actions--news-compose {
  margin-top: 18px;
}

.ops-logo-controls small {
  color: #526173;
  font-weight: 600;
}

.ops-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-table-badge--publication-draft {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.ops-table-badge--publication-published {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.ops-table-badge--publication-archived {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.ops-table-badge--cookie-success {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
}

.ops-table-badge--cookie-warning {
  background: rgba(202, 138, 4, 0.16);
  color: #a16207;
}

.ops-table-badge--cookie-default {
  background: rgba(26, 54, 93, 0.12);
  color: var(--primary-color);
}

@media (max-width: 1200px) {
  .ops-kpi-columns,
  .ops-two-column,
  .ops-three-column {
    grid-template-columns: 1fr;
  }

  .ops-filter-grid,
  .ops-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .ops-hero,
  .ops-section-header {
    flex-direction: column;
  }

  .ops-header-actions {
    justify-content: flex-start;
  }

  .ops-window-switch {
    width: 100%;
    justify-content: space-between;
  }

  .ops-window-button {
    flex: 1;
  }

  .ops-filter-field--wide {
    grid-column: span 1;
  }

  .ops-filter-grid,
  .ops-detail-grid,
  .ops-summary-grid,
  .ops-rag-meta,
  .ops-chat-visitor-grid {
    grid-template-columns: 1fr;
  }

  .ops-section-meta--stack {
    align-items: flex-start;
  }

  .ops-two-column--publication-assets,
  .ops-two-column--news-assets,
  .ops-two-column--cookies-inner {
    grid-template-columns: 1fr;
  }

  .ops-cookie-provider-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ops-drawer {
    width: 100vw;
  }
}
