:root {
    --crm-font-sans: "Inter", "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --crm-bg: #09111f;
    --crm-bg-secondary: #11192b;
    --crm-surface: rgba(13, 18, 30, 0.72);
    --crm-surface-elevated: rgba(17, 23, 38, 0.82);
    --crm-surface-soft: rgba(255, 255, 255, 0.05);
    --crm-border: rgba(255, 255, 255, 0.12);
    --crm-border-strong: rgba(255, 255, 255, 0.24);
    --crm-text: #f6f8fc;
    --crm-text-muted: #a9b6ca;
    --crm-text-soft: #74839b;
    --crm-accent: #8ab4ff;
    --crm-accent-strong: #c7d8ff;
    --crm-accent-soft: rgba(138, 180, 255, 0.16);
    --crm-highlight: rgba(255, 255, 255, 0.32);
    --crm-success: #59d7b1;
    --crm-danger: #ff8ca1;
    --crm-info: #7fd4ff;
    --crm-warning: #ffd683;
    --crm-shadow: 0 28px 90px rgba(2, 6, 23, 0.34);
    --crm-shadow-soft: 0 20px 55px rgba(2, 6, 23, 0.24);
    --crm-blur: blur(22px);
    --crm-radius-xl: 1.9rem;
    --crm-radius-lg: 1.5rem;
    --crm-radius-md: 1.15rem;
    --crm-control-compact-height: 2.62rem;
    --crm-sidebar-width: 300px;
}

.crm-theme,
.sendportal-shell {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(127, 168, 255, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 22%),
        radial-gradient(circle at bottom, rgba(80, 138, 255, 0.12), transparent 30%),
        linear-gradient(180deg, var(--crm-bg) 0%, var(--crm-bg-secondary) 100%);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-shell {
    --crm-bg: #f5f7fb;
    --crm-bg-secondary: #eef3fb;
    --crm-surface: rgba(255, 255, 255, 0.84);
    --crm-surface-elevated: rgba(255, 255, 255, 0.94);
    --crm-surface-soft: rgba(15, 23, 42, 0.04);
    --crm-border: rgba(15, 23, 42, 0.1);
    --crm-border-strong: rgba(15, 23, 42, 0.16);
    --crm-text: #0f172a;
    --crm-text-muted: #475569;
    --crm-text-soft: #64748b;
    --crm-accent: #2563eb;
    --crm-accent-strong: #1d4ed8;
    --crm-accent-soft: rgba(37, 99, 235, 0.12);
    --crm-highlight: rgba(15, 23, 42, 0.14);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--crm-text);
}

html,
body,
.fi-body,
.fi-layout,
.sendportal-shell {
    font-family: var(--crm-font-sans);
}

.fi-sidebar,
.fi-topbar,
.fi-page,
.sendportal-sidebar,
.sendportal-main,
.sendportal-topbar,
.sendportal-content,
.sendportal-shell .card,
.sendportal-shell .table,
.sendportal-shell .btn,
.sendportal-shell .form-control,
.sendportal-shell .custom-select {
    font-family: var(--crm-font-sans) !important;
}

html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(138, 180, 255, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 20%),
        radial-gradient(circle at bottom right, rgba(127, 212, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #07101c 0%, #0b1524 48%, #111c2e 100%);
    background-attachment: fixed;
    color: var(--crm-text);
}

html,
body,
.fi-body,
.fi-layout,
.fi-main,
.fi-page,
.sendportal-shell,
.api-shell {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
.crm-title,
.crm-section-title,
.crm-widget-title,
.crm-card__title,
.crm-broadcast-status__title,
.fi-header-heading,
.sendportal-topbar__title,
.sendportal-brand__title,
.fi-wi-stats-overview-stat-value,
.sendportal-page-header .fi-header-heading {
    text-wrap: balance;
}

p,
li,
td,
dd,
.crm-copy,
.crm-widget-copy,
.crm-card__subtitle,
.crm-card__aside,
.crm-stat-card__description,
.crm-alert__body,
.crm-key-value__label,
.crm-key-value__value,
.crm-broadcast-status__body,
.sendportal-brand__copy,
.sendportal-topbar__meta,
.sendportal-page-header__breadcrumbs,
.fi-ta-cell,
.fi-ta-text,
.fi-dropdown-panel,
.fi-section {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

:where(.fi-body, .sendportal-shell, .api-shell, .crm-theme) :is(
    a[href],
    button,
    input,
    select,
    textarea,
    [role="button"],
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.78);
    outline-offset: 3px;
}

html.dark :where(.fi-body, .sendportal-shell, .api-shell, .crm-theme) :is(
    a[href],
    button,
    input,
    select,
    textarea,
    [role="button"],
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline-color: rgba(138, 180, 255, 0.82);
}

.crm-page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crm-panel {
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(13, 18, 30, 0.82) 0%, rgba(9, 14, 24, 0.72) 100%);
    backdrop-filter: var(--crm-blur);
    -webkit-backdrop-filter: var(--crm-blur);
    box-shadow: var(--crm-shadow);
}

.crm-panel--soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(17, 23, 38, 0.76) 0%, rgba(11, 17, 28, 0.72) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
}

.crm-panel__body {
    padding: 1.5rem;
}

.crm-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.crm-kicker {
    margin: 0;
    color: var(--crm-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.crm-title {
    margin: 0.35rem 0 0;
    color: var(--crm-text);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.crm-section-title {
    margin: 0;
    color: var(--crm-text);
    font-size: 1rem;
    font-weight: 650;
}

.crm-copy {
    margin: 0.75rem 0 0;
    max-width: 64rem;
    color: var(--crm-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.crm-muted {
    color: var(--crm-text-muted);
}

.crm-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--crm-border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.7rem 1rem;
    color: #d6deec;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.crm-link {
    color: var(--crm-accent-strong);
    font-weight: 600;
    transition: color 180ms ease, opacity 180ms ease;
}

.crm-link:hover {
    color: #ffffff;
}

.crm-grid {
    display: grid;
    gap: 1rem;
}

.crm-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.crm-stat-card {
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(14, 20, 32, 0.84) 0%, rgba(10, 15, 26, 0.74) 100%);
    padding: 1.25rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
}

.crm-stat-card__label {
    margin: 0;
    color: var(--crm-text-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.crm-stat-card__value {
    margin: 0.85rem 0 0;
    color: var(--crm-text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.crm-stat-card__description {
    margin: 0.55rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.crm-tone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--crm-border);
    border-radius: 9999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.crm-tone-badge--info {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

.crm-tone-badge--success {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.12);
    color: #bbf7d0;
}

.crm-tone-badge--warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.crm-tone-badge--danger {
    border-color: rgba(251, 113, 133, 0.3);
    background: rgba(251, 113, 133, 0.12);
    color: #fecdd3;
}

.crm-alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crm-alert {
    border: 1px solid var(--crm-border);
    border-radius: 1.25rem;
    padding: 1rem 1.05rem;
}

.crm-alert--success {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(52, 211, 153, 0.1);
    color: #d1fae5;
}

.crm-alert--warning {
    border-color: rgba(251, 191, 36, 0.24);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

.crm-alert--danger {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.1);
    color: #fecdd3;
}

.crm-alert__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
}

.crm-alert__body {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.94;
}

.crm-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 100%),
        linear-gradient(180deg, rgba(15, 20, 33, 0.8), rgba(10, 14, 24, 0.72));
    padding: 1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.crm-card--spotlight {
    padding: 1.15rem;
    box-shadow: var(--crm-shadow-soft);
}

.crm-card--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.crm-card__lead {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1 1 auto;
}

.crm-card__content {
    min-width: 0;
}

.crm-card__title {
    margin: 0;
    color: var(--crm-text);
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.crm-card__subtitle {
    margin: 0.28rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.crm-card__meta-line {
    margin-top: 0.42rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--crm-text-soft);
    font-size: 0.75rem;
}

.crm-card__dot {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.26);
}

.crm-card__tail {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.crm-card__eyebrow,
.crm-pill__label {
    margin: 0;
    color: var(--crm-text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.crm-card__aside {
    text-align: right;
    color: var(--crm-text-soft);
    font-size: 0.72rem;
    line-height: 1.5;
}

.crm-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.48rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.crm-pill__value {
    color: var(--crm-text);
    font-size: 0.79rem;
    font-weight: 600;
}

.crm-empty-state {
    border: 1px dashed var(--crm-border);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem 1rem;
    color: #64748b;
    font-size: 0.92rem;
}

.crm-table-wrap {
    overflow-x: auto;
}

.crm-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.crm-table th {
    padding: 0 1rem 0.8rem 0;
    color: var(--crm-text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: left;
}

.crm-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1rem 0.9rem 0;
    color: #cbd5e1;
    vertical-align: top;
}

.crm-table--compact td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.crm-table__numeric {
    text-align: right;
}

.crm-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--crm-border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.45rem 0.78rem;
    color: #dbe5f4;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.crm-status-pill--warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.crm-status-pill--success {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.12);
    color: #bbf7d0;
}

.crm-status-pill--danger {
    border-color: rgba(255, 140, 161, 0.28);
    background: rgba(255, 140, 161, 0.12);
    color: #ffd5de;
}

.crm-header-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--crm-border);
    border-radius: 9999px;
    background: rgba(10, 15, 24, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
}

.crm-header-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0 0.95rem;
    border-radius: 9999px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease;
}

.crm-header-links__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.crm-control {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--crm-radius-md);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.78rem 0.95rem;
    color: var(--crm-text);
    font-size: 0.92rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.crm-control:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.crm-control-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
}

.crm-widget-title {
    margin: 0;
    color: var(--crm-text);
    font-size: 1rem;
    font-weight: 650;
}

.crm-widget-copy {
    margin: 0.3rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.9rem;
}

.crm-split-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.crm-key-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    background: rgba(255, 255, 255, 0.045);
    padding: 0.9rem 1rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.crm-key-value__label {
    color: var(--crm-text-muted);
    font-size: 0.92rem;
}

.crm-key-value__value {
    color: var(--crm-text);
    font-size: 1rem;
    font-weight: 650;
}

.crm-broadcast-status {
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    padding: 1rem 1.05rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.crm-broadcast-status--success {
    border-color: rgba(52, 211, 153, 0.24);
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0.06));
    color: #d1fae5;
}

.crm-broadcast-status--warning {
    border-color: rgba(251, 191, 36, 0.24);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.06));
    color: #fde68a;
}

.crm-broadcast-status--danger {
    border-color: rgba(251, 113, 133, 0.24);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.16), rgba(251, 113, 133, 0.06));
    color: #fecdd3;
}

.crm-broadcast-status__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.crm-broadcast-status__label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
}

.crm-broadcast-status__title {
    margin: 0.38rem 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.crm-broadcast-status__body {
    margin: 0.6rem 0 0;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.94;
}

.crm-broadcast-status__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-radius: 9999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.92;
}

.crm-user-table--cards .fi-ta-table {
  display: block;
}

.crm-user-table--cards .fi-ta-table thead {
  display: none;
}

.crm-user-table--cards .fi-ta-table tbody {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem;
}

.crm-user-table--cards .fi-ta-table tbody tr.crm-user-row {
  display: block;
  flex: 0 0 calc(33.333% - 0.84rem);
  width: calc(33.333% - 0.84rem);
  margin: 0;
  border: none;
}

.crm-user-table--cards .fi-ta-table tbody td.crm-user-cell {
  display: block;
  width: 100%;
  padding: 0 !important;
}

.crm-user-table--cards .fi-ta-col-wrp,
.crm-user-table--cards .fi-ta-col-wrp > .flex,
.crm-user-table--cards .crm-user-card {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .crm-user-table--cards .fi-ta-table tbody tr.crm-user-row {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .crm-user-table--cards .fi-ta-table tbody tr.crm-user-row {
    flex-basis: calc(50% - 0.625rem);
    width: calc(50% - 0.625rem);
  }
}

.crm-user-cell {
    padding: 0.75rem !important;
}

.crm-user-row {
    background: transparent !important;
}

.crm-user-card {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--crm-border);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(17, 19, 24, 0.98) 0%, rgba(13, 16, 20, 0.98) 100%);
    box-shadow: var(--crm-shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fi-body,
.fi-layout,
.fi-main {
    background: transparent;
}

.fi-layout {
    position: relative;
}

.fi-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(199, 216, 255, 0.08), transparent 16%),
        radial-gradient(circle at 86% 14%, rgba(138, 180, 255, 0.1), transparent 18%),
        radial-gradient(circle at 52% 100%, rgba(255, 255, 255, 0.04), transparent 22%);
}

.fi-main,
.fi-page {
    position: relative;
    z-index: 1;
}

.fi-sidebar,
.fi-topbar {
    z-index: 20;
}

.fi-simple-layout,
.fi-page,
.fi-ta-ctn {
    background: transparent;
}

.fi-sidebar {
    width: var(--crm-sidebar-width) !important;
    max-width: var(--crm-sidebar-width) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(10, 15, 25, 0.92), rgba(9, 14, 23, 0.86)) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-sidebar-header,
