/* SOFL premium notification experience */
.sofl-notification-page,
.sofl-notification-admin-page {
  display: grid;
  gap: 22px;
  color: var(--sofl-text);
}

.sofl-notification-page a,
.sofl-notification-admin-page a {
  text-decoration: none;
}

.sofl-notification-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-notification-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-notification-hero::before,
.sofl-notification-admin-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(212, 168, 67, .13), transparent 34%), radial-gradient(circle at 92% 12%, rgba(15, 23, 42, .07), transparent 28%);
}

.sofl-notification-hero > *,
.sofl-notification-admin-header > * {
  position: relative;
  z-index: 1;
}

.sofl-notification-hero h1,
.sofl-notification-admin-header h2 {
  margin: 8px 0 10px;
  color: var(--sofl-dark);
  font-weight: 900;
  line-height: 1.08;
}

.sofl-notification-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.sofl-notification-admin-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.sofl-notification-hero p,
.sofl-notification-admin-header p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-notification-hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
}

.sofl-notification-hero-panel span {
  color: var(--sofl-dark);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.sofl-notification-hero-panel strong {
  color: var(--sofl-muted);
  font-size: .92rem;
}

.sofl-important-strip {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-left: 4px solid var(--sofl-gold);
  border-radius: 16px;
  background: linear-gradient(90deg, var(--sofl-gold-wash), #fff);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-important-strip > div:first-child,
.sofl-template-preview-head,
.sofl-variable-helper-head,
.sofl-table-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sofl-important-strip > div:first-child > span,
.sofl-template-preview-head > span,
.sofl-variable-helper-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
}

.sofl-important-strip strong,
.sofl-template-preview-head strong,
.sofl-variable-helper-head strong,
.sofl-table-card-head strong {
  display: block;
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-important-strip small,
.sofl-template-preview-head small,
.sofl-variable-helper-head small {
  display: block;
  color: var(--sofl-muted);
}

.sofl-important-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sofl-important-strip-items a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: 999px;
  background: #fff;
  color: var(--sofl-dark);
  font-size: .84rem;
  font-weight: 800;
}

.sofl-notification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-notification-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  align-items: stretch;
}

.sofl-notification-filters a i {
  margin-right: 7px;
}

.sofl-notification-search {
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-notification-filters a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--sofl-muted);
  font-size: .86rem;
  font-weight: 820;
  transition: background var(--sofl-transition), color var(--sofl-transition), border-color var(--sofl-transition), transform var(--sofl-transition);
}

.sofl-notification-filters a:hover,
.sofl-notification-filters a.active {
  border-color: rgba(212, 168, 67, .42);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  transform: translateY(-1px);
}

.sofl-notification-list {
  display: grid;
  gap: 14px;
}

.sofl-notification-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition), background var(--sofl-transition);
  cursor: pointer;
}

.sofl-notification-card:hover {
  border-color: rgba(212, 168, 67, .44);
  box-shadow: var(--sofl-shadow);
  transform: translateY(-2px);
}

.sofl-notification-unread {
  border-left: 4px solid var(--sofl-dark);
}

.sofl-notification-important {
  border-color: rgba(212, 168, 67, .42);
  border-left: 4px solid var(--sofl-gold);
  background: linear-gradient(90deg, rgba(255, 248, 231, .82), #fff 46%);
}

.sofl-notification-card-icon,
.sofl-notification-detail-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f8fafc;
  color: var(--sofl-dark);
}

.sofl-notification-important .sofl-notification-card-icon,
.sofl-notification-detail-panel.is-important .sofl-notification-detail-icon {
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-notification-card-body {
  min-width: 0;
}

.sofl-notification-card-top,
.sofl-notification-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sofl-notification-title {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sofl-dark);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
}

.sofl-notification-title:hover {
  color: #8a6518;
}

.sofl-notification-card p {
  margin: 10px 0 12px;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.sofl-notification-category,
.sofl-notification-priority,
.sofl-notification-unread-dot,
.sofl-channel-badge,
.sofl-delivery-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
}

.sofl-notification-category {
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  color: var(--sofl-dark);
}

.sofl-notification-priority.is-normal {
  background: #eef2ff;
  color: #3730a3;
}

.sofl-notification-priority.is-high {
  background: var(--sofl-gold-wash);
  color: #8a6518;
}

.sofl-notification-priority.is-low {
  background: #ecfdf5;
  color: #047857;
}

.sofl-notification-unread-dot {
  background: var(--sofl-dark);
  color: #fff;
}