.fi-topbar
/* .fi-header */
 {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(10, 15, 24, 0.52) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-topbar {
    display: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-topbar nav,
nav.fi-topbar,
.fi-topbar > nav {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(10, 15, 24, 0.58) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    ring-color: transparent !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-topbar .bg-white,
.fi-topbar .dark\:bg-gray-900 {
    background: transparent !important;
}

.fi-topbar .shadow-sm,
.fi-topbar .ring-1,
.fi-topbar .ring-gray-950\/5,
.fi-topbar .dark\:ring-white\/10 {
    box-shadow: none !important;
}

.fi-topbar .fi-user-avatar {
    box-shadow:
        0 10px 24px rgba(8, 12, 20, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.fi-dropdown-header {
    color: var(--crm-text-muted) !important;
}

.fi-dropdown-header-label,
.fi-dropdown-header-icon {
    color: inherit !important;
}

.fi-theme-switcher {
    padding: 0.2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.fi-theme-switcher-btn {
    border-radius: 0.85rem !important;
}

.fi-theme-switcher-btn.fi-active,
.fi-theme-switcher-btn[class*="bg-gray-50"][class*="text-primary-500"] {
    background: rgba(138, 180, 255, 0.16) !important;
    color: #e8f0ff !important;
}

.fi-sidebar-item-button,
.fi-sidebar-group-button,
.fi-sidebar-item-label,
.fi-sidebar-group-label {
    color: var(--crm-text-muted) !important;
}

.fi-sidebar-item-icon,
.fi-sidebar-group-icon {
    color: #9ebaf6 !important;
}

.fi-sidebar-item-button {
    border-radius: 1rem !important;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.fi-sidebar-item-button:hover,
.fi-sidebar-group-button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--crm-text) !important;
    transform: translateX(2px);
}

.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar-item-button[aria-current="page"] {
    background: rgba(138, 180, 255, 0.14) !important;
    color: var(--crm-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fi-sidebar-item-active .fi-sidebar-item-icon,
.fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon {
    color: #dbe7ff !important;
}

.fi-breadcrumbs-item-label,
.fi-header-heading,
.fi-header-subheading,
.fi-topbar-item-label {
    color: var(--crm-text) !important;
}

.fi-header-subheading,
.fi-breadcrumbs-item-label {
    color: var(--crm-text-muted) !important;
}

.fi-btn,
.fi-icon-btn {
    border-radius: 1rem !important;
    box-shadow: none !important;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.fi-btn:hover,
.fi-icon-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary {
    background:
        linear-gradient(180deg, rgba(120, 164, 255, 0.28), rgba(92, 139, 240, 0.18)),
        rgba(17, 34, 67, 0.88) !important;
    color: #f7faff !important;
    border: 1px solid rgba(138, 180, 255, 0.26) !important;
    box-shadow:
        0 12px 24px rgba(34, 72, 150, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.fi-btn-color-gray,
.fi-btn-color-primary:is(.fi-color-custom) {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fi-btn-color-gray {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--crm-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fi-btn-color-primary:hover,
.fi-btn-color-primary:focus,
.fi-btn-color-primary:is(.fi-color-custom):hover,
.fi-btn-color-primary:is(.fi-color-custom):focus {
    background:
        linear-gradient(180deg, rgba(141, 184, 255, 0.32), rgba(103, 151, 248, 0.22)),
        rgba(20, 39, 75, 0.92) !important;
    border-color: rgba(167, 202, 255, 0.34) !important;
    box-shadow:
        0 16px 28px rgba(41, 84, 170, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.fi-btn-color-gray:hover,
.fi-btn-color-gray:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.fi-section,
.fi-ta,
.fi-in-entry,
.fi-fo-field-wrp,
.fi-wi-widget {
    border-radius: var(--crm-radius-xl);
}

.fi-wi-stats-overview-stat {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--crm-radius-xl) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(14, 20, 32, 0.84) 0%, rgba(10, 15, 26, 0.74) 100%) !important;
    box-shadow: var(--crm-shadow-soft) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-wi-stats-overview-stat-label {
    color: var(--crm-text-soft) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fi-wi-stats-overview-stat-value {
    color: var(--crm-text) !important;
    letter-spacing: -0.04em;
}

.fi-wi-stats-overview-stat-description {
    color: var(--crm-accent-strong) !important;
}

.fi-wi-stats-overview-stat-description-icon {
    color: var(--crm-accent) !important;
}

.fi-ta {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(13, 18, 30, 0.76), rgba(9, 13, 23, 0.68));
    box-shadow: var(--crm-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.fi-ta:has(.choices__list--dropdown.is-active),
.fi-ta:has(.choices.is-open),
.fi-section:has(.choices__list--dropdown.is-active),
.fi-section:has(.choices.is-open),
.fi-in-entry:has(.choices__list--dropdown.is-active),
.fi-in-entry:has(.choices.is-open),
.fi-fo-component-ctn:has(.choices__list--dropdown.is-active),
.fi-fo-component-ctn:has(.choices.is-open),
.fi-modal-window:has(.choices__list--dropdown.is-active),
.fi-modal-window:has(.choices.is-open) {
    position: relative !important;
    z-index: 75 !important;
    overflow: visible !important;
}

.fi-ta-header-ctn,
.fi-ta-content,
.fi-ta-ctn {
    background: transparent;
}

.fi-ta-content {
    border-top-width: 0 !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.fi-ta-ctn {
    border-radius: calc(var(--crm-radius-xl) - 0.2rem) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(9, 13, 23, 0.46) !important;
}

.fi-ta-header-toolbar {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
        rgba(12, 18, 30, 0.52);
}

.fi-ta-header-toolbar,
.fi-header-actions,
.fi-ac {
    gap: 0.75rem !important;
}

.fi-header-actions .fi-btn,
.fi-ac .fi-btn,
.fi-ac .fi-icon-btn {
    min-height: 2.85rem !important;
}

.fi-ta-header-toolbar .fi-input-wrp,
.fi-ta-header-toolbar .fi-select-input,
.fi-ta-header-toolbar .fi-input,
.fi-ta-header-toolbar .fi-btn {
    min-height: 2.85rem !important;
}

.fi-ta-search-field input,
.fi-input-wrp,
.fi-select-input,
.fi-input {
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--crm-radius-md) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--crm-text) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fi-ta-search-field .fi-input-wrp {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(9, 13, 23, 0.42) !important;
    box-shadow: none !important;
}

.fi-ta-search-field .fi-input,
.fi-ta-search-field input,
.fi-ta-search-field .fi-input-wrp-input,
.fi-ta-search-field .fi-input-wrp-prefix {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.fi-input-wrp:focus-within,
.fi-ta-search-field input:focus,
.fi-select-input:focus,
.fi-input:focus {
    border-color: rgba(138, 180, 255, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(138, 180, 255, 0.14) !important;
}

.fi-ta-search-field input:focus,
.fi-ta-search-field .fi-input:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.fi-input-wrp-prefix,
.fi-input-wrp-suffix {
    color: var(--crm-text-soft) !important;
}

.fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
}

.fi-ta-table thead {
    background: rgba(255, 255, 255, 0.025) !important;
}

.fi-ta-table thead tr {
    background: transparent !important;
}

.fi-ta-table thead th {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--crm-text-soft) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

.fi-ta-header-cell-label,
.fi-ta-header-cell button,
.fi-ta-header-cell button span {
    color: var(--crm-text-soft) !important;
}

.fi-ta-header-cell button {
    transition: color 180ms ease, opacity 180ms ease !important;
}

.fi-ta-header-cell button:hover,
.fi-ta-header-cell button:hover span,
.fi-ta-header-cell button:hover .fi-icon {
    color: var(--crm-text) !important;
}

.fi-ta-record {
    background: transparent;
    transition: background 180ms ease, transform 180ms ease;
}

.fi-ta-record:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-1px);
}

.fi-ta-record:has(input[type="checkbox"]:checked) {
    background: rgba(138, 180, 255, 0.08) !important;
}

.fi-ta-row {
    position: relative;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.fi-ta-row::after {
    content: "";
    position: absolute;
    inset-inline: 0.85rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    pointer-events: none;
}

.fi-ta-row:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(138, 180, 255, 0.03) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.crm-user-table--cards .crm-user-row:hover,
.crm-user-table--cards .fi-ta-row.crm-user-row:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.crm-user-table--cards .crm-user-row:hover::after,
.crm-user-table--cards .fi-ta-row.crm-user-row:hover::after {
    opacity: 0 !important;
}

.fi-ta-row[x-bind\\:class],
.fi-ta-row.bg-gray-50,
.fi-ta-row.dark\:bg-white\/5 {
    background: transparent;
}

.fi-ta-row:has(.fi-ta-record-checkbox:checked),
.fi-ta-row:has(.fi-ta-page-checkbox:checked) {
    background:
        linear-gradient(180deg, rgba(138, 180, 255, 0.12), rgba(138, 180, 255, 0.04)),
        rgba(255, 255, 255, 0.02) !important;
}

.fi-ta-record > td,
.fi-ta-cell {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #d8e1f0 !important;
}

.fi-ta-table tbody td {
    background: transparent !important;
}

.fi-ta-table tbody tr:first-child td {
    border-top-color: transparent !important;
}

.fi-ta-text {
    gap: 0.2rem !important;
}

.fi-ta-text-item-label {
    color: #e6edf8 !important;
}

.fi-ta-row:hover .fi-ta-text-item-label,
.fi-ta-row:hover .fi-link,
.fi-ta-row:hover .fi-link-icon {
    color: #ffffff !important;
}

.fi-ta .text-gray-950,
.fi-ta .dark\:text-white,
.fi-section .text-gray-950,
.fi-section .dark\:text-white,
.fi-modal-window .text-gray-950,
.fi-modal-window .dark\:text-white,
.fi-dropdown-panel .text-gray-950,
.fi-dropdown-panel .dark\:text-white,
.fi-in-card .text-gray-950,
.fi-in-card .dark\:text-white {
    color: #e6edf8 !important;
}

.fi-ta .text-gray-700,
.fi-ta .text-gray-600,
.fi-section .text-gray-700,
.fi-section .text-gray-600,
.fi-modal-window .text-gray-700,
.fi-modal-window .text-gray-600,
.fi-dropdown-panel .text-gray-700,
.fi-dropdown-panel .text-gray-600 {
    color: var(--crm-text-muted) !important;
}

.fi-ta .text-gray-500,
.fi-ta .text-gray-400,
.fi-section .text-gray-500,
.fi-section .text-gray-400,
.fi-modal-window .text-gray-500,
.fi-modal-window .text-gray-400,
.fi-dropdown-panel .text-gray-500,
.fi-dropdown-panel .text-gray-400 {
    color: var(--crm-text-soft) !important;
}

.fi-ta-actions {
    gap: 0.45rem;
}

.fi-ta-actions .fi-btn,
.fi-ta-actions .fi-icon-btn {
    min-height: 2.35rem !important;
}

.fi-ta-cell a,
.fi-link,
.fi-btn-link {
    color: var(--crm-text) !important;
}

.fi-ta-cell a:hover,
.fi-link:hover,
.fi-btn-link:hover {
    color: var(--crm-accent-strong) !important;
    text-decoration: none;
}

.fi-link-icon,
.fi-ta-header-cell-sort-icon,
.fi-input-wrp-icon {
    color: #8ea9d8 !important;
}

.fi-link:hover .fi-link-icon,
.fi-ta-header-cell button:hover .fi-ta-header-cell-sort-icon {
    color: #dbe7ff !important;
}

.fi-badge,
.fi-status-badge {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-inline: 0.7rem !important;
}

.fi-color-primary {
    color: #dbe7ff !important;
}

.fi-badge-color-success,
.fi-status-badge-color-success {
    border-color: rgba(89, 215, 177, 0.22) !important;
    background: rgba(89, 215, 177, 0.14) !important;
    color: #d6fff2 !important;
}

.fi-badge-color-warning,
.fi-status-badge-color-warning {
    border-color: rgba(255, 214, 131, 0.24) !important;
    background: rgba(255, 214, 131, 0.14) !important;
    color: #ffefc8 !important;
}

.fi-badge-color-danger,
.fi-status-badge-color-danger {
    border-color: rgba(255, 140, 161, 0.24) !important;
    background: rgba(255, 140, 161, 0.14) !important;
    color: #ffd5de !important;
}

.fi-badge-color-gray,
.fi-status-badge-color-gray {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #dbe5f4 !important;
}

.fi-icon-btn-badge-ctn {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(9, 13, 23, 0.88) !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.12rem !important;
}

.fi-icon-btn-badge-ctn .fi-badge {
    min-width: 1.15rem !important;
    min-height: 1.15rem !important;
    padding-inline: 0.38rem !important;
    padding-block: 0.1rem !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
}

.fi-icon-btn-badge-ctn .fi-badge.fi-color-primary,
.fi-icon-btn-badge-ctn .fi-badge.fi-color-custom {
    background: rgba(138, 180, 255, 0.22) !important;
    border-color: rgba(138, 180, 255, 0.26) !important;
    color: #eaf1ff !important;
}

.fi-ta-filters-summary,
.fi-ta-grouping-settings,
.fi-ta-selection-indicator {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--crm-text-muted) !important;
}

.fi-ta-filter-indicators {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(9, 13, 23, 0.28) !important;
}

.fi-ta-filter-indicators > div:first-child > span {
    color: var(--crm-text-soft) !important;
}

.fi-ta-filter-indicators .fi-badge-delete-button {
    color: rgba(219, 231, 255, 0.58) !important;
}

.fi-ta-filter-indicators .fi-badge-delete-button:hover,
.fi-ta-filter-indicators .fi-badge-delete-button:focus-visible {
    color: rgba(238, 244, 255, 0.9) !important;
}

.fi-ta-filter-indicators .fi-icon-btn {
    color: var(--crm-text-soft) !important;
}

.fi-ta-filter-indicators .fi-icon-btn:hover,
.fi-ta-filter-indicators .fi-icon-btn:focus-visible {
    color: var(--crm-text) !important;
}

.fi-ta-filter-indicators .fi-badge.fi-color-primary,
.fi-ta-filter-indicators .fi-badge.fi-color-custom {
    border-color: rgba(138, 180, 255, 0.24) !important;
    background: rgba(138, 180, 255, 0.16) !important;
    color: #eaf1ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.fi-ta-filter-indicators .fi-badge.fi-color-primary .fi-badge-delete-button,
.fi-ta-filter-indicators .fi-badge.fi-color-custom .fi-badge-delete-button {
    color: rgba(234, 241, 255, 0.66) !important;
}

.fi-ta-filter-indicators .fi-badge.fi-color-primary .fi-badge-delete-button:hover,
.fi-ta-filter-indicators .fi-badge.fi-color-primary .fi-badge-delete-button:focus-visible,
.fi-ta-filter-indicators .fi-badge.fi-color-custom .fi-badge-delete-button:hover,
.fi-ta-filter-indicators .fi-badge.fi-color-custom .fi-badge-delete-button:focus-visible {
    color: #ffffff !important;
}

.fi-tabs {
    gap: 0.55rem !important;
    padding: 0.55rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--crm-radius-lg) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        rgba(10, 15, 24, 0.42) !important;
    box-shadow: var(--crm-shadow-soft) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-tabs-item {
    min-height: 2.85rem;
    padding-inline: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--crm-text-muted) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

.fi-tabs-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.fi-tabs-item[aria-selected="true"],
.fi-tabs-item.fi-active {
    background:
        linear-gradient(180deg, rgba(138, 180, 255, 0.18), rgba(138, 180, 255, 0.08)),
        rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(138, 180, 255, 0.28) !important;
    color: var(--crm-text) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(45, 92, 189, 0.12) !important;
}

.fi-tabs-item-label,
.fi-tabs-item-badge {
    color: inherit !important;
}

.fi-tabs-item-badge {
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #dbe7ff !important;
    min-width: 2rem;
    justify-content: center;
}

.fi-tabs .bg-white,
.fi-tabs .dark\:bg-gray-900,
.fi-tabs .bg-gray-50,
.fi-tabs .dark\:bg-white\/5 {
    background: transparent !important;
}

.fi-tabs .shadow-sm,
.fi-tabs .ring-1,
.fi-tabs .ring-gray-950\/5,
.fi-tabs .dark\:ring-white\/10 {
    box-shadow: none !important;
}

.fi-tabs-item .fi-badge {
    padding-inline: 0.55rem !important;
    padding-block: 0.2rem !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
}

.fi-tabs-item .fi-badge.fi-color-primary,
.fi-tabs-item .fi-badge.fi-color-custom {
    border-color: rgba(138, 180, 255, 0.24) !important;
    background:
        linear-gradient(180deg, rgba(138, 180, 255, 0.2), rgba(138, 180, 255, 0.1)),
        rgba(255, 255, 255, 0.04) !important;
    color: #eef4ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fi-tabs-item.fi-active .fi-badge.fi-color-primary,
.fi-tabs-item.fi-active .fi-badge.fi-color-custom,
.fi-tabs-item[aria-selected="true"] .fi-badge.fi-color-primary,
.fi-tabs-item[aria-selected="true"] .fi-badge.fi-color-custom {
    background:
        linear-gradient(180deg, rgba(199, 216, 255, 0.24), rgba(138, 180, 255, 0.14)),
        rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(199, 216, 255, 0.28) !important;
    color: #ffffff !important;
}

.fi-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(13, 18, 30, 0.76), rgba(9, 13, 23, 0.68));
    box-shadow: var(--crm-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.fi-section-header-heading,
.fi-section-header-description {
    color: var(--crm-text) !important;
}

.fi-section-header-description {
    color: var(--crm-text-muted) !important;
}

.fi-dropdown-panel,
.fi-modal-window,
.fi-fo-repeater-item,
.fi-in-card,
.fi-section-content-ctn {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(10, 15, 24, 0.86) !important;
    box-shadow: var(--crm-shadow-soft) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html:not(.dark) .fi-section-content-ctn {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)) !important;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.12) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html:not(.dark) .fi-section-content {
    background: transparent !important;
}

html:not(.dark) .fi-fo-field-wrp {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html:not(.dark) .fi-fo-component-ctn {
    background: transparent !important;
}

html:not(.dark) .fi-fo-field-wrp-label,
html:not(.dark) .fi-fo-field-wrp-helper-text,
html:not(.dark) .fi-fo-placeholder-label {
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .fi-input-wrp,
html:not(.dark) .fi-select-input,
html:not(.dark) .fi-input,
html:not(.dark) .choices__inner {
    border-color: rgba(148, 163, 184, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.96)),
        rgba(255, 255, 255, 0.98) !important;
    color: var(--crm-text) !important;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.16),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 18px rgba(15, 23, 42, 0.03) !important;
}

html:not(.dark) .fi-input-wrp:focus-within,
html:not(.dark) .fi-select-input:focus,
html:not(.dark) .fi-input:focus {
    border-color: rgba(37, 99, 235, 0.28) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

html:not(.dark) .fi-input-wrp-prefix,
html:not(.dark) .fi-input-wrp-suffix,
html:not(.dark) .fi-input-wrp-icon {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .choices__list--dropdown,
html:not(.dark) .choices__list[aria-expanded] {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 22px 50px rgba(148, 163, 184, 0.14) !important;
}

html:not(.dark) .choices__item--choice {
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .choices__item--choice:hover,
html:not(.dark) .choices__item--choice.is-highlighted {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .choices__item--choice.is-selected {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .filepond--panel-root {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .filepond--drop-label,
html:not(.dark) .filepond--assistant {
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .filepond--panel-center,
html:not(.dark) .filepond--panel-bottom,
html:not(.dark) .filepond--panel-top {
    background: transparent !important;
}

.fi-dropdown-list {
    background: transparent !important;
}

.fi-dropdown-list-item {
    border-radius: 0.9rem !important;
    color: var(--crm-text-muted) !important;
}

.fi-dropdown-list-item:hover,
.fi-dropdown-list-item:focus-visible {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--crm-text) !important;
}

.fi-dropdown-list-item-label,
.fi-dropdown-list-item-icon {
    color: inherit !important;
}

.fi-modal-window {
    border-radius: var(--crm-radius-xl) !important;
}

html:not(.dark) .fi-modal-window {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.18) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fi-modal-slide-over-window {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none !important;
    box-shadow: -28px 0 60px rgba(2, 6, 23, 0.34) !important;
    margin: 0 0 0 auto !important;
    justify-self: auto !important;
    align-self: stretch !important;
    width: min(100vw, 42rem) !important;
    max-width: min(100vw, 42rem) !important;
}

html:not(.dark) .fi-modal-slide-over-window {
    border-left-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: -24px 0 54px rgba(148, 163, 184, 0.18) !important;
}

.fi-modal-slide-over-window.fi-modal-window {
    max-height: 100dvh !important;
    height: 100dvh !important;
}

.fi-modal-header,
.fi-modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

html:not(.dark) .fi-modal-header,
html:not(.dark) .fi-modal-footer {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96) !important;
}

html:not(.dark) .fi-modal-content {
    background: transparent !important;
}

.fi-fo-field-wrp-label,
.fi-fo-field-wrp-helper-text,
.fi-fo-placeholder-label {
    color: var(--crm-text-muted) !important;
}

.fi-input-wrp,
.fi-select-input,
.fi-input,
.choices__inner {
    min-height: var(--crm-control-compact-height) !important;
}

.fi-input-wrp {
    min-height: var(--crm-control-compact-height) !important;
}

.fi-input,
.fi-select-input {
    min-height: calc(var(--crm-control-compact-height) - 2px) !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

.choices__inner {
    min-height: var(--crm-control-compact-height) !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.choices {
    color: var(--crm-text) !important;
    position: relative !important;
    z-index: 1;
}

.choices.is-open,
.choices.is-focused {
    z-index: 60 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    margin-top: 0.5rem !important;
    z-index: 80 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(9, 13, 23, 0.96) !important;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.34) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden !important;
}

.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
    padding: 0.4rem !important;
}

.fi-fo-field-wrp:has(.choices__list--dropdown.is-active),
.fi-fo-field-wrp:has(.choices.is-open),
.fi-input-wrp:has(.choices__list--dropdown.is-active),
.fi-input-wrp:has(.choices.is-open) {
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
}

.choices__item--choice {
    border-radius: 0.8rem !important;
    padding: 0.7rem 0.85rem !important;
    color: var(--crm-text-muted) !important;
    font-size: 0.92rem !important;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.choices__item--choice:hover,
.choices__item--choice.is-highlighted {
    background: rgba(138, 180, 255, 0.14) !important;
    color: #f8fbff !important;
}

.choices__item--choice.is-selected {
    background: rgba(138, 180, 255, 0.18) !important;
    color: #ffffff !important;
}

.fi-fo-key-value td[class~="w-1/2"][class~="p-0"] {
    padding: 0.25rem !important;
}

.fi-tabs {
    gap: 0.55rem;
}

.fi-tabs-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--crm-text-muted) !important;
}

.fi-tabs-item[aria-selected="true"],
.fi-tabs-item:hover {
    background: rgba(138, 180, 255, 0.14);
    border-color: rgba(138, 180, 255, 0.24);
    color: var(--crm-text) !important;
}

.fi-pagination {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.fi-ta-pagination {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(9, 13, 23, 0.28);
}

.fi-pagination-overview {
    color: var(--crm-text-muted) !important;
}

.fi-pagination-records-per-page-select .fi-input-wrp-prefix {
    border-inline-end: none !important;
}

.fi-pagination-items {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(9, 13, 23, 0.42) !important;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18) !important;
    overflow: hidden;
    padding: 0.2rem !important;
}

.fi-pagination-item {
    border-inline-width: 0 !important;
    border-color: transparent !important;
}

.fi-pagination-item-button {
    background: transparent !important;
}

.fi-pagination-item-button:hover,
.fi-pagination-item-button:focus-visible {
    background: rgba(255, 255, 255, 0.06) !important;
}

.fi-pagination-item.fi-active .fi-pagination-item-button,
.fi-pagination-item[aria-current="page"] .fi-pagination-item-button {
    background: rgba(138, 180, 255, 0.16) !important;
}

.fi-pagination-item-icon {
    color: var(--crm-text-soft) !important;
}

.fi-pagination-item-label {
    color: var(--crm-text) !important;
}

.fi-pagination-item.fi-active .fi-pagination-item-label {
    color: #eef4ff !important;
}

.fi-pagination-item.fi-disabled .fi-pagination-item-label,
.fi-pagination-item.fi-disabled .fi-pagination-item-icon {
    color: var(--crm-text-soft) !important;
    opacity: 0.65;
}

.fi-pagination .fi-btn,
.fi-pagination button,
.fi-pagination a {
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--crm-text) !important;
}

.fi-pagination .fi-btn:hover,
.fi-pagination button:hover,
.fi-pagination a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fi-pagination [aria-current="page"] {
    border-color: rgba(138, 180, 255, 0.3) !important;
    background: rgba(138, 180, 255, 0.16) !important;
    color: #fff !important;
}

.fi-empty-state,
.fi-ta-empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--crm-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    color: var(--crm-text-muted);
}

.sendportal-shell {
    color: var(--crm-text);
}

.sendportal-shell .main-header {
    padding: 2.3rem 2.3rem 0 !important;
}

.sendportal-shell .sidebar .sidebar-inner {
    margin: 0 !important;
}

.sendportal-shell body,
body.sendportal-shell {
    color: var(--crm-text);
}

.sendportal-shell a {
    transition: color 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sendportal-layout {
    min-height: 100vh;
}

.sendportal-sidebar {
    width: calc(5.5rem + var(--crm-sidebar-width));
    min-width: calc(5.5rem + var(--crm-sidebar-width));
    max-width: calc(5.5rem + var(--crm-sidebar-width));
    padding: 0;
    border-right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
}

.sendportal-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.sendportal-brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--crm-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-brand:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.sendportal-brand__eyebrow {
    color: var(--crm-accent-strong);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.sendportal-brand__title {
    color: var(--crm-text);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sendportal-brand__copy {
    color: var(--crm-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.sendportal-suite-sidebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    transform: none !important;
    box-shadow: none !important;
    ring-color: transparent !important;
}

.sendportal-suite-sidebar .fi-sidebar-header {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.sendportal-suite-sidebar .fi-logo {
    color: var(--crm-text) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.sendportal-suite-sidebar .fi-sidebar-nav,
.sendportal-suite-sidebar .fi-sidebar-nav-groups,
.sendportal-suite-sidebar .fi-sidebar-group-items {
    display: flex;
    flex-direction: column;
}

.sendportal-suite-sidebar .fi-sidebar-nav {
    flex: 1 1 auto;
    gap: 1.75rem;
    padding: 2rem 1.5rem 2rem;
}

.sendportal-suite-sidebar .fi-sidebar-nav-groups {
    gap: 1.75rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.sendportal-suite-sidebar .fi-sidebar-group {
    gap: 0.25rem;
}

.sendportal-suite-sidebar .fi-sidebar-group-items {
    gap: 0.25rem;
}

.sendportal-suite-sidebar .fi-sidebar-group-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    min-height: auto;
}

.sendportal-suite-sidebar .fi-sidebar-group-collapse-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -0.5rem;
    margin-right: -0.5rem;
    margin-bottom: -0.5rem;
    margin-left: auto;
    height: 2.25rem;
    width: 2.25rem;
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    border: 0 !important;
    border-radius: 0.5rem !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--crm-text-soft) !important;
}

.sendportal-suite-sidebar .fi-sidebar-group-collapse-button .fi-icon-btn-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: inherit !important;
}

.sendportal-suite-sidebar .fi-sidebar-group:hover .fi-sidebar-group-collapse-button,
.sendportal-suite-sidebar .fi-sidebar-group.fi-active .fi-sidebar-group-collapse-button {
    color: var(--crm-text-muted) !important;
}

.sendportal-suite-sidebar .fi-sidebar-group-collapse-button:hover,
.sendportal-suite-sidebar .fi-sidebar-group-collapse-button:focus-visible {
    color: var(--crm-text-muted) !important;
    background: transparent !important;
}

.sendportal-suite-sidebar .fi-sidebar-group-collapse-button:hover {
    transform: none;
}

.sendportal-suite-sidebar .fi-sidebar-item-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    text-decoration: none !important;
}

.sendportal-suite-sidebar .fi-sidebar-item-label,
.sendportal-suite-sidebar .fi-sidebar-group-label {
    letter-spacing: -0.01em;
}

.sendportal-suite-sidebar .fi-sidebar-item-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem;
    min-height: 1.5rem;
    flex: none;
}

.sendportal-suite-sidebar .fi-sidebar-group-button:hover,
.sendportal-suite-sidebar .fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--crm-text) !important;
    transform: translateX(2px);
    text-decoration: none !important;
}

.sendportal-suite-sidebar .fi-sidebar-group-button:hover .fi-sidebar-group-label,
.sendportal-suite-sidebar .fi-sidebar-item-button:hover .fi-sidebar-item-label {
    color: var(--crm-text) !important;
}

.sendportal-suite-sidebar .fi-sidebar-item-button:hover .fi-sidebar-item-icon,
.sendportal-suite-sidebar .fi-sidebar-group-button:hover .fi-sidebar-group-collapse-button {
    color: var(--crm-text-muted) !important;
}

.sendportal-sidebar-group + .sendportal-sidebar-group {
    margin-top: 1rem;
}

.fi-sidebar-footer,
.sendportal-suite-sidebar .fi-sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(10, 15, 24, 0.18);
}

.crm-sidebar-account {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.crm-sidebar-account--compact {
    position: relative;
    width: fit-content;
    gap: 0;
}

.crm-sidebar-account__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
}

.crm-sidebar-account__trigger:focus-visible {
    outline: 2px solid rgba(138, 180, 255, 0.75);
    outline-offset: 4px;
}

.crm-sidebar-account--compact .crm-sidebar-account__avatar {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.crm-sidebar-account__popover {
    position: absolute;
    inset-inline-start: calc(100% + 0.75rem);
    bottom: 0;
    width: 18rem;
    max-width: min(18rem, calc(100vw - 7rem));
    padding: 1rem;
    border: 1px solid var(--crm-border);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(10, 15, 24, 0.98), rgba(13, 18, 30, 0.98));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--crm-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-0.35rem) translateY(0.25rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 60;
}

.crm-sidebar-account--compact:hover .crm-sidebar-account__popover,
.crm-sidebar-account--compact:focus-within .crm-sidebar-account__popover,
.crm-sidebar-account--compact.is-open .crm-sidebar-account__popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) translateY(0);
}

.crm-sidebar-account__popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.crm-sidebar-account__profile-link {
    color: var(--crm-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

.crm-sidebar-account__profile-link:hover,
.crm-sidebar-account__profile-link:focus-visible {
    color: #ffffff;
}

.crm-sidebar-account__actions--popover {
    gap: 0.85rem;
}

.crm-sidebar-account__logout-btn--compact {
    width: 100%;
}

.crm-sidebar-account__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.crm-sidebar-account__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex: none;
    box-shadow:
        0 10px 24px rgba(8, 12, 20, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.crm-sidebar-account__name {
    margin: 0;
    color: var(--crm-text);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.3;
}

.crm-sidebar-account__email {
    margin: 0.15rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-sidebar-account__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crm-sidebar-account__theme {
    width: fit-content;
    padding: 0.2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.crm-sidebar-account__logout {
    margin: 0;
}

.crm-sidebar-account__logout-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--crm-text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.crm-sidebar-account__logout-btn:hover,
.crm-sidebar-account__logout-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateX(2px);
    text-decoration: none;
}

.crm-sidebar-account__logout-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
}

.sendportal-sidebar-group-title {
    margin: 0 0 0.55rem;
    padding: 0 0.35rem;
    color: var(--crm-accent-strong);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sendportal-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sendportal-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    border-radius: 1.15rem;
    color: var(--crm-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.sendportal-sidebar-link:hover,
.sendportal-sidebar-link:focus {
    color: var(--crm-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.sendportal-sidebar-link.is-active {
    color: var(--crm-text);
    border-color: rgba(138, 180, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(138, 180, 255, 0.14), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sendportal-sidebar-link i {
    width: 1.1rem;
    color: #c6d3ea;
}

.sendportal-main {
    padding: 1.1rem;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
        linear-gradient(180deg, rgba(9, 14, 24, 0.58), rgba(9, 14, 24, 0.32));
}

.sendportal-shell .main-wrapper.sendportal-main {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
        linear-gradient(180deg, rgba(9, 14, 24, 0.58), rgba(9, 14, 24, 0.32)) !important;
}

html:not(.dark) .sendportal-main,
html:not(.dark) .sendportal-shell .main-wrapper.sendportal-main {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.03), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.94)) !important;
    background-color: #ffffff !important;
}

.sendportal-main > .main-header,
.sendportal-main > .sendportal-content {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.sendportal-sidebar .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: none;
    opacity: 1;
}

.sendportal-sidebar .close:hover,
.sendportal-sidebar .close:focus {
    color: #ffffff;
}

.sendportal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--crm-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(10, 15, 24, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sendportal-page-header__content {
    min-width: 0;
}

.sendportal-page-header__breadcrumbs {
    display: none;
    margin-bottom: 0.5rem;
}

.sendportal-page-header__breadcrumbs .fi-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sendportal-page-header__breadcrumbs .fi-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sendportal-page-header__heading {
    margin: 0;
}

.sendportal-page-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sendportal-page-header__actions > * {
    margin: 0 !important;
}

.sendportal-page-header__actions > form,
.sendportal-page-header__actions > div,
.sendportal-page-header__actions > a,
.sendportal-page-header__actions > button {
    flex-shrink: 0;
}

.sendportal-page-header .fi-breadcrumbs-item-separator {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.sendportal-page-header .fi-breadcrumbs-item-separator.ltr\:hidden {
    display: none;
}

[dir="rtl"] .sendportal-page-header .fi-breadcrumbs-item-separator.rtl\:hidden {
    display: none;
}

[dir="rtl"] .sendportal-page-header .fi-breadcrumbs-item-separator.ltr\:hidden {
    display: inline-flex;
}

.sendportal-page-header .fi-breadcrumbs-item-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.sendportal-page-header .fi-header-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 2rem;
}

html:not(.dark) .sendportal-topbar {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 55px rgba(148, 163, 184, 0.18);
}

.sendportal-topbar__title {
    margin: 0;
    color: var(--crm-text);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.sendportal-topbar__meta {
    color: var(--crm-text-muted);
    font-size: 0.88rem;
}

.sendportal-mobile-toggle {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--crm-text);
    box-shadow: none;
}

.sendportal-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.125rem;
}

html:not(.dark) .sendportal-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.96)) !important;
    border-inline-end: 1px solid rgba(15, 23, 42, 0.06);
}

html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-header {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)) !important;
}

html:not(.dark) .sendportal-sidebar .modal-content.bg-transparent,
html:not(.dark) .sendportal-sidebar .modal-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.96)) !important;
}

html:not(.dark) .modal-backdrop.show {
    opacity: 1;
    background: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .sendportal-shell .card,
html:not(.dark) .sendportal-shell .dropdown-menu,
html:not(.dark) .sendportal-shell .note-editor.note-frame,
html:not(.dark) .sendportal-shell .bootstrap-select > .dropdown-toggle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.14) !important;
}

html:not(.dark) .sendportal-shell .card-header,
html:not(.dark) .sendportal-shell .card-header.card-header-accent {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .sendportal-shell .card-body,
html:not(.dark) .sendportal-shell .card.sendportal-card .card-body,
html:not(.dark) .sendportal-shell .sendportal-card .card-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .sendportal-shell .template-preview-drawer.modal-right .modal-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)) !important;
}

html:not(.dark) .sendportal-shell .sendportal-template-preview-drawer__header {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)) !important;
}

html:not(.dark) .sendportal-shell .sendportal-template-preview-drawer__frame-wrap {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95)) !important;
}

html:not(.dark) .sendportal-shell .table {
    color: var(--crm-text);
}

html:not(.dark) .sendportal-shell .table thead th {
    background: rgba(248, 250, 252, 0.92);
    color: var(--crm-text-soft);
}

html:not(.dark) .sendportal-shell .table td {
    border-color: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .sendportal-shell .table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

html:not(.dark) .sendportal-shell .form-control,
html:not(.dark) .sendportal-shell .custom-select,
html:not(.dark) .sendportal-shell .btn-light,
html:not(.dark) .sendportal-shell .dropdown-toggle.btn-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-shell .form-control::placeholder {
    color: #94a3b8;
}

html:not(.dark) .sendportal-shell .btn-secondary,
html:not(.dark) .sendportal-shell .btn-default {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-mobile-toggle,
html:not(.dark) .crm-sidebar-account__logout-btn,
html:not(.dark) .crm-sidebar-account__theme {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--crm-text);
}

.sendportal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.sendportal-shell .sendportal-nav-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04) !important;
    list-style: none;
}

html:not(.dark) .sendportal-shell .sendportal-nav-pills {
    padding: 0.45rem;
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.14);
}

.sendportal-shell .sendportal-nav-pills .nav-item {
    margin: 0 !important;
}

.sendportal-shell .sendportal-nav-pills .nav-link,
.sendportal-shell .nav-pills.sendportal-nav-pills .nav-link,
.sendportal-shell .nav-pills a.nav-link {
    margin-right: 0 !important;
    border: 1px solid transparent !important;
    border-bottom: 0 !important;
    border-radius: 9999px !important;
    background: transparent !important;
    color: var(--crm-text-muted) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 0.72rem 1rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.sendportal-shell .sendportal-nav-pills .nav-link.active,
.sendportal-shell .sendportal-nav-pills .nav-link:hover,
.sendportal-shell .sendportal-nav-pills .nav-link:focus,
.sendportal-shell .nav-pills.sendportal-nav-pills .nav-link.active,
.sendportal-shell .nav-pills.sendportal-nav-pills .nav-link:hover {
    border-color: rgba(138, 180, 255, 0.24) !important;
    background: rgba(138, 180, 255, 0.14) !important;
    color: var(--crm-text) !important;
}

.sendportal-shell .card,
.sendportal-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(13, 18, 30, 0.76), rgba(9, 13, 23, 0.68));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
    overflow: visible;
}

.sendportal-shell .card-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.sendportal-shell .card-body,
.sendportal-shell .card-table {
    /* padding: 1rem 1.15rem; */
}

.sendportal-shell .card-body,
.sendportal-shell .card.sendportal-card .card-body,
.sendportal-shell .sendportal-card .card-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(10, 15, 24, 0.38) !important;
    color: var(--crm-text) !important;
}

.sendportal-shell .card-table {
    padding-top: 0.35rem;
}

.sendportal-shell .dropdown,
.sendportal-shell .btn-group {
    position: relative;
}

.sendportal-shell .table {
    width: 100%;
    margin-bottom: 0 !important;
    color: var(--crm-text) !important;
    background: transparent !important;
}

.sendportal-shell .table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--crm-text-soft) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

.sendportal-shell .table td,
.sendportal-shell .table th {
    padding: 0.5rem 1rem !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.sendportal-shell .table td {
    background: transparent !important;
    color: var(--crm-text) !important;
    vertical-align: middle !important;
}

.sendportal-shell .table a {
    color: var(--crm-text) !important;
}

.sendportal-shell .table a:hover {
    color: var(--crm-accent-strong) !important;
    text-decoration: none !important;
}

.sendportal-shell .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.sendportal-shell .card-table.table-responsive,
.sendportal-shell .sendportal-table-wrap.table-responsive {
    padding-top: 0.35rem;
    border-radius: 0 0 var(--crm-radius-xl) var(--crm-radius-xl);
}

.sendportal-shell .empty-table-text {
    margin: 0;
    color: var(--crm-text-muted);
}

.sendportal-shell .btn,
.sendportal-shell button.btn,
.sendportal-shell a.btn,
.sendportal-shell .btn-group > .btn,
.sendportal-shell .btn-group > .dropdown-toggle {
    border: 1px solid transparent !important;
    border-radius: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease !important;
}

.sendportal-shell .btn:hover,
.sendportal-shell button.btn:hover,
.sendportal-shell a.btn:hover,
.sendportal-shell .btn-group > .btn:hover,
.sendportal-shell .btn-group > .dropdown-toggle:hover {
    transform: translateY(-1px);
}

.sendportal-shell .btn-sm {
    padding: 0.48rem 0.85rem !important;
    font-size: 0.78rem !important;
    /* min-height: 2.35rem; */
}

.sendportal-shell .btn-md,
.sendportal-shell .btn:not(.btn-sm):not(.btn-lg) {
    padding: 0.72rem 1.05rem !important;
    font-size: 0.88rem !important;
    /* min-height: 3.1rem; */
}

.sendportal-shell .btn-wide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.sendportal-shell .btn-flat {
    min-height: 2.85rem;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    letter-spacing: 0.01em;
}

.sendportal-shell .btn-primary.btn-flat {
    border-color: rgba(138, 180, 255, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(120, 164, 255, 0.28), rgba(92, 139, 240, 0.18)),
        rgba(17, 34, 67, 0.88) !important;
    color: #f7faff !important;
    box-shadow:
        0 12px 24px rgba(34, 72, 150, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sendportal-shell .btn-primary.btn-flat:hover,
.sendportal-shell .btn-primary.btn-flat:focus {
    border-color: rgba(167, 202, 255, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(141, 184, 255, 0.32), rgba(103, 151, 248, 0.22)),
        rgba(20, 39, 75, 0.92) !important;
    color: #ffffff !important;
    box-shadow:
        0 16px 28px rgba(41, 84, 170, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.sendportal-shell .btn-light.btn-flat,
.sendportal-shell .btn-secondary.btn-flat {
    background: rgba(255, 255, 255, 0.1) !important;
}

.sendportal-shell .btn-default {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--crm-text) !important;
}

.sendportal-shell .btn-primary {
    border-color: rgba(138, 180, 255, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(120, 164, 255, 0.28), rgba(92, 139, 240, 0.18)),
        rgba(17, 34, 67, 0.88) !important;
    color: #f7faff !important;
    box-shadow:
        0 12px 24px rgba(34, 72, 150, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sendportal-shell .btn-primary:hover,
.sendportal-shell .btn-primary:focus {
    border-color: rgba(167, 202, 255, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(141, 184, 255, 0.32), rgba(103, 151, 248, 0.22)),
        rgba(20, 39, 75, 0.92) !important;
    color: #ffffff !important;
    box-shadow:
        0 16px 28px rgba(41, 84, 170, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.sendportal-shell .btn-secondary {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--crm-text) !important;
}

.sendportal-shell .btn-secondary:hover,
.sendportal-shell .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.sendportal-shell .btn-light,
.sendportal-shell .dropdown-toggle.btn-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--crm-text) !important;
}

.sendportal-shell .btn-light:hover,
.sendportal-shell .dropdown-toggle.btn-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.sendportal-shell .btn-danger {
    border-color: rgba(255, 140, 161, 0.28) !important;
    background: rgba(255, 140, 161, 0.14) !important;
    color: #fff1f4 !important;
}

.sendportal-shell .btn-danger:hover,
.sendportal-shell .btn-danger:focus {
    background: rgba(255, 140, 161, 0.22) !important;
    color: #fff !important;
}

.sendportal-shell .form-control,
.sendportal-shell .custom-select {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--crm-radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--crm-text);
    /* min-height: 3.35rem; */
    /* padding: 0.9rem 1rem; */
}

.sendportal-shell .form-control::placeholder {
    color: var(--crm-text-soft);
}

.sendportal-shell textarea.form-control {
    min-height: 11rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sendportal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sendportal-form-group {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: 0;
}

.automation-step-card .automation-step-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.automation-step-card .sendportal-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.automation-step-card .sendportal-form-group > label {
    margin: 0;
    padding-top: 0;
}

.sendportal-form-label {
    display: block;
    padding-top: 0.85rem;
    color: var(--crm-text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sendportal-form-label-with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.sendportal-form-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--crm-text-soft);
    font-size: 0.9rem;
    line-height: 1;
    cursor: help;
    transition: color 180ms ease, transform 180ms ease;
}

.sendportal-form-tooltip:hover,
.sendportal-form-tooltip:focus {
    color: var(--crm-accent-strong);
    transform: translateY(-1px);
}

.sendportal-form-field {
    min-width: 0;
}

.sendportal-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.sendportal-template-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.sendportal-template-editor-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.86) 42%, rgba(226, 232, 240, 0.9)),
        rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html.dark .sendportal-template-editor-modal__backdrop {
    background:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9) 38%, rgba(2, 6, 23, 0.96)),
        rgba(2, 6, 23, 0.92);
}

.sendportal-template-editor-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--crm-surface-soft);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.sendportal-template-editor-modal__header,
.sendportal-template-editor-modal__footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--crm-surface-elevated);
}