.sofl-notification-meta > span:not(.sofl-notification-category):not(.sofl-notification-priority):not(.sofl-notification-unread-dot):not(.sofl-channel-badge) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 760;
}

.sofl-notification-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sofl-icon-btn-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
}

.sofl-danger-action:hover {
  border-color: rgba(239, 68, 68, .28);
  background: #fef2f2;
  color: var(--sofl-danger);
}

.sofl-notification-card-footer {
  align-items: center;
  color: var(--sofl-muted);
  font-size: .82rem;
  font-weight: 760;
  flex-wrap: wrap;
}

.sofl-link-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a6518;
  font-weight: 850;
}

.sofl-link-action:hover {
  color: var(--sofl-dark);
}

.sofl-notification-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 18px;
  border: 1px dashed rgba(107, 114, 128, .30);
  border-radius: 16px;
  background: #fff;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-notification-empty.is-compact {
  border: 0;
  border-top: 1px solid var(--sofl-border);
  border-radius: 0;
}

.sofl-notification-empty span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
  font-size: 1.35rem;
}

.sofl-notification-empty h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.sofl-notification-empty p {
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}

.sofl-notification-detail {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--sofl-shadow);
}

.sofl-notification-detail.is-important {
  border: 1px solid rgba(212, 168, 67, .36);
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
}

.sofl-notification-detail .modal-header,
.sofl-notification-detail .modal-footer {
  border-color: var(--sofl-border);
}

.sofl-notification-detail .modal-title {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-important-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #8a6518;
  font-weight: 850;
}

.sofl-notification-detail-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.sofl-notification-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.sofl-notification-detail-list dt,
.sofl-notification-detail-list dd {
  margin: 0;
}

.sofl-notification-detail-list dt {
  color: var(--sofl-muted);
}

.sofl-notification-detail-list dd {
  color: var(--sofl-dark);
  font-weight: 800;
}

.sofl-notification-dropdown {
  position: relative;
}

.sofl-notification-bell {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 14px;
  background: #fff;
  color: var(--sofl-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), background var(--sofl-transition);
}

.sofl-notification-bell:hover,
.sofl-notification-bell[aria-expanded="true"] {
  border-color: rgba(212, 168, 67, .48);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  transform: translateY(-1px);
}

.sofl-notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sofl-gold);
  color: #1f1707;
  font-size: .68rem;
  font-weight: 900;
}

.sofl-notification-dropdown .dropdown-menu {
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  margin-top: 12px !important;
  padding: 0;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 18px;
  box-shadow: var(--sofl-shadow);
  animation: soflDropdownIn 150ms ease;
}

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

.sofl-notification-dropdown-head,
.sofl-notification-dropdown-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
}

.sofl-notification-dropdown-head {
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-notification-dropdown-head strong {
  display: block;
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-notification-dropdown-head span {
  color: var(--sofl-muted);
  font-size: .8rem;
}

.sofl-notification-dropdown-head button,
.sofl-notification-dropdown-foot a {
  border: 0;
  background: transparent;
  color: #8a6518;
  font-size: .82rem;
  font-weight: 850;
}

.sofl-notification-dropdown-list {
  max-height: 360px;
  overflow: auto;
  background: #fff;
}

.sofl-notification-dropdown-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--sofl-text);
}

.sofl-notification-dropdown-item:hover,
.sofl-notification-dropdown-item.is-unread {
  background: #f8fafc;
  color: var(--sofl-text);
}

.sofl-notification-dropdown-item.is-important {
  background: var(--sofl-gold-wash);
}

.sofl-notification-dropdown-item > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--sofl-gold-deep);
}

.sofl-notification-dropdown-item strong,
.sofl-notification-dropdown-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sofl-notification-dropdown-item strong {
  color: var(--sofl-dark);
  font-size: .9rem;
  font-weight: 900;
  white-space: nowrap;
}

.sofl-notification-dropdown-title,
.sofl-notification-dropdown-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sofl-notification-dropdown-title i {
  color: var(--sofl-gold-deep);
  font-size: .72rem;
}

.sofl-notification-dropdown-meta {
  margin-top: 8px;
}

.sofl-notification-dropdown-meta em {
  color: var(--sofl-muted);
  font-size: .75rem;
  font-style: normal;
  font-weight: 800;
}

.sofl-notification-dropdown-item small {
  color: var(--sofl-muted);
  font-size: .8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sofl-notification-dropdown-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 18px;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-notification-dropdown-empty i {
  color: var(--sofl-gold-deep);
  font-size: 1.35rem;
}

.sofl-notification-dropdown-empty strong {
  color: var(--sofl-dark);
}

.sofl-notification-admin-header {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-notification-admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sofl-shadow-soft);
}