.sendportal-template-editor-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--crm-border);
}

.sendportal-template-editor-modal__footer {
    border-top: 1px solid var(--crm-border);
}

.sendportal-template-editor-modal__footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.sendportal-template-editor-modal__eyebrow {
    margin: 0;
    color: var(--crm-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.sendportal-template-editor-modal__title {
    margin: 0.2rem 0 0;
    color: var(--crm-text);
    font-size: 1.3rem;
    font-weight: 800;
}

.sendportal-template-editor-modal__subtitle {
    margin: 0.35rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.sendportal-template-editor-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 1rem 1.5rem 1.25rem;
}

.sendportal-template-editor-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    min-height: 0;
}

.sendportal-template-editor-modal__form .sendportal-form-group.form-group-name {
    margin-bottom: 0;
}

.sendportal-template-editor-modal__footer {
    align-items: flex-end;
    flex-wrap: wrap;
}

.sendportal-template-editor-modal__footer-test-send {
    display: grid;
    gap: 0.45rem;
    flex: 1 1 26rem;
    min-width: 0;
    max-width: 44rem;
}

.sendportal-template-editor-modal__footer-test-send-label {
    margin: 0;
    color: var(--crm-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sendportal-template-editor-modal__footer-test-send-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sendportal-template-editor-modal__footer-test-send-field {
    flex: 1 1 18rem;
    min-width: 0;
}

.sendportal-template-editor-modal__footer-test-send-field .form-control {
    min-height: var(--crm-control-compact-height);
}

.sendportal-template-editor-modal__footer .btn {
    flex: 0 0 auto;
}

.sendportal-template-editor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.sendportal-template-editor-workspace__sidebar {
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    background: var(--crm-surface-elevated);
    box-shadow: var(--crm-shadow-soft);
    overflow: hidden;
    transition: opacity 180ms ease, transform 180ms ease, max-width 180ms ease;
}

.sendportal-template-editor-workspace__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    min-height: 0;
}

.sendportal-template-editor-workspace.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 0px) minmax(0, 1fr);
    gap: 0;
}

.sendportal-template-editor-workspace.is-sidebar-collapsed .sendportal-template-editor-workspace__sidebar {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.5rem);
}

.sendportal-template-starters {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.sendportal-template-starters__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--crm-border);
    background: var(--crm-surface);
}

.sendportal-template-starters__eyebrow {
    margin: 0;
    color: var(--crm-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.sendportal-template-starters__title {
    margin: 0.2rem 0 0;
    color: var(--crm-text);
    font-size: 0.98rem;
    font-weight: 800;
}

.sendportal-template-starters__list {
    display: grid;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.1rem 0;
}

.sendportal-template-starters__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    /* padding: 0.8rem; */
    border: 1px solid var(--crm-border);
    border-radius: 1rem;
    background: var(--crm-surface);
    color: inherit;
    text-align: left;
    overflow: hidden;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sendportal-template-starters__card:hover {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.sendportal-template-starters__card:focus-visible {
    outline: none;
    border-color: var(--crm-accent);
    box-shadow: inset 0 0 0 2px var(--crm-accent);
}

.sendportal-template-starters__thumb {
    position: relative;
    height: 100%;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    overflow: hidden;
}

.sendportal-template-starters__thumb-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
    pointer-events: none;
    scrollbar-width: none;
}

.sendportal-template-starters__thumb-frame::-webkit-scrollbar {
    display: none;
}

.sendportal-template-starters__card-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.sendportal-template-starters__card-title {
    color: var(--crm-text);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.sendportal-template-starters__meta {
    margin: 0;
}

.sendportal-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sendportal-filter-bar .form-control,
.sendportal-filter-bar .bootstrap-select > .dropdown-toggle,
.sendportal-filter-bar .btn {
    margin-right: 0 !important;
    height: var(--crm-control-compact-height) !important;
    min-height: var(--crm-control-compact-height) !important;
    max-height: var(--crm-control-compact-height) !important;
}

.sendportal-filter-bar > .form-control,
.sendportal-filter-bar__item,
.sendportal-filter-bar > .btn,
.sendportal-filter-bar > a.btn {
    flex: 0 0 auto;
}

.sendportal-filter-bar > .form-control {
    min-width: 14rem;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.sendportal-filter-bar__item .form-control,
.sendportal-filter-bar__item .bootstrap-select,
.sendportal-filter-bar__item .bootstrap-select > .dropdown-toggle {
    min-width: 10.5rem;
}

.sendportal-filter-bar .form-control-sm,
.sendportal-filter-bar .bootstrap-select.form-control-sm > .dropdown-toggle,
.sendportal-filter-bar .btn.btn-md,
.sendportal-filter-bar .btn.btn-light,
.sendportal-filter-bar .btn.btn-primary {
    height: var(--crm-control-compact-height) !important;
    min-height: var(--crm-control-compact-height) !important;
    max-height: var(--crm-control-compact-height) !important;
}

.sendportal-filter-bar .btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.sendportal-filter-bar .bootstrap-select > .dropdown-toggle {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.sendportal-form-helper {
    margin: 0 0 0.4rem;
    color: var(--crm-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sendportal-form-note {
    margin: 0;
    color: var(--crm-text-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.sendportal-shell input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
}

.sendportal-shell input[type="checkbox"]:checked {
    background-color: rgba(138, 180, 255, 0.95);
    border-color: rgba(138, 180, 255, 0.95);
}

.sendportal-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-md);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sendportal-checkbox__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sendportal-checkbox__title {
    color: var(--crm-text);
    font-size: 0.94rem;
    font-weight: 600;
}

.sendportal-checkbox__meta {
    color: var(--crm-text-soft);
    font-size: 0.8rem;
}

.sendportal-callout {
    border: 1px solid rgba(255, 140, 161, 0.24);
    border-radius: var(--crm-radius-lg);
    background: rgba(255, 140, 161, 0.12);
    padding: 1.1rem 1.15rem;
    color: #ffd5de;
    box-shadow: var(--crm-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sendportal-callout__title {
    margin: 0;
    color: #fff1f4;
    font-size: 1.05rem;
    font-weight: 700;
}

.sendportal-callout__copy {
    margin: 0.45rem 0 0;
    color: #ffd5de;
    line-height: 1.65;
}

.sendportal-shell .form-control:focus,
.sendportal-shell .custom-select:focus {
    border-color: rgba(138, 180, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--crm-text);
}

.sendportal-shell .alert {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sendportal-shell .alert-danger {
    border-color: rgba(255, 140, 161, 0.26);
    background: rgba(255, 140, 161, 0.12);
    color: #ffd5de;
}

.sendportal-shell .alert-success {
    border-color: rgba(89, 215, 177, 0.24);
    background: rgba(89, 215, 177, 0.12);
    color: #d2fff2;
}

.sendportal-shell .alert-warning {
    border-color: rgba(255, 214, 131, 0.24);
    background: rgba(255, 214, 131, 0.12);
    color: #ffefc8;
}

html:not(.dark) .sendportal-shell .alert {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--crm-text) !important;
    box-shadow: 0 14px 34px rgba(148, 163, 184, 0.14) !important;
}

html:not(.dark) .sendportal-shell .alert-success {
    border-color: rgba(187, 247, 208, 0.95) !important;
    background: #f0fdf4 !important;
    color: #14532d !important;
}

html:not(.dark) .sendportal-shell .alert-danger {
    border-color: rgba(254, 202, 202, 0.95) !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

html:not(.dark) .sendportal-shell .alert-warning {
    border-color: rgba(253, 230, 138, 0.95) !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

html:not(.dark) .sendportal-shell .alert-info {
    border-color: rgba(191, 219, 254, 0.95) !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.sendportal-shell .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(12, 17, 28, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-shell .note-editor.note-frame {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-lg);
    background: rgba(10, 15, 24, 0.5);
    overflow: hidden;
}

.sendportal-shell .note-toolbar,
.sendportal-shell .note-statusbar {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.sendportal-shell .note-editing-area .note-editable {
    background: rgba(255, 255, 255, 0.03);
    color: var(--crm-text);
}

.sendportal-shell .dropdown-item {
    color: #dbe5f4;
}

.sendportal-shell .dropdown-item:hover,
.sendportal-shell .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sendportal-shell .bootstrap-select > .dropdown-toggle {
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--crm-radius-md) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--crm-text) !important;
    min-height: 3.35rem !important;
    padding: 0.9rem 1rem !important;
}

.sendportal-shell .bootstrap-select .filter-option {
    color: var(--crm-text);
}

.sendportal-shell .bootstrap-select .dropdown-toggle .filter-option,
.sendportal-shell .bootstrap-select .dropdown-toggle .filter-option-inner,
.sendportal-shell .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    display: flex;
    align-items: center;
    min-height: 1.2rem;
}

.sendportal-shell .bootstrap-select.form-control,
.sendportal-shell .bootstrap-select > .dropdown-toggle.bs-placeholder,
.sendportal-shell .bootstrap-select > .dropdown-toggle.btn-light {
    height: auto !important;
}

.sendportal-shell .badge-primary {
    border: 1px solid rgba(138, 180, 255, 0.3);
    background: rgba(138, 180, 255, 0.14);
    color: #d8e4ff;
}

.sendportal-shell .dabible-pagination {
    margin-top: 0.5rem;
}

.sendportal-shell .dabible-pagination > div {
    color: var(--crm-text-muted);
}

.sendportal-pagination-shell {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.sendportal-pagination-shell__mobile,
.sendportal-pagination-shell__desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sendportal-pagination-shell__desktop {
    display: none;
}

.sendportal-page-chip,
.sendportal-page-ellipsis {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--crm-text);
    text-decoration: none;
    box-shadow: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sendportal-page-chip:hover,
.sendportal-page-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(138, 180, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sendportal-page-chip.is-active {
    border-color: rgba(138, 180, 255, 0.32);
    background: rgba(138, 180, 255, 0.16);
    color: #fff;
    font-weight: 700;
}

.sendportal-page-chip.is-disabled,
.sendportal-page-ellipsis {
    cursor: default;
    opacity: 0.72;
}

.sendportal-page-ellipsis {
    min-width: 1.8rem;
    padding: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--crm-text-soft);
}

.sendportal-shell .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem;
    margin-bottom: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
}

.sendportal-shell .page-item {
    display: inline-flex;
}

.sendportal-shell .page-link,
.sendportal-shell .pagination .page-link {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--crm-text) !important;
    box-shadow: none !important;
}

.sendportal-shell .page-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.sendportal-shell .page-item.active .page-link {
    border-color: rgba(138, 180, 255, 0.32) !important;
    background: rgba(138, 180, 255, 0.16) !important;
    color: #fff !important;
}

.sendportal-shell .page-item.disabled .page-link {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--crm-text-soft) !important;
}

.sendportal-shell .CodeMirror {
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-lg);
    background: rgba(8, 12, 20, 0.88);
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-shell .CodeMirror-gutters {
    border-right-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.sendportal-shell .template-preview {
    height: 600px;
}

.sendportal-shell .template-card {
    overflow: hidden;
}

.sendportal-shell .template-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sendportal-shell .template-card .card-header {
    gap: 0.75rem;
}

.sendportal-shell .template-card__title-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.sendportal-shell .template-card__title {
    min-width: 0;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sendportal-shell .template-card__badge {
    align-self: flex-start;
    padding: 0.24rem 0.55rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--crm-accent-strong);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.sendportal-shell .template-card__actions {
    flex: 0 0 auto;
    gap: 0.35rem;
}

.sendportal-shell .template-card__action-group {
    gap: 0.35rem;
}

.sendportal-shell .template-card .template-card__action {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.1;
    border-radius: 9999px;
    white-space: nowrap;
}

.sendportal-shell .template-card__menu {
    flex: 0 0 auto;
}

.sendportal-shell .template-card__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 !important;
}

.sendportal-shell .template-card__menu-toggle::after {
    display: none;
}

.sendportal-shell .template-card__dropdown-menu {
    min-width: 10rem;
    padding: 0.35rem;
    border-radius: 1rem;
}

.sendportal-shell .template-card__dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

.sendportal-shell .template-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.sendportal-shell .template-card .template-panel__preview {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    transition:
        height 180ms ease,
        box-shadow 180ms ease;
}

.sendportal-shell .template-card.is-expanded .template-panel__preview {
    height: 600px;
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-shell .template-card .template-panel__preview iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    border: 0;
}

.sendportal-shell .template-card .card-header .js-open-template-preview {
    margin-right: 0.25rem;
}

.sendportal-shell .template-grid-section {
    display: grid;
    gap: 0.95rem;
}

.sendportal-shell .template-grid-section + .template-grid-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--crm-border);
}

.sendportal-shell .template-grid-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.sendportal-shell .template-grid-section__title {
    margin: 0;
    color: var(--crm-text);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sendportal-shell .template-grid-section__copy {
    margin: 0.25rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.86rem;
}

.sendportal-shell .template-preview--clickable {
    cursor: pointer;
}

.sendportal-shell .template-preview__launch {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    padding: 0.8rem;
    border: 0;
    background: transparent;
    transition: none;
}

.sendportal-shell .template-preview__launch:hover,
.sendportal-shell .template-preview__launch:focus {
    background: transparent;
}

.sendportal-shell .template-preview__launch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--crm-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--crm-shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sendportal-shell .template-preview__launch:focus {
    outline: none;
}

.sendportal-shell .template-preview__launch:hover .template-preview__launch-chip,
.sendportal-shell .template-preview__launch:focus-visible .template-preview__launch-chip {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), var(--crm-shadow-soft);
}

.sendportal-shell .template-preview--clickable iframe {
    pointer-events: none;
}

.sendportal-shell .template-preview-drawer.modal-right .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: min(72rem, 94vw);
    max-width: none;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
}

.sendportal-shell .template-preview-drawer.modal-right.show .modal-dialog {
    transform: translateX(0);
}

.sendportal-shell .template-preview-drawer.modal-right .modal-content {
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 1.4rem 0 0 1.4rem;
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow);
    overflow: hidden;
}

.sendportal-shell .template-preview-drawer.modal-right .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.sendportal-shell .sendportal-template-preview-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--crm-border);
    background: var(--crm-surface-elevated);
}

.sendportal-shell .sendportal-template-preview-drawer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.sendportal-shell .sendportal-template-preview-drawer__actions .btn {
    padding: 0.42rem 0.72rem !important;
    font-size: 0.74rem !important;
    line-height: 1.1 !important;
}

.sendportal-shell .sendportal-template-preview-drawer__eyebrow {
    color: var(--crm-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sendportal-shell .sendportal-template-preview-drawer__title {
    margin: 0.15rem 0 0;
    color: var(--crm-text);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.sendportal-shell .sendportal-template-preview-drawer__subtitle {
    margin: 0.45rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.sendportal-shell .sendportal-template-preview-drawer__close {
    opacity: 1;
    color: var(--crm-text);
    text-shadow: none;
}

.sendportal-shell .sendportal-template-preview-drawer__frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem;
    background: var(--crm-surface-soft);
}

.sendportal-shell .sendportal-template-preview-drawer__frame-wrap iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: var(--crm-shadow-soft);
}

.sendportal-shell .sendportal-template-preview-drawer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--crm-border);
    background: var(--crm-surface-elevated);
}

.sendportal-shell .sendportal-template-preview-drawer__footer-copy {
    color: var(--crm-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.sendportal-widget-grid {
    display: grid;
    gap: 1rem;
}

.sendportal-widget-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sendportal-stat {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crm-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sendportal-stat__body {
    flex: 1 1 auto;
    padding: 1rem 1.1rem;
}

.sendportal-stat__value {
    margin: 0;
    color: var(--crm-text);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.sendportal-stat__label {
    margin: 0.35rem 0 0;
    color: var(--crm-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sendportal-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--crm-accent-strong);
}

html:not(.dark) .sendportal-stat {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14);
}

html:not(.dark) .sendportal-stat__icon {
    border-left-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.94)),
        rgba(241, 245, 249, 0.96);
}

.sendportal-table-shell + .sendportal-table-shell {
    margin-top: 1.25rem;
}

.sendportal-table-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sendportal-table-shell__title {
    margin: 0;
    color: var(--crm-text);
    font-size: 1rem;
    font-weight: 650;
}

.sendportal-table-shell__copy {
    margin: 0.3rem 0 0;
    color: var(--crm-text-muted);
    font-size: 0.9rem;
}

.sendportal-table-wrap {
    overflow-x: auto;
}

.sendportal-section-space {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .sendportal-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .sendportal-suite-sidebar {
        min-height: 100%;
    }

    .sendportal-widget-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sendportal-shell .template-preview-drawer.modal-right .modal-dialog {
        width: 100vw;
        max-width: none;
        height: 100vh;
    }

    .sendportal-shell .template-preview-drawer.modal-right .modal-content {
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .sendportal-main {
        padding: 0.85rem;
    }

    .sendportal-main > .main-header,
    .sendportal-main > .sendportal-content {
        padding-inline: 1rem;
    }

    .sendportal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sendportal-page-header {
        margin-bottom: 1.5rem;
    }

    .sendportal-widget-grid--four {
        grid-template-columns: 1fr;
    }

    .sendportal-nav-pills {
        width: 100%;
        border-radius: 1.2rem;
    }

    .sendportal-form-group {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .sendportal-form-label {
        padding-top: 0;
    }

    .sendportal-form-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .sendportal-template-editor-modal__header,
    .sendportal-template-editor-modal__footer {
        padding: 1rem 1.1rem;
    }

    .sendportal-template-editor-modal__body {
        padding: 0.9rem 1.1rem 1.1rem;
    }

    .sendportal-template-editor-modal__footer-test-send-row {
        align-items: stretch;
        flex-direction: column;
    }

    .sendportal-template-editor-modal__footer-test-send-field {
        max-width: none;
    }

    .sendportal-template-editor-modal__footer-test-send-row .btn {
        width: 100%;
    }

    .sendportal-template-editor-modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .sendportal-template-editor-modal__footer-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
    }

    .sendportal-template-editor-modal__footer .btn {
        width: 100%;
    }

    .sendportal-template-editor-workspace {
        grid-template-columns: 1fr;
    }

    .sendportal-template-editor-workspace.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sendportal-shell .sendportal-template-preview-drawer__header {
        padding: 1rem 1.1rem;
    }

    .sendportal-shell .sendportal-template-preview-drawer__actions {
        justify-content: flex-start;
    }

    .sendportal-shell .sendportal-template-preview-drawer__frame-wrap {
        padding: 0.85rem;
    }

    .sendportal-shell .sendportal-template-preview-drawer__footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.95rem 1.1rem;
    }

    .sendportal-shell .sendportal-template-preview-drawer__title {
        font-size: 1.1rem;
    }

    .sendportal-shell .sendportal-template-preview-drawer__subtitle {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .sendportal-main > .main-header,
    .sendportal-main > .sendportal-content {
        padding-inline: 1.5rem;
    }

    .sendportal-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sendportal-page-header__breadcrumbs {
        display: block;
    }

    [dir="rtl"] .sendportal-page-header .fi-breadcrumbs-item-separator.rtl\:hidden {
        display: inline-flex;
    }

    .sendportal-page-header__actions {
        margin-top: 1.75rem;
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .sendportal-main > .main-header,
    .sendportal-main > .sendportal-content {
        padding-inline: 2rem;
    }
}

.crm-user-card--interactive {
    width: 100%;
    text-align: left;
    appearance: none;
    cursor: pointer;
}

.crm-user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
    border-color: rgba(251, 191, 36, 0.35);
}

.crm-user-card--interactive:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.crm-user-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.crm-user-card__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.crm-user-card__avatar-image,
.crm-user-card__avatar-fallback {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    box-shadow:
        0 10px 22px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.crm-user-card__avatar-image {
    object-fit: cover;
    background: #0f172a;
}

.crm-user-card__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(234, 179, 8, 0.12) 100%);
    color: #fde68a;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.crm-user-card__avatar-fallback.hidden {
    display: none;
}

.crm-user-card__name {
    margin: 0;
    color: var(--crm-text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.crm-user-card__subtext {
    margin: 0.28rem 0 0;
    color: var(--crm-text-soft);
    font-size: 0.82rem;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.crm-user-card__contact-stack {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.72rem;
}

.crm-user-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.crm-user-card__contact-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.crm-user-card__contact,
.crm-user-card__metric,
.crm-user-card__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.crm-user-card__contact {
    color: #dfe7f5;
    font-size: 0.84rem;
    font-weight: 500;
    min-width: 0;
    max-width: 100%;
    padding: 0 0.42rem;
    /* border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04); */
}

.crm-user-card__contact--full {
    width: 100%;
}

.crm-user-card__contact--missing {
    /* border-color: rgba(255, 140, 161, 0.22);
    background: rgba(255, 140, 161, 0.08); */
}

.crm-user-card__contact-icon,
.crm-user-card__metric-icon,
.crm-user-card__button-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.crm-user-card__contact-icon,
.crm-user-card__metric-icon {
    color: #94a3b8;
}

.crm-user-card__contact-text {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.crm-user-card__contact-badge,
.crm-user-card__contact-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-user-card__contact-badge {
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid rgba(138, 180, 255, 0.16);
    border-radius: 9999px;
    background: rgba(138, 180, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.crm-user-card__contact-badge--missing {
    border-color: rgba(255, 140, 161, 0.24);
    background: rgba(255, 140, 161, 0.12);
}

.crm-user-card__contact-empty {
    padding: 0.42rem 0.72rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: var(--crm-text-soft);
    font-size: 0.8rem;
}

.crm-user-card__contact-icon--empty {
    color: #ff9aab;
}

.crm-user-card__contact--missing .crm-user-card__contact-text,
.crm-user-card__contact--missing .crm-user-card__contact-icon {
    color: #ffd5de;
}

.crm-user-card__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.crm-user-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.crm-user-card__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.crm-user-card__role {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 9999px;
    background: rgba(255, 251, 235, 0.95);
    color: #b45309;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.crm-user-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 9999px;
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.crm-user-card__status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.crm-user-card__status-badge--unsubscribed {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(255, 251, 235, 0.95);
    color: #b45309;
}

.crm-user-card__status-badge--bad-email {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}

.crm-user-card__status-badge--suppressed {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.95);
    color: #475569;
}

.crm-user-card__empty {
    color: #94a3b8;
    font-size: 0.95rem;
}

.crm-user-card__summary {
    margin: 0;
    color: #aebbd0;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crm-user-card__meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.crm-user-card__meta-pill {
    padding: 0.32rem 0.56rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--crm-text-soft);
    font-size: 0.72rem;
}

.crm-user-card__meta-label {
    color: var(--crm-text-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.crm-user-card__meta-value {
    color: #e7eefb;
    font-size: 0.72rem;
    font-weight: 600;
}

html:not(.dark) .crm-user-card {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    box-shadow: 0 24px 46px rgba(148, 163, 184, 0.16);
}

html:not(.dark) .crm-user-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 30px 56px rgba(148, 163, 184, 0.2);
}

html:not(.dark) .crm-user-card--interactive:focus-visible {
    outline-color: rgba(37, 99, 235, 0.45);
}

html:not(.dark) .crm-user-card__avatar-image,
html:not(.dark) .crm-user-card__avatar-fallback {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow:
        0 12px 28px rgba(148, 163, 184, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html:not(.dark) .crm-user-card__avatar-image {
    background: #eef2ff;
}

html:not(.dark) .crm-user-card__avatar-fallback {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #1d4ed8;
}

html:not(.dark) .crm-user-card__name {
    color: var(--crm-text);
}

html:not(.dark) .crm-user-card__subtext,
html:not(.dark) .crm-user-card__empty {
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-user-card__contact {
    color: var(--crm-text);
}

html:not(.dark) .crm-user-card__contact-icon,
html:not(.dark) .crm-user-card__metric-icon {
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-user-card__contact-badge {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.08);
}

html:not(.dark) .crm-user-card__contact-badge--missing {
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(254, 226, 226, 0.96);
}

html:not(.dark) .crm-user-card__contact-empty {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-user-card__contact-icon--empty {
    color: #dc2626;
}

html:not(.dark) .crm-user-card__contact--missing .crm-user-card__contact-text,
html:not(.dark) .crm-user-card__contact--missing .crm-user-card__contact-icon {
    color: #b91c1c;
}

html:not(.dark) .crm-user-card__role {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.96);
    color: #92400e;
}

html:not(.dark) .crm-user-card__tag {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(239, 246, 255, 0.96);
    color: #1d4ed8;
}

html:not(.dark) .crm-user-card__status-badge--unsubscribed {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.96);
    color: #92400e;
}

html:not(.dark) .crm-user-card__status-badge--bad-email {
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(254, 242, 242, 0.96);
    color: #b91c1c;
}

html:not(.dark) .crm-user-card__status-badge--suppressed {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(248, 250, 252, 0.96);
    color: #475569;
}

html:not(.dark) .crm-user-card__summary {
    color: var(--crm-text-muted);
}

html:not(.dark) .crm-user-card__meta-line {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .crm-user-card__meta-pill {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-user-card__meta-label {
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-user-card__meta-value {
    color: var(--crm-text);
}

.dark .crm-user-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(24, 24, 28, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

.dark .crm-user-card:hover {
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 30px 56px rgba(0, 0, 0, 0.36);
}

.dark .crm-user-card__avatar-image,
.dark .crm-user-card__avatar-fallback {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dark .crm-user-card__avatar-fallback {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(217, 119, 6, 0.12) 100%);
    color: #fbbf24;
}

.dark .crm-user-card__name {
    color: #f8fafc;
}

.dark .crm-user-card__subtext,
.dark .crm-user-card__empty {
    color: #94a3b8;
}

.dark .crm-user-card__contact {
    color: #e5e7eb;
    /* background: rgba(255, 255, 255, 0.04); */
}

.dark .crm-user-card__contact--missing {
    border-color: rgba(255, 140, 161, 0.24);
    /* background: rgba(127, 29, 29, 0.2); */
}

.dark .crm-user-card__contact-icon,
.dark .crm-user-card__metric-icon {
    color: #64748b;
}

.dark .crm-user-card__contact-badge {
    border-color: rgba(138, 180, 255, 0.14);
    background: rgba(138, 180, 255, 0.08);
}

.dark .crm-user-card__contact-badge--missing {
    border-color: rgba(255, 140, 161, 0.22);
    background: rgba(255, 140, 161, 0.14);
}

.dark .crm-user-card__contact-empty {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.dark .crm-user-card__role {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.dark .crm-user-card__tag {
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.dark .crm-user-card__status-badge--unsubscribed {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.dark .crm-user-card__status-badge--bad-email {
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.24);
    color: #fca5a5;
}

.dark .crm-user-card__status-badge--suppressed {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(71, 85, 105, 0.22);
    color: #cbd5e1;
}

.dark .crm-user-card__summary {
    color: #cbd5e1;
}

.dark .crm-user-card__meta-line {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .crm-user-table--cards .fi-ta-record {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .crm-user-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .crm-user-card__top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .crm-user-table--cards .fi-ta-record {
        width: calc(50% - 0.625rem);
        max-width: calc(50% - 0.625rem);
        flex-basis: calc(50% - 0.625rem);
    }
}

.crm-suite-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .crm-suite-shell {
        position: sticky;
        top: 0;
        flex: 0 0 auto;
        align-self: flex-start;
        height: 100vh;
        z-index: 40;
    }
}

.api-shell {
    overflow: hidden;
    margin: 0;
}

.api-shell .scramble-suite-shell {
    min-height: 100vh;
}

.api-shell .scramble-docs-frame {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(127, 168, 255, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(9, 17, 31, 0.98) 0%, rgba(11, 21, 36, 0.98) 100%);
}

.api-shell elements-api {
    display: block;
    width: 100%;
    height: 100vh;
}

.crm-suite-rail {
    position: relative;
    z-index: 40;
    width: 5.5rem;
    flex: 0 0 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0.85rem;
    overflow: visible;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(13, 16, 23, 0.98) 0%, rgba(10, 12, 18, 0.98) 100%);
}

.crm-suite-rail__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-suite-rail__brand img {
    width: 100%;
    height: auto;
    display: block;
}

.crm-suite-rail__nav {
    display: grid;
    gap: 0.8rem;
    width: 100%;
}

.crm-suite-rail__account {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.crm-suite-rail__item {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 0.8rem 0.35rem;
    border-radius: 1.15rem;
    color: #8f99ad;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.crm-suite-rail__item:hover {
    transform: translateY(-1px);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.crm-suite-rail__item.is-active {
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.12));
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.24);
}

.crm-suite-rail__icon {
    width: 1.4rem;
    height: 1.4rem;
}

.crm-suite-rail__label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.crm-child-sidebar,
.sendportal-suite-sidebar {
    width: var(--crm-sidebar-width);
    min-width: var(--crm-sidebar-width);
    max-width: var(--crm-sidebar-width);
}

.sendportal-suite-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.theme-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.theme-logo img {
    display: block;
    height: 100%;
    width: auto;
}

@media (max-width: 1023px) {
    .crm-suite-shell {
        position: static;
        height: auto;
        min-height: auto;
    }

    .crm-suite-rail {
        display: flex !important;
    }

    .crm-child-sidebar,
    .sendportal-suite-sidebar {
        width: calc(100% - 5.5rem);
        min-width: calc(100% - 5.5rem);
        max-width: calc(100% - 5.5rem);
    }
}

html:not(.dark) body,
html:not(.dark) .fi-body,
html:not(.dark) .fi-layout,
html:not(.dark) .fi-main,
html:not(.dark) .fi-page,
html:not(.dark) .crm-theme,
html:not(.dark) .sendportal-shell,
html:not(.dark) .api-shell {
    --crm-bg: #fafcff;
    --crm-bg-secondary: #f4f7fc;
    --crm-surface: rgba(255, 255, 255, 0.97);
    --crm-surface-elevated: rgba(255, 255, 255, 0.99);
    --crm-surface-soft: rgba(15, 23, 42, 0.03);
    --crm-border: rgba(15, 23, 42, 0.06);
    --crm-border-strong: rgba(15, 23, 42, 0.11);
    --crm-text: #0f172a;
    --crm-text-muted: #334155;
    --crm-text-soft: #475569;
    --crm-accent: #2563eb;
    --crm-accent-strong: #1d4ed8;
    --crm-accent-soft: rgba(37, 99, 235, 0.1);
    --crm-highlight: rgba(15, 23, 42, 0.08);
    color: var(--crm-text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.04), transparent 20%),
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.04), transparent 18%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.03), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
    background-attachment: fixed;
}

html:not(.dark) .fi-layout::before {
    background:
        radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.03), transparent 14%),
        radial-gradient(circle at 86% 14%, rgba(148, 163, 184, 0.03), transparent 16%),
        radial-gradient(circle at 52% 100%, rgba(251, 191, 36, 0.025), transparent 20%);
}

html:not(.dark) .fi-sidebar,
html:not(.dark) .sendportal-suite-sidebar,
html:not(.dark) .crm-suite-rail {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.9)) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    border-inline-end: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 16px 38px rgba(148, 163, 184, 0.06);
}

html:not(.dark) .fi-sidebar-header,
html:not(.dark) .fi-topbar,
html:not(.dark) .fi-topbar > nav,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-header {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.95)),
        rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) .fi-sidebar-item-button,
html:not(.dark) .fi-sidebar-group-button,
html:not(.dark) .fi-sidebar-item-label,
html:not(.dark) .fi-sidebar-group-label,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-button,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-group-button,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-label,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-group-label {
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .fi-sidebar-item-icon,
html:not(.dark) .fi-sidebar-group-icon,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-icon,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-group-icon {
    color: #64748b !important;
}

html:not(.dark) .fi-sidebar-item-button:hover,
html:not(.dark) .fi-sidebar-group-button:hover,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-button:hover,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-group-button:hover {
    background: rgba(37, 99, 235, 0.05) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-sidebar-item-active .fi-sidebar-item-button,
html:not(.dark) .fi-sidebar-item-button[aria-current="page"],
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-active .fi-sidebar-item-button,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-button[aria-current="page"] {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--crm-accent-strong) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html:not(.dark) .fi-sidebar-item-active .fi-sidebar-item-icon,
html:not(.dark) .fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-active .fi-sidebar-item-icon,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon {
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .fi-sidebar-footer,
html:not(.dark) .sendportal-suite-sidebar .fi-sidebar-footer {
    border-top-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
        rgba(255, 255, 255, 0.84);
}

html:not(.dark) .fi-theme-switcher {
    background: rgba(241, 245, 249, 0.92);
}

html:not(.dark) .fi-theme-switcher-btn.fi-active,
html:not(.dark) .fi-theme-switcher-btn[class*="bg-gray-50"][class*="text-primary-500"] {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #1d4ed8 !important;
}

html:not(.dark) .fi-tabs {
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html:not(.dark) .fi-tabs-item {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--crm-text) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html:not(.dark) .fi-tabs-item:hover,
html:not(.dark) .fi-tabs-item[aria-selected="true"],
html:not(.dark) .fi-tabs-item.fi-active {
    border-color: rgba(37, 99, 235, 0.22) !important;
    background: rgba(241, 245, 249, 0.98) !important;
    color: var(--crm-accent-strong) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 18px rgba(37, 99, 235, 0.08) !important;
}

html:not(.dark) .fi-tabs-item .fi-badge {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(248, 250, 252, 0.98) !important;
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-tabs-item.fi-active .fi-badge.fi-color-primary,
html:not(.dark) .fi-tabs-item.fi-active .fi-badge.fi-color-custom,
html:not(.dark) .fi-tabs-item[aria-selected="true"] .fi-badge.fi-color-primary,
html:not(.dark) .fi-tabs-item[aria-selected="true"] .fi-badge.fi-color-custom {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-input-wrp,
html:not(.dark) .fi-select-input,
html:not(.dark) .fi-input,
html:not(.dark) .choices__inner {
    border-color: rgba(148, 163, 184, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.96)),
        rgba(255, 255, 255, 0.98) !important;
    color: var(--crm-text) !important;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.16),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 18px rgba(15, 23, 42, 0.03) !important;
}

html:not(.dark) .fi-ta-search-field .fi-input-wrp {
    border-color: rgba(148, 163, 184, 0.26) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.96)),
        rgba(255, 255, 255, 0.98) !important;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.16),
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 18px rgba(15, 23, 42, 0.03) !important;
}

html:not(.dark) .fi-ta-search-field .fi-input,
html:not(.dark) .fi-ta-search-field input,
html:not(.dark) .fi-ta-search-field .fi-input-wrp-input,
html:not(.dark) .fi-ta-search-field .fi-input-wrp-prefix,
html:not(.dark) .fi-input,
html:not(.dark) .fi-select-input {
    color: var(--crm-text) !important;
    background: transparent !important;
}

html:not(.dark) .fi-input::placeholder,
html:not(.dark) .fi-ta-search-field input::placeholder {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-input-wrp:focus-within,
html:not(.dark) .fi-select-input:focus,
html:not(.dark) .fi-input:focus {
    border-color: rgba(37, 99, 235, 0.28) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

html:not(.dark) .fi-input-wrp-prefix,
html:not(.dark) .fi-input-wrp-suffix,
html:not(.dark) .fi-input-wrp-icon {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-dropdown-panel {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html:not(.dark) .fi-dropdown-list {
    background: transparent !important;
}

html:not(.dark) .fi-dropdown-list-item {
    background: transparent !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-dropdown-list-item:hover,
html:not(.dark) .fi-dropdown-list-item:focus-visible {
    background: rgba(241, 245, 249, 0.98) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .crm-panel,
html:not(.dark) .crm-panel--soft,
html:not(.dark) .crm-card,
html:not(.dark) .crm-stat-card,
html:not(.dark) .crm-empty-state,
html:not(.dark) .fi-empty-state,
html:not(.dark) .fi-ta-empty-state {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86));
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.12);
}

html:not(.dark) .crm-card__eyebrow,
html:not(.dark) .crm-pill__label,
html:not(.dark) .crm-stat-card__label {
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-tone-badge,
html:not(.dark) .crm-status-pill,
html:not(.dark) .crm-pill {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(241, 245, 249, 0.92);
    color: var(--crm-text);
}

html:not(.dark) .crm-table th {
    color: var(--crm-text-soft);
}

html:not(.dark) .crm-table td {
    border-top-color: rgba(15, 23, 42, 0.08);
    color: var(--crm-text);
}

html:not(.dark) .crm-suite-rail__brand {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.12);
}

html:not(.dark) .crm-suite-rail__item {
    color: #64748b;
}

html:not(.dark) .crm-suite-rail__item:hover {
    color: var(--crm-text);
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.12);
}

html:not(.dark) .crm-suite-rail__item.is-active {
    color: var(--crm-text);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(251, 191, 36, 0.08));
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 16px 28px rgba(148, 163, 184, 0.16);
}

html:not(.dark) .crm-sidebar-account--compact .crm-sidebar-account__avatar {
    box-shadow:
        0 10px 24px rgba(148, 163, 184, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.12);
}

html:not(.dark) .crm-sidebar-account__popover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.88));
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 70px rgba(148, 163, 184, 0.22);
}

html:not(.dark) .crm-sidebar-account__logout-btn,
html:not(.dark) .crm-sidebar-account__theme {
    background: rgba(241, 245, 249, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--crm-text);
}

html:not(.dark) .crm-sidebar-account__logout-btn:hover,
html:not(.dark) .crm-sidebar-account__logout-btn:focus-visible {
    background: rgba(226, 232, 240, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--crm-text);
}

html:not(.dark) .api-shell .scramble-docs-frame {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(238, 244, 251, 0.98) 100%);
}

html:not(.dark) .fi-section,
html:not(.dark) .fi-ta,
html:not(.dark) .fi-in-entry,
html:not(.dark) .fi-wi-widget {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)) !important;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.12) !important;
}

html:not(.dark) .fi-fo-field-wrp {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html:not(.dark) .fi-wi-stats-overview-stat {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)) !important;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.12) !important;
}

html:not(.dark) .fi-wi-stats-overview-stat-label {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-wi-stats-overview-stat-value {
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-wi-stats-overview-stat-description {
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .fi-wi-stats-overview-stat-description-icon {
    color: var(--crm-accent) !important;
}

html:not(.dark) .fi-wi-chart,
html:not(.dark) .fi-wi-chart .fi-section {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)) !important;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.12) !important;
}

html:not(.dark) .fi-ta-header-toolbar {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
        rgba(255, 255, 255, 0.94) !important;
}

html:not(.dark) .fi-ta-content,
html:not(.dark) .fi-ta-ctn {
    background: transparent !important;
}

html:not(.dark) .fi-ta-table thead {
    background: rgba(248, 250, 252, 0.92) !important;
}

html:not(.dark) .fi-ta-table thead th {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-ta-record:hover,
html:not(.dark) .fi-ta-row:hover {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02)),
        rgba(255, 255, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html:not(.dark) .fi-ta-record:has(input[type="checkbox"]:checked),
html:not(.dark) .fi-ta-row:has(.fi-ta-record-checkbox:checked),
html:not(.dark) .fi-ta-row:has(.fi-ta-page-checkbox:checked) {
    background: rgba(37, 99, 235, 0.08) !important;
}

html:not(.dark) .fi-ta-record > td,
html:not(.dark) .fi-ta-cell {
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-ta-text-item-label {
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-ta .text-gray-700,
html:not(.dark) .fi-ta .text-gray-600,
html:not(.dark) .fi-section .text-gray-700,
html:not(.dark) .fi-section .text-gray-600,
html:not(.dark) .fi-modal-window .text-gray-700,
html:not(.dark) .fi-modal-window .text-gray-600,
html:not(.dark) .fi-dropdown-panel .text-gray-700,
html:not(.dark) .fi-dropdown-panel .text-gray-600 {
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .fi-ta .text-gray-500,
html:not(.dark) .fi-ta .text-gray-400,
html:not(.dark) .fi-section .text-gray-500,
html:not(.dark) .fi-section .text-gray-400,
html:not(.dark) .fi-modal-window .text-gray-500,
html:not(.dark) .fi-modal-window .text-gray-400,
html:not(.dark) .fi-dropdown-panel .text-gray-500,
html:not(.dark) .fi-dropdown-panel .text-gray-400 {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-color-primary {
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .fi-color-gray,
html:not(.dark) .fi-badge-color-gray,
html:not(.dark) .fi-status-badge-color-gray {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(241, 245, 249, 0.92) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-ta-filters-summary,
html:not(.dark) .fi-ta-grouping-settings,
html:not(.dark) .fi-ta-selection-indicator {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(241, 245, 249, 0.92) !important;
    color: var(--crm-text-muted) !important;
}

html:not(.dark) .fi-ta-filter-indicators {
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9)),
        rgba(255, 255, 255, 0.88) !important;
}

html:not(.dark) .fi-ta-filter-indicators > div:first-child > span {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-ta-filter-indicators .fi-icon-btn {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-ta-filter-indicators .fi-icon-btn:hover,
html:not(.dark) .fi-ta-filter-indicators .fi-icon-btn:focus-visible {
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-icon-btn:not(.fi-btn-color-primary):not(.fi-btn-color-gray) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-icon-btn:not(.fi-btn-color-primary):not(.fi-btn-color-gray):hover,
html:not(.dark) .fi-icon-btn:not(.fi-btn-color-primary):not(.fi-btn-color-gray):focus-visible {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94)),
        rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-icon-btn-badge-ctn {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12) !important;
}

html:not(.dark) .fi-icon-btn-badge-ctn .fi-badge.fi-color-primary,
html:not(.dark) .fi-icon-btn-badge-ctn .fi-badge.fi-color-custom {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .fi-btn-color-primary,
html:not(.dark) .fi-btn-color-primary:is(.fi-color-custom) {
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.94)) !important;
    border-color: rgba(29, 78, 216, 0.22) !important;
    color: #ffffff !important;
    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark) .fi-btn-color-primary:hover,
html:not(.dark) .fi-btn-color-primary:focus,
html:not(.dark) .fi-btn-color-primary:is(.fi-color-custom):hover,
html:not(.dark) .fi-btn-color-primary:is(.fi-color-custom):focus {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 1), rgba(29, 78, 216, 0.96)) !important;
    border-color: rgba(29, 78, 216, 0.3) !important;
    color: #ffffff !important;
    box-shadow:
        0 16px 28px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html:not(.dark) .fi-btn-color-gray {
    background: rgba(241, 245, 249, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-btn-color-gray:hover,
html:not(.dark) .fi-btn-color-gray:focus {
    background: rgba(226, 232, 240, 0.96) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .sendportal-shell .btn-primary,
html:not(.dark) .sendportal-shell .btn-primary.btn-flat {
    border-color: rgba(29, 78, 216, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.94)) !important;
    color: #ffffff !important;
    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark) .sendportal-shell .btn-primary:hover,
html:not(.dark) .sendportal-shell .btn-primary:focus,
html:not(.dark) .sendportal-shell .btn-primary.btn-flat:hover,
html:not(.dark) .sendportal-shell .btn-primary.btn-flat:focus {
    border-color: rgba(29, 78, 216, 0.3) !important;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 1), rgba(29, 78, 216, 0.96)) !important;
    color: #ffffff !important;
    box-shadow:
        0 16px 28px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html:not(.dark) .sendportal-shell .btn-secondary,
html:not(.dark) .sendportal-shell .btn-secondary.btn-flat,
html:not(.dark) .sendportal-shell .btn-light,
html:not(.dark) .sendportal-shell .dropdown-toggle.btn-light,
html:not(.dark) .sendportal-shell .btn-light.btn-flat,
html:not(.dark) .sendportal-shell .btn-default {
    background: rgba(241, 245, 249, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .sendportal-shell .btn-secondary:hover,
html:not(.dark) .sendportal-shell .btn-secondary:focus,
html:not(.dark) .sendportal-shell .btn-secondary.btn-flat:hover,
html:not(.dark) .sendportal-shell .btn-secondary.btn-flat:focus,
html:not(.dark) .sendportal-shell .btn-light:hover,
html:not(.dark) .sendportal-shell .dropdown-toggle.btn-light:hover,
html:not(.dark) .sendportal-shell .btn-light.btn-flat:hover,
html:not(.dark) .sendportal-shell .btn-light.btn-flat:focus,
html:not(.dark) .sendportal-shell .btn-default:hover,
html:not(.dark) .sendportal-shell .btn-default:focus {
    background: rgba(226, 232, 240, 0.96) !important;
    color: var(--crm-text) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

html:not(.dark) .sendportal-shell .btn-danger {
    border-color: rgba(239, 68, 68, 0.24) !important;
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.98), rgba(220, 38, 38, 0.94)) !important;
    color: #ffffff !important;
    box-shadow:
        0 12px 24px rgba(220, 38, 38, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark) .sendportal-shell .btn-danger:hover,
html:not(.dark) .sendportal-shell .btn-danger:focus {
    border-color: rgba(185, 28, 28, 0.3) !important;
    background: linear-gradient(180deg, rgba(239, 68, 68, 1), rgba(185, 28, 28, 0.96)) !important;
    color: #ffffff !important;
}

html:not(.dark) .sendportal-shell .btn-group > .dropdown-toggle {
    min-height: 2.85rem !important;
    padding: 0.72rem 1rem !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        rgba(255, 255, 255, 0.94) !important;
    color: var(--crm-text) !important;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1) !important;
}

html:not(.dark) .sendportal-shell .btn-group > .dropdown-toggle:hover,
html:not(.dark) .sendportal-shell .btn-group > .dropdown-toggle:focus {
    border-color: rgba(37, 99, 235, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95)),
        rgba(255, 255, 255, 0.98) !important;
    color: var(--crm-text) !important;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.14) !important;
}

html:not(.dark) .sendportal-shell .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(148, 163, 184, 0.18);
}

html:not(.dark) .sendportal-shell .dropdown-item {
    color: var(--crm-text);
    border-radius: 0.8rem;
}

html:not(.dark) .sendportal-shell .dropdown-item:hover,
html:not(.dark) .sendportal-shell .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-shell .badge,
html:not(.dark) .sendportal-shell .badge-light,
html:not(.dark) .sendportal-shell .badge-success,
html:not(.dark) .sendportal-shell .badge-danger,
html:not(.dark) .sendportal-shell .badge-primary {
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 700;
    letter-spacing: 0.01em;
}

html:not(.dark) .sendportal-shell .badge-light {
    background: rgba(241, 245, 249, 0.96);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-shell .badge-success {
    background: rgba(220, 252, 231, 0.96);
    border-color: rgba(34, 197, 94, 0.18);
    color: #166534;
}

html:not(.dark) .sendportal-shell .badge-danger {
    background: rgba(254, 226, 226, 0.96);
    border-color: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

html:not(.dark) .sendportal-shell .badge-primary {
    background: rgba(219, 234, 254, 0.96);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

html:not(.dark) .sendportal-pagination {
    margin-top: 1rem;
}

html:not(.dark) .sendportal-pagination > div {
    color: var(--crm-text-soft);
}

html:not(.dark) .sendportal-pagination-shell {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

html:not(.dark) .sendportal-pagination-shell__mobile,
html:not(.dark) .sendportal-pagination-shell__desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

html:not(.dark) .sendportal-pagination-shell__mobile {
    display: inline-flex;
}

html:not(.dark) .sendportal-pagination-shell__desktop {
    display: none;
}

html:not(.dark) .sendportal-page-chip,
html:not(.dark) .sendportal-page-ellipsis {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96);
    color: var(--crm-text);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html:not(.dark) .sendportal-page-chip:hover,
html:not(.dark) .sendportal-page-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.18);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95)),
        rgba(255, 255, 255, 0.98);
    color: var(--crm-text);
}

html:not(.dark) .sendportal-page-chip.is-active {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.12);
    color: var(--crm-accent-strong);
    font-weight: 700;
}

html:not(.dark) .sendportal-page-chip.is-disabled,
html:not(.dark) .sendportal-page-ellipsis {
    cursor: default;
    opacity: 0.7;
}

html:not(.dark) .sendportal-page-ellipsis {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    min-width: 1.8rem;
    padding: 0;
}

html:not(.dark) .sendportal-shell .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem;
    margin-bottom: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
}

html:not(.dark) .sendportal-shell .page-item {
    display: inline-flex;
}

html:not(.dark) .sendportal-shell .page-link,
html:not(.dark) .sendportal-shell .pagination .page-link {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--crm-text) !important;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.08) !important;
}