.sofl-admin-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sofl-notification-admin-filters label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.sofl-notification-admin-filters label span {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
}

.sofl-notification-admin-filters input,
.sofl-notification-admin-filters select,
.sofl-search-field input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sofl-dark);
  font-weight: 720;
}

.sofl-notification-admin-filters input,
.sofl-notification-admin-filters select {
  padding: 0 12px;
}

.sofl-search-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #fff;
}

.sofl-search-field i {
  color: var(--sofl-muted);
}

.sofl-search-field input {
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
}

.sofl-table-card,
.sofl-notification-detail-panel,
.sofl-notification-template-preview,
.sofl-variable-helper {
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-table-card {
  overflow: hidden;
}

.sofl-table-card-head {
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-table-card table th {
  padding: 14px 16px;
  color: var(--sofl-muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  background: #f8fafc;
}

.sofl-table-card table td {
  padding: 16px;
  border-color: #edf1f5;
}

.sofl-table-card tbody tr {
  transition: background var(--sofl-transition);
}

.sofl-table-card tbody tr:hover {
  background: #f8fafc;
}

.sofl-table-card tbody tr.is-important-row {
  box-shadow: inset 4px 0 0 var(--sofl-gold);
  background: rgba(255, 248, 231, .56);
}

.sofl-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-table-title i {
  color: var(--sofl-gold-deep);
}

.sofl-status-pill.is-warning {
  color: #8a6518;
  background: var(--sofl-gold-wash);
}

.sofl-notification-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 22px;
  align-items: start;
}

.sofl-toggle-row,
.sofl-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), background var(--sofl-transition);
}

.sofl-toggle-row:hover,
.sofl-radio-card:hover,
.sofl-radio-card:has(input:checked) {
  border-color: rgba(212, 168, 67, .44);
  background: var(--sofl-gold-wash);
  transform: translateY(-1px);
}

.sofl-toggle-row span,
.sofl-radio-card span {
  display: grid;
  gap: 3px;
}

.sofl-toggle-row strong,
.sofl-radio-card strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-toggle-row small,
.sofl-radio-card small {
  color: var(--sofl-muted);
  line-height: 1.35;
}

.sofl-radio-card input {
  margin-top: 3px;
}

.sofl-radio-card i {
  color: var(--sofl-gold-deep);
}

.sofl-audience-grid {
  display: grid;
  gap: 14px;
}

.sofl-audience-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sofl-audience-options span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .84rem;
  font-weight: 820;
}

.sofl-audience-options i {
  color: var(--sofl-gold-deep);
}

.sofl-builder-main,
.sofl-builder-sidebar {
  display: grid;
  gap: 18px;
}

.sofl-builder-sidebar {
  position: sticky;
  top: 96px;
}

.sofl-switch-list {
  display: grid;
  gap: 10px;
}

.sofl-switch-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 13px;
  background: #f8fafc;
  color: var(--sofl-dark);
  font-weight: 800;
}

.sofl-switch-list .form-check-input {
  margin: 0;
}

.sofl-notification-template-preview,
.sofl-notification-preview,
.sofl-variable-helper {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.sofl-notification-preview {
  gap: 16px;
}

.sofl-preview-device {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: #111827;
}

.sofl-preview-device-top {
  width: 58px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.sofl-preview-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--sofl-gold-deep);
}

.sofl-preview-dropdown-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-preview-dropdown-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-preview-dropdown-card strong,
.sofl-preview-dropdown-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sofl-preview-dropdown-card strong {
  color: var(--sofl-dark);
  white-space: nowrap;
}

.sofl-preview-dropdown-card small {
  color: var(--sofl-muted);
}

.sofl-template-preview-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
}

.sofl-template-preview-title {
  color: var(--sofl-dark);
  font-weight: 900;
  line-height: 1.35;
}

.sofl-template-preview-message {
  color: var(--sofl-muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.sofl-variable-list {
  display: grid;
  gap: 8px;
}

.sofl-variable-list button {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212, 168, 67, .30);
  border-radius: 13px;
  background: var(--sofl-gold-wash);
  color: #7c5a12;
  font-size: .78rem;
  font-weight: 800;
  text-align: left;
}

.sofl-variable-list code {
  color: #7c5a12;
  font-weight: 900;
}

.sofl-variable-list span {
  color: var(--sofl-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-variable-list em {
  color: var(--sofl-muted);
  font-style: normal;
}

.sofl-template-code {
  display: inline-flex;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.sofl-template-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sofl-template-channels span,
.sofl-channel-badge {
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  color: var(--sofl-dark);
}

.sofl-notification-detail-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.sofl-notification-detail-panel.is-important {
  border-color: rgba(212, 168, 67, .36);
  background: linear-gradient(90deg, var(--sofl-gold-wash), #fff 44%);
}

.sofl-notification-detail-panel p {
  margin: 0;
  color: var(--sofl-text);
  font-size: 1rem;
  line-height: 1.75;
}

.sofl-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.sofl-detail-stats div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
}

.sofl-detail-stats span {
  color: var(--sofl-muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-detail-stats strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-delivery-log-table .sofl-error-preview {
  max-width: 340px;
  color: var(--sofl-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-delivery-status.is-sent {
  background: #d1fae5;
  color: #047857;
}

.sofl-delivery-status.is-pending {
  background: var(--sofl-gold-wash);
  color: #8a6518;
}

.sofl-delivery-status.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.sofl-notification-analytics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sofl-notification-analytics-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-notification-analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sofl-shadow);
}

.sofl-notification-analytics-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-notification-analytics-card strong {
  display: block;
  color: var(--sofl-dark);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.1;
}

.sofl-notification-analytics-card small,
.sofl-notification-analytics-card em {
  display: block;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 780;
}

.sofl-notification-analytics-panel {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-mini-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.sofl-mini-analytics-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-mini-analytics-grid span,
.sofl-category-bars span {
  display: block;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
}

.sofl-mini-analytics-grid strong,
.sofl-category-bars strong {
  color: var(--sofl-dark);
  font-weight: 950;
}

.sofl-category-bars {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.sofl-category-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sofl-category-bars em {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sofl-gold-deep) var(--bar), #edf2f7 var(--bar));
}

.sofl-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sofl-notification-template {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-notification-template:hover {
  border-color: rgba(212, 168, 67, .42);
  transform: translateY(-2px);
  box-shadow: var(--sofl-shadow);
}

.sofl-template-card-head,
.sofl-template-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sofl-template-card-head h3 {
  margin: 8px 0 0;
  color: var(--sofl-dark);
  font-size: 1rem;
  font-weight: 950;
}

.sofl-notification-template p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-template-card-foot {
  align-items: center;
  color: var(--sofl-muted);
  font-size: .8rem;
  font-weight: 780;
}

.sofl-admin-notification-menu .dropdown-menu {
  width: min(380px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 18px;
  box-shadow: var(--sofl-shadow);
}

.sofl-admin-notification-shortcuts {
  display: grid;
  padding: 8px;
}

.sofl-admin-notification-shortcuts a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 11px;
  border-radius: 13px;
  color: var(--sofl-text);
}

.sofl-admin-notification-shortcuts a:hover {
  background: var(--sofl-gold-wash);
}

.sofl-admin-notification-shortcuts i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f8fafc;
  color: var(--sofl-gold-deep);
}

.sofl-admin-notification-shortcuts strong,
.sofl-admin-notification-shortcuts small {
  display: block;
}

.sofl-admin-notification-shortcuts strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-admin-notification-shortcuts small {
  color: var(--sofl-muted);
  line-height: 1.4;
}

.sofl-switch-list label.is-disabled {
  opacity: .68;
  cursor: not-allowed;
}

.is-pulsing {
  animation: soflDisabledPulse 450ms ease;
}

@keyframes soflDisabledPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.96); background: var(--sofl-gold-wash); }
}

@media (max-width: 1199.98px) {
  .sofl-notification-admin-filters,
  .sofl-notification-builder {
    grid-template-columns: 1fr;
  }

  .sofl-builder-sidebar {
    position: static;
  }

  .sofl-admin-kpi-grid,
  .sofl-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sofl-notification-hero,
  .sofl-important-strip,
  .sofl-notification-detail-panel,
  .sofl-detail-stats {
    grid-template-columns: 1fr;
  }

  .sofl-notification-card {
    grid-template-columns: 1fr;
  }

  .sofl-notification-card-top,
  .sofl-notification-card-footer,
  .sofl-notification-admin-header,
  .sofl-important-strip-items {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-notification-card-actions,
  .sofl-important-strip-items {
    justify-content: flex-start;
  }

  .sofl-notification-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .sofl-notification-toolbar,
  .sofl-notification-analytics,
  .sofl-admin-kpi-grid,
  .sofl-mini-analytics-grid,
  .sofl-template-grid,
  .sofl-audience-options {
    grid-template-columns: 1fr;
  }

  .sofl-notification-filters a {
    white-space: nowrap;
  }
}