html:not(.dark) .sendportal-shell .page-link:hover,
html:not(.dark) .sendportal-shell .pagination .page-link:hover {
    background: rgba(241, 245, 249, 0.98) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .sendportal-shell .page-item.active .page-link {
    border-color: rgba(37, 99, 235, 0.18) !important;
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .sendportal-shell .page-item.disabled .page-link {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .sendportal-pagination svg {
    width: 1.15rem;
    height: 1.15rem;
}

@media (min-width: 640px) {
    html:not(.dark) .sendportal-pagination-shell__mobile {
        display: none;
    }

    html:not(.dark) .sendportal-pagination-shell__desktop {
        display: inline-flex;
    }
}

html:not(.dark) .sendportal-shell .btn,
html:not(.dark) .sendportal-shell button.btn,
html:not(.dark) .sendportal-shell a.btn,
html:not(.dark) .sendportal-shell .btn-group > .btn,
html:not(.dark) .sendportal-shell .btn-group > .dropdown-toggle {
    text-decoration: none !important;
}

html:not(.dark) .fi-badge,
html:not(.dark) .fi-status-badge {
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-ta-pagination {
    background: transparent !important;
}

html:not(.dark) .fi-pagination-items {
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

html:not(.dark) .fi-pagination-item-button {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-pagination-item-button:hover,
html:not(.dark) .fi-pagination-item-button:focus-visible {
    background: rgba(241, 245, 249, 0.98) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-pagination-item.fi-active .fi-pagination-item-button,
html:not(.dark) .fi-pagination-item[aria-current="page"] .fi-pagination-item-button {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    color: var(--crm-accent-strong) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html:not(.dark) .fi-pagination-item-label,
html:not(.dark) .fi-pagination-item-icon {
    color: var(--crm-text-soft) !important;
}

html:not(.dark) .fi-pagination-item.fi-active .fi-pagination-item-label,
html:not(.dark) .fi-pagination-item[aria-current="page"] .fi-pagination-item-label,
html:not(.dark) .fi-pagination-item.fi-active .fi-pagination-item-icon,
html:not(.dark) .fi-pagination-item[aria-current="page"] .fi-pagination-item-icon {
    color: var(--crm-accent-strong) !important;
}

html:not(.dark) .fi-ta .text-white,
html:not(.dark) .fi-section .text-white,
html:not(.dark) .fi-modal-window .text-white,
html:not(.dark) .fi-dropdown-panel .text-white,
html:not(.dark) .fi-in-card .text-white,
html:not(.dark) .fi-wi-widget .text-white,
html:not(.dark) .crm-panel .text-white,
html:not(.dark) .sendportal-shell .text-white {
    color: var(--crm-text) !important;
}

html:not(.dark) .fi-ta .text-gray-950,
html:not(.dark) .fi-section .text-gray-950,
html:not(.dark) .fi-modal-window .text-gray-950,
html:not(.dark) .fi-dropdown-panel .text-gray-950,
html:not(.dark) .fi-in-card .text-gray-950,
html:not(.dark) .fi-wi-widget .text-gray-950,
html:not(.dark) .fi-ta .dark\:text-white,
html:not(.dark) .fi-section .dark\:text-white,
html:not(.dark) .fi-modal-window .dark\:text-white,
html:not(.dark) .fi-dropdown-panel .dark\:text-white,
html:not(.dark) .fi-in-card .dark\:text-white,
html:not(.dark) .fi-wi-widget .dark\:text-white {
    color: var(--crm-text) !important;
}
