/* ============================================================
   LeafRelay Navigation Styles
   ============================================================ */

/* --- Sidebar icon colors --- */
.leafrelay-nav .navbar-icon svg {
    stroke: currentColor;
    transition: stroke 0.2s ease;
}
.leafrelay-nav .nav-item.active .navbar-icon svg,
.leafrelay-nav .nav-item:hover .navbar-icon svg {
    stroke: var(--steve-emerald, #10b981);
}

/* --- Hide dropdown arrows when sidebar collapsed --- */
.leftbar-closed .leafrelay-nav .arrow {
    display: none !important;
}

/* --- Avatar circle --- */
.lr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--steve-emerald, #10b981), #14b8a6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Push user item to bottom --- */
.lr-user-item {
    margin-top: auto;
}

/* --- Active indicator: emerald left bar + contained pill ---
   Steve fleet S14 — desktop active state was painting
   `background-color: transparent` from legacy menu.css:22, leaving
   the active row visually identical to inactive rows. Mobile already
   had an emerald pill. This block matches the two modes and clips
   the pill to the .nav-link's rounded box so the highlight never
   bleeds past the rail's inner padding. */
.leafrelay-nav .nav-item.active > .nav-link {
    position: relative;
}
.leafrelay-nav .nav-item.active > .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 0 3px 3px 0;
    background: var(--steve-emerald, #10b981);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
.leftbar:not(.leftbar-closed) .navbar-main .nav-item.active > .nav-link,
.leftbar:not(.leftbar-closed) .navbar-main .nav-item > .nav-link.active {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--steve-emerald, #10b981) !important;
    border-radius: 10px;
    overflow: hidden;
}
.leftbar:not(.leftbar-closed) .navbar-main .navbar-nav .nav-item:not(.active) > .nav-link:hover {
    background-color: rgba(148, 163, 184, 0.06) !important;
    border-radius: 10px;
}
.mode-light .leftbar:not(.leftbar-closed) .navbar-main .nav-item.active > .nav-link,
.mode-light .leftbar:not(.leftbar-closed) .navbar-main .nav-item > .nav-link.active {
    background-color: rgba(16, 185, 129, 0.10) !important;
    color: #059669 !important;
}
.mode-light .leftbar:not(.leftbar-closed) .navbar-main .navbar-nav .nav-item:not(.active) > .nav-link:hover {
    background-color: rgba(15, 23, 42, 0.04) !important;
}
/* Collapsed sidebar: keep the centered icon highlight contained */
.leftbar-closed .navbar-main .nav-item.active > .nav-link {
    background-color: rgba(16, 185, 129, 0.10) !important;
    color: var(--steve-emerald, #10b981) !important;
    border-radius: 10px;
    margin: 0 4px;
}
.mode-light .leftbar-closed .navbar-main .nav-item.active > .nav-link {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

/* --- Headbar override --- */
.headbar {
    background: transparent !important;
    border-bottom: 1px solid var(--steve-border, rgba(148, 163, 184, 0.06));
    padding-left: 24px;
    padding-right: 34px;
}

.lr-headbar {
    width: 100%;
    min-height: 54px;
    gap: 20px;
}

.lr-headbar-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.lr-search-trigger {
    width: min(460px, 44vw);
    max-width: 100%;
    cursor: pointer;
}

.lr-search-shell {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 10px;
    padding: 7px 12px 7px 14px;
    color: var(--steve-muted, #64748b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lr-search-icon {
    font-size: 1.05rem;
    color: var(--steve-dim, #94a3b8);
    flex: 0 0 auto;
}

.lr-search-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--steve-muted, #64748b);
    font-size: 0.84rem;
}

.lr-search-trigger kbd {
    flex: 0 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--steve-emerald, #10b981);
}

.lr-headbar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: max-content;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* _top_notifications is shared with sidebar partials and ships its
   own <li>; neutralize the default list-style bullet inside the
   headbar so the bell isn't preceded by a stray dot. */
.lr-headbar-actions > li,
.lr-headbar-actions .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lr-create-btn {
    min-width: 116px;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 7px 16px !important;
}

.lr-create-btn .material-symbols-rounded {
    font-size: 1.08rem;
}

/* ============================================================
   Steve fleet S8 — top notification bell + unread indicator
   ============================================================ */

.lr-headbar-actions .notifications-menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border-radius: 10px;
    color: var(--steve-dim, #94a3b8);
    background: transparent;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}
.lr-headbar-actions .notifications-menu-item::after {
    display: none !important;
}
.lr-headbar-actions .notifications-menu-item:hover,
.lr-headbar-actions .notifications-menu-item:focus,
.lr-headbar-actions .notifications-menu-item.active {
    color: var(--steve-text, #e2e8f0);
    background: rgba(148, 163, 184, 0.10);
    text-decoration: none;
}
.mode-light .lr-headbar-actions .notifications-menu-item {
    color: #475569;
}
.mode-light .lr-headbar-actions .notifications-menu-item:hover,
.mode-light .lr-headbar-actions .notifications-menu-item:focus,
.mode-light .lr-headbar-actions .notifications-menu-item.active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.lr-headbar-actions .notifications-menu-item .leftbar-item {
    display: none !important;
}

.lr-headbar-actions .notifications-menu-item .top-notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    line-height: 0;
}

.lr-headbar-actions .notifications-menu-item .top-notification-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.lr-headbar-actions .notifications-menu-item .top-notification-icon-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(11, 19, 33, 1);
    pointer-events: none;
    margin: 0 !important;
}
.mode-light .lr-headbar-actions .notifications-menu-item .top-notification-icon-dot {
    box-shadow: 0 0 0 2px #ffffff;
}

/* ============================================================
   Steve Shell Fixes - controls, dropdowns, sidebar containment
   ============================================================ */

body.mode-dark,
body.mode-light {
    --lr-green: #22c55e;
    --lr-emerald: #10b981;
    --lr-ink: #04111f;
    --lr-dark-panel: rgba(9, 15, 29, 0.96);
    --lr-dark-panel-2: rgba(15, 23, 42, 0.94);
    --lr-dark-border: rgba(148, 163, 184, 0.16);
    --lr-dark-text: #e5edf7;
    --lr-dark-dim: #a7b4c7;
}

body.mode-light {
    --lr-dark-panel: rgba(255, 255, 255, 0.98);
    --lr-dark-panel-2: rgba(248, 250, 252, 0.98);
    --lr-dark-border: rgba(15, 23, 42, 0.12);
    --lr-dark-text: #0f172a;
    --lr-dark-dim: #475569;
}

.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary span,
.btn.btn-primary i,
.lr-create-btn,
.lr-create-btn:hover,
.lr-create-btn:focus,
.lr-create-btn span {
    color: var(--lr-ink) !important;
}

.btn.btn-primary,
.lr-create-btn {
    border-color: rgba(34, 197, 94, 0.45) !important;
    background: linear-gradient(135deg, var(--lr-green), var(--lr-emerald)) !important;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.18);
    font-weight: 700;
}

.btn.btn-primary:hover,
.lr-create-btn:hover {
    border-color: rgba(34, 197, 94, 0.72) !important;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.24);
}

.btn.btn-secondary,
.btn.btn-light {
    color: var(--lr-dark-dim) !important;
    background: rgba(15, 23, 42, 0.58) !important;
    border: 1px solid var(--lr-dark-border) !important;
    box-shadow: none !important;
}

.btn.btn-secondary:hover,
.btn.btn-light:hover,
.btn.btn-secondary:focus,
.btn.btn-light:focus {
    color: var(--lr-dark-text) !important;
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

.mode-light .btn.btn-secondary,
.mode-light .btn.btn-light {
    color: #334155 !important;
    background: rgba(248, 250, 252, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

.mode-light .btn.btn-secondary:hover,
.mode-light .btn.btn-light:hover,
.mode-light .btn.btn-secondary:focus,
.mode-light .btn.btn-light:focus {
    color: #0f172a !important;
    background: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
}

.filter-box,
.top-list-controls,
.pml-table-container,
.pml-table,
.pml-table tbody,
.pml-table tr,
.pml-table td,
.listing-form {
    overflow: visible !important;
}

/* ============================================================
   Steve fleet S6 — filter-row rhythm
   One shared height across <select>, select2, .btn-xs and
   .form-control.search so the row reads as a single bar instead
   of three controls of three different sizes.
   ============================================================ */

.filter-box {
    --lr-filter-h: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 8px;
}

.filter-box .filter-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-box .filter-group .title,
.filter-box .filter-group span.title {
    line-height: var(--lr-filter-h);
    font-size: 0.78rem;
    white-space: nowrap;
}

.filter-box .filter-group select.select,
.filter-box .filter-group .select2-container,
.filter-box .form-control,
.filter-box input.search {
    height: var(--lr-filter-h);
    box-sizing: border-box;
}

.filter-box .select2-container .select2-selection,
.filter-box .select2-container .select2-selection--single {
    height: var(--lr-filter-h);
    display: flex;
    align-items: center;
}

.filter-box .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: calc(var(--lr-filter-h) - 2px);
    padding-left: 12px;
    padding-right: 28px;
}

.filter-box .select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(var(--lr-filter-h) - 2px);
    top: 1px;
}

.filter-box .btn.btn-xs.sort-direction,
.filter-box .filter-group .btn.btn-xs {
    height: var(--lr-filter-h);
    min-width: var(--lr-filter-h);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.filter-box .text-nowrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-box .text-nowrap input.search,
.filter-box .text-nowrap input.form-control {
    padding-right: 34px;
    min-width: 220px;
}

.filter-box .text-nowrap > .material-symbols-rounded {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: var(--steve-dim, #94a3b8);
    font-size: 1.05rem;
}

/* On the narrow side, let the search field grow before wrap */
@media (max-width: 768px) {
    .filter-box {
        --lr-filter-h: 40px;
        gap: 10px;
        width: 100%;
    }
    .filter-box .text-nowrap,
    .filter-box .text-nowrap input.search {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ============================================================
   Steve fleet S19 — campaign list row density
   .pml-table inherits Bootstrap .table padding; the visual weight
   came from the multi-line .single-stat-box (percentage / progress
   / count / break / label) and the name column (title / type /
   recipients / run_at). Tighten line-height + spacing so a row
   reads as one scan-line instead of four.
   ============================================================ */

.pml-table tr {
    transition: background 0.12s ease;
}
.pml-table tr:hover td {
    background: rgba(148, 163, 184, 0.04);
}
.mode-light .pml-table tr:hover td {
    background: rgba(15, 23, 42, 0.025);
}

.pml-table td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    vertical-align: middle;
}

.pml-table .list-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 2px;
}

.pml-table .text-muted2 {
    font-size: 0.74rem;
    line-height: 1.4;
    opacity: 0.78;
}

.pml-table .text-muted2 + .text-muted2,
.pml-table .text-muted2.d-block + .text-muted2.d-block {
    margin-top: 1px;
}

.pml-table .single-stat-box {
    margin-left: 0 !important;
    line-height: 1.25;
}
.pml-table .single-stat-box .stat-num {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    display: block;
    margin-bottom: 4px;
}
.pml-table .single-stat-box .progress.progress-xxs {
    height: 4px;
    margin: 4px 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}
.pml-table .single-stat-box .progress.progress-xxs .progress-bar {
    background: var(--steve-emerald, #10b981);
    border-radius: 999px;
}
.pml-table .single-stat-box .text-semibold,
.pml-table .single-stat-box .text-muted {
    font-size: 0.72rem;
    line-height: 1.3;
}
.pml-table .single-stat-box br {
    display: none;
}

/* ============================================================
   Steve fleet S20 — campaign list status badge palette
   Replace Acelle pastel pinks/peaches with a Steve-aligned palette
   scoped to .pml-table .label.label-flat so the legacy .bg-X
   classes still work where used as plain backgrounds elsewhere.
   ============================================================ */

.pml-table .label.label-flat {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Sent / done / active — emerald tint (success terminal) */
.pml-table .label.label-flat.bg-sent,
.pml-table .label.label-flat.bg-done,
.pml-table .label.label-flat.bg-finished,
.pml-table .label.label-flat.bg-active,
.pml-table .label.label-flat.bg-activated,
.pml-table .label.label-flat.bg-confirmed,
.pml-table .label.label-flat.bg-deliverable,
.pml-table .label.label-flat.bg-paid,
.pml-table .label.label-flat.bg-subscribed {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
}
.mode-light .pml-table .label.label-flat.bg-sent,
.mode-light .pml-table .label.label-flat.bg-done,
.mode-light .pml-table .label.label-flat.bg-finished,
.mode-light .pml-table .label.label-flat.bg-active,
.mode-light .pml-table .label.label-flat.bg-activated,
.mode-light .pml-table .label.label-flat.bg-confirmed,
.mode-light .pml-table .label.label-flat.bg-deliverable,
.mode-light .pml-table .label.label-flat.bg-paid,
.mode-light .pml-table .label.label-flat.bg-subscribed {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.34) !important;
}

/* Admin sending-server / plan / type pills — the legacy .bg-color1..8
   palette is muted-rainbow (red/blue/green/purple/orange/cyan/pink/lime)
   used to color-code TYPES, not statuses. In the Steve language a type
   pill should be quiet so the eye scans status badges instead. Neutralize
   to a slate fill regardless of color number, with the exception of color3
   (green-ish, e.g. SENDMAIL) which keeps an emerald hint to read as
   "first-party local". */
.pml-table .label.label-flat[class*="bg-color"] {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.30) !important;
}
.pml-table .label.label-flat.bg-color3 {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
}
.mode-light .pml-table .label.label-flat[class*="bg-color"] {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}
.mode-light .pml-table .label.label-flat.bg-color3 {
    background: rgba(16, 185, 129, 0.10) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.30) !important;
}

/* Same neutralization for the sending-server icon "tag" boxes — the
   square SMTP / SENDMAIL boxes that sit left of the row title. They use
   .bg-color1..8 directly without .label.label-flat. */
.pml-table .bg-color1,
.pml-table .bg-color2,
.pml-table .bg-color4,
.pml-table .bg-color5,
.pml-table .bg-color6,
.pml-table .bg-color7,
.pml-table .bg-color8 {
    background-color: rgba(148, 163, 184, 0.18) !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.pml-table .bg-color3 {
    background-color: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
    color: #10b981 !important;
}

/* ============================================================
   Bootstrap .alert.* Steve overrides — admin dashboard cronjob
   warnings, customer compose page validation warnings, etc.
   Replace yellow / red / blue Bootstrap defaults with Steve dark
   panels keyed by tone.
   ============================================================ */

.alert {
    border-radius: 12px !important;
    border-left-width: 3px !important;
    padding: 14px 18px !important;
    box-shadow: none !important;
}
.alert h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    letter-spacing: -0.01em;
}
.alert p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.5;
}

.alert.alert-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
    border-left-color: #f59e0b !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.alert.alert-warning h4 {
    color: #fbbf24 !important;
}
.mode-light .alert.alert-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #0f172a !important;
}
.mode-light .alert.alert-warning h4 {
    color: #b45309 !important;
}

.alert.alert-info {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
    border-left-color: #3b82f6 !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.alert.alert-info h4 {
    color: #60a5fa !important;
}
.mode-light .alert.alert-info {
    color: #0f172a !important;
}
.mode-light .alert.alert-info h4 {
    color: #1d4ed8 !important;
}

.alert.alert-danger,
.alert.alert-error {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    border-left-color: #ef4444 !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.alert.alert-danger h4,
.alert.alert-error h4 {
    color: #f87171 !important;
}
.mode-light .alert.alert-danger,
.mode-light .alert.alert-error {
    color: #0f172a !important;
}
.mode-light .alert.alert-danger h4,
.mode-light .alert.alert-error h4 {
    color: #b91c1c !important;
}

.alert.alert-success {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
    border-left-color: #10b981 !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.alert.alert-success h4 {
    color: #10b981 !important;
}
.mode-light .alert.alert-success {
    color: #0f172a !important;
}
.mode-light .alert.alert-success h4 {
    color: #047857 !important;
}

/* Sending — blue (in-flight) */
.pml-table .label.label-flat.bg-sending,
.pml-table .label.label-flat.bg-running,
.pml-table .label.label-flat.bg-pending-sending {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.32) !important;
}
.mode-light .pml-table .label.label-flat.bg-sending,
.mode-light .pml-table .label.label-flat.bg-running,
.mode-light .pml-table .label.label-flat.bg-pending-sending {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.34) !important;
}

/* New / draft / scheduled — slate (neutral) */
.pml-table .label.label-flat.bg-new,
.pml-table .label.label-flat.bg-draft,
.pml-table .label.label-flat.bg-scheduled,
.pml-table .label.label-flat.bg-not_sent {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 184, 0.30) !important;
}
.mode-light .pml-table .label.label-flat.bg-new,
.mode-light .pml-table .label.label-flat.bg-draft,
.mode-light .pml-table .label.label-flat.bg-scheduled,
.mode-light .pml-table .label.label-flat.bg-not_sent {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Ready / queued — cyan (next-up) */
.pml-table .label.label-flat.bg-ready,
.pml-table .label.label-flat.bg-queued,
.pml-table .label.label-flat.bg-queuing {
    background: rgba(6, 182, 212, 0.14) !important;
    color: #22d3ee !important;
    border-color: rgba(6, 182, 212, 0.32) !important;
}
.mode-light .pml-table .label.label-flat.bg-ready,
.mode-light .pml-table .label.label-flat.bg-queued,
.mode-light .pml-table .label.label-flat.bg-queuing {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #0e7490 !important;
    border-color: rgba(6, 182, 212, 0.34) !important;
}

/* Paused / pending — amber (action required) */
.pml-table .label.label-flat.bg-paused,
.pml-table .label.label-flat.bg-feedback,
.pml-table .label.label-flat.bg-pending,
.pml-table .label.label-flat.bg-pending_active,
.pml-table .label.label-flat.bg-waiting,
.label.bg-pending,
.label-flat.bg-pending {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.32) !important;
}
.mode-light .pml-table .label.label-flat.bg-paused,
.mode-light .pml-table .label.label-flat.bg-feedback,
.mode-light .pml-table .label.label-flat.bg-pending,
.mode-light .pml-table .label.label-flat.bg-pending_active,
.mode-light .pml-table .label.label-flat.bg-waiting,
.mode-light .label.bg-pending,
.mode-light .label-flat.bg-pending {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.34) !important;
}

/* Error / failed — red */
.pml-table .label.label-flat.bg-error,
.pml-table .label.label-flat.bg-failed,
.pml-table .label.label-flat.bg-rejected,
.pml-table .label.label-flat.bg-undeliverable,
.pml-table .label.label-flat.bg-bounced {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
}
.mode-light .pml-table .label.label-flat.bg-error,
.mode-light .pml-table .label.label-flat.bg-failed,
.mode-light .pml-table .label.label-flat.bg-rejected,
.mode-light .pml-table .label.label-flat.bg-undeliverable,
.mode-light .pml-table .label.label-flat.bg-bounced {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.34) !important;
}

/* ============================================================
   Steve fleet S21 — campaign list row action button grouping
   Edit / Overview / dropdown were three buttons with ad-hoc ms-1
   margins. Lock them all to one height, gap them via flex, and
   join the dropdown trigger to look like one logical action group.
   ============================================================ */

.pml-table tr td .d-flex.align-items-center.justify-content-end {
    gap: 8px;
}

.pml-table tr td .d-flex.align-items-center.justify-content-end > .btn,
.pml-table tr td .d-flex.align-items-center.justify-content-end > .btn-group {
    margin-left: 0 !important;
}

.pml-table tr td .btn.btn-icon,
.pml-table tr td .btn.btn-secondary,
.pml-table tr td .btn.btn-primary,
.pml-table tr td .btn.btn-light {
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    font-size: 0.78rem;
    border-radius: 8px;
}

.pml-table tr td .btn.btn-icon .material-symbols-rounded,
.pml-table tr td .btn.btn-icon i {
    font-size: 1.05rem;
    line-height: 1;
}

.pml-table tr td .btn-group .btn.dropdown-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    position: relative;
}
.pml-table tr td .btn-group .btn.dropdown-toggle::after {
    margin: 0;
}

/* ============================================================
   Steve fleet S22 — campaign list dropdown placement
   ============================================================ */

.pml-table tr td .dropdown-menu {
    margin-top: 6px !important;
    min-width: 220px;
    transform-origin: top right;
}
.pml-table tr td .btn-group:has(.dropdown-menu.show) .dropdown-menu {
    animation: lr-dropdown-in 0.14s ease-out;
}
@keyframes lr-dropdown-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Last two rows: flip the dropdown above the trigger so it never
   gets clipped by the page bottom or the per-page bar. */
.pml-table tr:nth-last-child(-n+2) td .dropdown-menu.show {
    bottom: 100%;
    top: auto !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}

/* ============================================================
   Steve fleet S23 — empty-state polish
   ============================================================ */

.empty-list {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.03);
    margin-top: 12px;
}
.mode-light .empty-list {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.02);
}
.empty-list [class^="material-"],
.empty-list .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.10);
    color: var(--steve-emerald, #10b981) !important;
    font-size: 1.6rem !important;
    margin-bottom: 14px;
}
.empty-list .line-1 {
    display: block;
    font-size: 0.95rem;
    color: var(--steve-text, #e2e8f0);
    line-height: 1.5;
    margin: 0 auto 6px;
    max-width: 480px;
}
.mode-light .empty-list .line-1 {
    color: #0f172a;
}
.empty-list .line-2 {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--steve-dim, #94a3b8);
    line-height: 1.5;
    background: transparent !important;
}
.empty-list .line-2:empty {
    display: none !important;
}
.empty-list .lr-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, var(--steve-emerald, #10b981));
    color: var(--lr-ink, #04111f) !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.empty-list .lr-empty-cta:hover {
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
    transform: translateY(-1px);
}

/* ============================================================
   Steve fleet S24 — bulk action toolbar
   ============================================================ */

.filter-box .dropdown.list_actions {
    margin-right: 4px;
}
.filter-box .dropdown.list_actions .btn.btn-secondary.dropdown-toggle {
    height: var(--lr-filter-h, 38px);
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.10) !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    color: var(--steve-emerald, #10b981) !important;
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-box .dropdown.list_actions .btn.btn-secondary.dropdown-toggle:hover {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.38) !important;
}
.filter-box .dropdown.list_actions .btn .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--steve-emerald, #10b981);
    color: var(--lr-ink, #04111f);
    font-size: 0.68rem;
    font-weight: 700;
}

/* ============================================================
   Steve fleet S25 + S26 — pagination + per-page selector
   ============================================================ */

.num_per_page {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.num_per_page > .select2-container,
.num_per_page > select.select {
    height: 34px !important;
    min-width: 80px;
}
.num_per_page label {
    font-size: 0.78rem;
    color: var(--steve-dim, #94a3b8);
    margin: 0;
    line-height: 34px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.pagination .page-item .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: transparent;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.8rem;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(16, 185, 129, 0.10);
    color: var(--steve-emerald, #10b981);
    border-color: rgba(16, 185, 129, 0.32);
}
.pagination .page-item.active .page-link {
    background: var(--steve-emerald, #10b981);
    color: var(--lr-ink, #04111f);
    border-color: var(--steve-emerald, #10b981);
    font-weight: 700;
}
.pagination .page-item.disabled .page-link {
    opacity: 0.45;
    cursor: not-allowed;
}
.mode-light .pagination .page-item .page-link {
    color: #475569;
}
.mode-light .pagination .page-item.active .page-link {
    color: #ffffff;
}

/* ============================================================
   Steve fleet S28 — sort selector visual direction indicator
   ============================================================ */

.filter-box .filter-group .btn.btn-xs.sort-direction {
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: var(--steve-dim, #94a3b8) !important;
    border-radius: 8px;
    transition: transform 0.18s ease, color 0.15s ease;
}
.filter-box .filter-group .btn.btn-xs.sort-direction:hover {
    color: var(--steve-emerald, #10b981) !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
}
.filter-box .filter-group .btn.btn-xs.sort-direction.asc .material-symbols-rounded,
.filter-box .filter-group .btn.btn-xs.sort-direction[data-direction="asc"] .material-symbols-rounded {
    transform: scaleY(-1);
}

/* ============================================================
   Steve fleet S29 — filter wrap on tablet
   ============================================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    .filter-box {
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-box .filter-group {
        flex-wrap: nowrap;
    }
    .filter-box .text-nowrap {
        flex: 1 1 240px;
    }
    .filter-box .text-nowrap input.search {
        width: 100%;
    }
}

/* ============================================================
   Steve fleet S30 — mobile cards for .pml-table
   Convert each <tr> to a stacked card under 768px.
   ============================================================ */

@media (max-width: 767.98px) {
    .pml-table {
        display: block;
        border-collapse: separate;
        border-spacing: 0;
    }
    .pml-table tbody {
        display: block;
    }
    .pml-table tr {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6px 12px;
        padding: 14px 16px;
        margin-bottom: 10px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 12px;
        background: rgba(148, 163, 184, 0.04);
    }
    .mode-light .pml-table tr {
        border-color: rgba(15, 23, 42, 0.10);
        background: rgba(15, 23, 42, 0.02);
    }
    .pml-table tr td {
        display: flex;
        align-items: center;
        padding: 0 !important;
        border: 0 !important;
    }
    .pml-table tr td.list-check-col {
        grid-column: 1;
        grid-row: 1;
    }
    .pml-table tr td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        display: block;
    }
    .pml-table tr td:nth-child(2) .list-title,
    .pml-table tr td:nth-child(2) > span {
        display: block !important;
        width: 100%;
    }
    .pml-table tr td:nth-child(2) .text-muted {
        display: block;
        line-height: 1.4;
    }
    .pml-table tr td:nth-child(3),
    .pml-table tr td:nth-child(4),
    .pml-table tr td:nth-child(5) {
        grid-column: 1 / -1;
        gap: 8px;
        flex-wrap: wrap;
    }
    .pml-table tr td:nth-child(3) .single-stat-box,
    .pml-table tr td:nth-child(4) .single-stat-box,
    .pml-table tr td:nth-child(5) .single-stat-box {
        flex: 1 1 calc(33% - 8px);
        min-width: 0;
    }
    .pml-table tr td:nth-last-child(2) {
        grid-column: 1 / -1;
    }
    .pml-table tr td:last-child {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 6px !important;
        border-top: 1px solid rgba(148, 163, 184, 0.10) !important;
    }
    .pml-table tr td:last-child .d-flex.justify-content-end {
        width: 100%;
        flex-wrap: wrap;
    }
    /* The empty stat cells when status==new */
    .pml-table tr td:empty {
        display: none !important;
    }
}

/* ============================================================
   Steve fleet S31 — campaign type-pick page
   ============================================================ */

.lr-type-pick {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 0 48px;
}
.lr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.lr-type-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(12, 18, 34, 0.6);
    color: var(--steve-text, #e2e8f0);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.lr-type-card:hover {
    text-decoration: none;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-1px);
    color: var(--steve-text, #e2e8f0);
}
.mode-light .lr-type-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    color: #0f172a;
}
.mode-light .lr-type-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.04);
    color: #0f172a;
}
.lr-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
}
.lr-type-icon .material-symbols-rounded {
    font-size: 1.6rem;
}
.lr-type-body h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.lr-type-body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--steve-dim, #94a3b8);
    line-height: 1.4;
}
.mode-light .lr-type-body p {
    color: #475569;
}
.lr-type-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--steve-emerald, #10b981);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.lr-type-card:hover .lr-type-cta {
    opacity: 1;
    transform: translateX(2px);
}
.lr-type-cta .material-symbols-rounded {
    font-size: 1.05rem;
}
.lr-type-cancel {
    margin-top: 8px;
}
.lr-type-cancel .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   Steve fleet S37-S41 — campaign overview polish
   Targets the partials in resources/views/campaigns/_*.blade.php
   that render on /campaigns/{uid}/overview after a send.
   ============================================================ */

/* S37 — count boxes hierarchy: 4 stat tiles "opened / clicked / bounced / unsubscribed".
   Replace legacy .bg-color6/7/.bg-secondary blocks with Steve dark cards
   keyed on metric type for clean color coding. */
.campaign-overview .row > [class^="col-md-3"] > .bg-color6,
.campaign-overview .row > [class^="col-md-3"] > .bg-color7,
.campaign-overview .row > [class^="col-md-3"] > .bg-secondary,
.row.mt-5.pt-5 > [class^="col-md-3"] > [class^="bg-"]:not(.bg-light) {
    border-radius: 14px !important;
    padding: 22px 18px !important;
    box-shadow: none !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    background: rgba(12, 18, 34, 0.6) !important;
    color: var(--steve-text, #e2e8f0) !important;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.row.mt-5.pt-5 > [class^="col-md-3"] > [class^="bg-"]:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.32) !important;
}
.row.mt-5.pt-5 > [class^="col-md-3"] > [class^="bg-"] h2 {
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 4px !important;
}
.row.mt-5.pt-5 > [class^="col-md-3"] > [class^="bg-"] .text-muted2,
.row.mt-5.pt-5 > [class^="col-md-3"] > [class^="bg-"] .text-muted {
    color: var(--steve-dim, #94a3b8) !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
/* Color-code the four common metric tiles by position so the eye scans them */
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(1) > [class^="bg-"]::before,
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(2) > [class^="bg-"]::before,
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(3) > [class^="bg-"]::before,
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(4) > [class^="bg-"]::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(1) > [class^="bg-"]::before {
    background: #10b981;  /* opened — emerald */
}
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(2) > [class^="bg-"]::before {
    background: #06b6d4;  /* clicked — cyan */
}
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(3) > [class^="bg-"]::before {
    background: #f59e0b;  /* bounced — amber */
}
.row.mt-5.pt-5 > [class^="col-md-3"]:nth-child(4) > [class^="bg-"]::before {
    background: #94a3b8;  /* unsubscribed — slate */
}

/* S38 — chart container contrast: e-charts emits canvas elements;
   ensure the wrapping div has enough vertical space + a Steve card frame. */
.campaign-overview [id^="chart"],
.campaign-overview [id$="-chart"],
.campaign-overview .echarts-container {
    background: rgba(12, 18, 34, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 280px;
}

/* S39 — top-link / clicked-links table */
.stat-table {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    overflow: hidden;
    background: rgba(12, 18, 34, 0.5);
}
.stat-table .stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    transition: background 0.12s ease;
}
.stat-table .stat-row:last-child {
    border-bottom: 0;
}
.stat-table .stat-row:hover {
    background: rgba(148, 163, 184, 0.04);
}
.stat-table .stat-row .num,
.stat-table .stat-row .pull-right.num {
    color: var(--steve-emerald, #10b981) !important;
    font-weight: 700;
    font-size: 0.95rem;
    float: none !important;
}
.stat-table .stat-row p.text-muted {
    margin: 0;
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1 1 auto;
    padding-right: 12px;
}

/* S39/S40/S41 — "View click log / open log / bounce log" buttons */
.btn.btn-info.bg-teal-600,
.btn.btn-success.bg-teal-600,
a[href*="clickLog"].btn,
a[href*="openLog"].btn,
a[href*="bounceLog"].btn {
    background: rgba(16, 185, 129, 0.10) !important;
    border: 1px solid rgba(16, 185, 129, 0.32) !important;
    color: var(--steve-emerald, #10b981) !important;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn.btn-info.bg-teal-600:hover,
a[href*="clickLog"].btn:hover,
a[href*="openLog"].btn:hover,
a[href*="bounceLog"].btn:hover {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
}

/* S37 — campaigns-summary info block */
.campaigns-summary {
    font-size: 0.88rem;
}
.campaigns-summary .mb-2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px !important;
    gap: 10px;
}
.campaigns-summary .label.bg-light {
    background: rgba(148, 163, 184, 0.10) !important;
    color: var(--steve-dim, #94a3b8) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Subscriber count headline ("234 RECIPIENTS") */
.campaign-overview h2 .text-teal,
h2 .text-teal.text-bold {
    color: var(--steve-emerald, #10b981) !important;
}

/* ============================================================
   Steve fleet S42-S46 — modal / popup surfaces
   Targets the Popup() class (rendered into .popup-overlay containers
   with .popup-body/.popup-content/.popup-footer) and Bootstrap
   .modal-content surfaces used by the campaign actions.
   ============================================================ */

.popup-overlay {
    background: rgba(2, 6, 16, 0.72) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content,
.popup-content {
    background: var(--lr-dark-panel, rgba(15, 23, 42, 0.96)) !important;
    border: 1px solid var(--lr-dark-border, rgba(148, 163, 184, 0.16)) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.04) !important;
    color: var(--steve-text, #e2e8f0) !important;
    overflow: hidden;
}
.mode-light .modal-content,
.mode-light .popup-content {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

.modal-header,
.popup-header,
.iframe-modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.10) !important;
    padding: 18px 22px !important;
    background: transparent !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.modal-header h4,
.modal-header h5,
.modal-header .modal-title,
.popup-header .title,
.iframe-modal-header .title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--steve-text, #e2e8f0) !important;
    letter-spacing: -0.01em;
}
.mode-light .modal-header h4,
.mode-light .modal-header h5,
.mode-light .modal-header .modal-title,
.mode-light .popup-header .title,
.mode-light .iframe-modal-header .title {
    color: #0f172a !important;
}
.modal-header .close[type=button],
.modal-header .btn-close,
.popup-header .close,
.iframe-modal-header .close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08) !important;
    color: var(--steve-dim, #94a3b8) !important;
    border: 0 !important;
    opacity: 1 !important;
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.modal-header .close[type=button]:hover,
.modal-header .btn-close:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #f87171 !important;
}

.modal-body,
.popup-body {
    padding: 22px !important;
    color: inherit;
}
.modal-body h6 {
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 0.92rem;
    font-weight: 700;
}
.mode-light .modal-body h6 {
    color: #0f172a !important;
}

.modal-footer,
.popup-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.10) !important;
    padding: 16px 22px !important;
    background: transparent !important;
    gap: 8px;
}

/* Iframe-modal (used by send-test, copy, resend popup-content frames) */
.iframe-modal-header {
    background: rgba(12, 18, 34, 0.65) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.iframe-modal-header .title {
    flex: 1 1 auto;
    text-align: left;
}

/* Confirm dialogs from link-confirm attribute (bootbox/sweetalert-style) */
.bootbox.modal .modal-content {
    border-radius: 14px !important;
}
.swal2-popup,
.sweet-alert {
    background: var(--lr-dark-panel, rgba(15, 23, 42, 0.98)) !important;
    border-radius: 14px !important;
    color: var(--steve-text, #e2e8f0) !important;
    border: 1px solid var(--lr-dark-border, rgba(148, 163, 184, 0.16)) !important;
}
.mode-light .swal2-popup,
.mode-light .sweet-alert {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* ============================================================
   Steve fleet S47 — campaign list row state-edge stripe
   Add a 3px left edge to each campaign row keyed on status so the
   list scans by state at a glance. Complements the badge palette
   from S20 without competing.
   ============================================================ */

.pml-table tbody tr {
    box-shadow: inset 3px 0 0 transparent;
    transition: background 0.12s ease, box-shadow 0.18s ease;
}
.pml-table tbody tr:has(.label.label-flat.bg-sent),
.pml-table tbody tr:has(.label.label-flat.bg-done),
.pml-table tbody tr:has(.label.label-flat.bg-finished) {
    box-shadow: inset 3px 0 0 #10b981;
}
.pml-table tbody tr:has(.label.label-flat.bg-sending),
.pml-table tbody tr:has(.label.label-flat.bg-running),
.pml-table tbody tr:has(.label.label-flat.bg-pending-sending) {
    box-shadow: inset 3px 0 0 #3b82f6;
}
.pml-table tbody tr:has(.label.label-flat.bg-paused),
.pml-table tbody tr:has(.label.label-flat.bg-feedback) {
    box-shadow: inset 3px 0 0 #f59e0b;
}
.pml-table tbody tr:has(.label.label-flat.bg-error),
.pml-table tbody tr:has(.label.label-flat.bg-failed),
.pml-table tbody tr:has(.label.label-flat.bg-bounced) {
    box-shadow: inset 3px 0 0 #ef4444;
}
.pml-table tbody tr:has(.label.label-flat.bg-ready),
.pml-table tbody tr:has(.label.label-flat.bg-queued) {
    box-shadow: inset 3px 0 0 #06b6d4;
}
/* Mobile cards inherit the same edge but on the left border of the card */
@media (max-width: 767.98px) {
    .pml-table tbody tr {
        border-left-width: 3px !important;
        box-shadow: none !important;
    }
    .pml-table tbody tr:has(.label.label-flat.bg-sent),
    .pml-table tbody tr:has(.label.label-flat.bg-done),
    .pml-table tbody tr:has(.label.label-flat.bg-finished) {
        border-left-color: #10b981 !important;
    }
    .pml-table tbody tr:has(.label.label-flat.bg-sending),
    .pml-table tbody tr:has(.label.label-flat.bg-running),
    .pml-table tbody tr:has(.label.label-flat.bg-pending-sending) {
        border-left-color: #3b82f6 !important;
    }
    .pml-table tbody tr:has(.label.label-flat.bg-paused),
    .pml-table tbody tr:has(.label.label-flat.bg-feedback) {
        border-left-color: #f59e0b !important;
    }
    .pml-table tbody tr:has(.label.label-flat.bg-error),
    .pml-table tbody tr:has(.label.label-flat.bg-failed) {
        border-left-color: #ef4444 !important;
    }
    .pml-table tbody tr:has(.label.label-flat.bg-ready),
    .pml-table tbody tr:has(.label.label-flat.bg-queued) {
        border-left-color: #06b6d4 !important;
    }
}

/* ============================================================
   Steve fleet S48 — campaign builder entry / template builder shell
   ============================================================ */

.lr-builder-entry,
.template-builder-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}
.builder-toolbar,
.template-builder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    background: rgba(12, 18, 34, 0.65);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

/* ============================================================
   Steve fleet S49 — template gallery cards
   ============================================================ */

.template-card {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    background: rgba(12, 18, 34, 0.6) !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.template-card:hover {
    border-color: rgba(16, 185, 129, 0.32) !important;
    transform: translateY(-2px);
}
.mode-light .template-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}
.template-card .card-body {
    padding: 14px 16px !important;
}
.template-card .card-body h6 {
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 0.92rem;
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.mode-light .template-card .card-body h6 {
    color: #0f172a !important;
}
.template-card .card-body .card-text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}
.template-card .template-categories {
    color: var(--steve-dim, #94a3b8) !important;
    font-size: 0.72rem;
    text-decoration: none;
}
.template-card .template-categories:hover {
    color: var(--steve-emerald, #10b981) !important;
}

/* Preview overlay on hover */
.template-image-box,
.template-image-box2 {
    background: rgba(8, 12, 22, 0.6);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.template-image-box img,
.template-image-box2 img {
    object-fit: cover;
    object-position: top center;
    width: 100% !important;
    height: 100% !important;
}
.preview_control {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0) 0%, rgba(8, 12, 22, 0.85) 60%) !important;
    backdrop-filter: blur(2px) !important;
    flex-direction: column;
    justify-content: flex-end !important;
    padding: 18px;
}
.preview_control .btn.btn-light,
.preview_control .btn.btn-primary {
    width: 100%;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.preview_control .btn.btn-primary {
    background: linear-gradient(135deg, #22c55e, var(--steve-emerald, #10b981)) !important;
    border-color: transparent !important;
    color: var(--lr-ink, #04111f) !important;
}

/* Empty / no-templates copy */
.template-list-empty,
.customer_email_templates-empty {
    text-align: center;
    padding: 40px 24px;
}

/* ============================================================
   Steve fleet S50 — template upload affordance
   ============================================================ */

.template-upload-card,
.template-create-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border: 2px dashed rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: transparent;
    color: var(--steve-dim, #94a3b8);
    text-align: center;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.template-upload-card:hover,
.template-create-card:hover {
    border-color: var(--steve-emerald, #10b981);
    color: var(--steve-emerald, #10b981);
    background: rgba(16, 185, 129, 0.04);
}
.template-upload-card .material-symbols-rounded,
.template-create-card .material-symbols-rounded {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ============================================================
   Steve fleet S51 — automation entry / automation list shell
   ============================================================ */

.automation-card,
.automation-list-card,
[class*="automation"] .card.shadow-sm {
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    background: rgba(12, 18, 34, 0.6) !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.automation-card:hover,
.automation-list-card:hover {
    border-color: rgba(16, 185, 129, 0.32) !important;
    transform: translateY(-1px);
}
.mode-light .automation-card,
.mode-light .automation-list-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

/* ============================================================
   Steve fleet S53 — audience landing IA
   The /audience/overview page renders 4 .bg-secondary stat tiles
   ("Total contacts", "Active 0%", "Subscription forms", "Blacklisted")
   plus a growth chart. Replace flat .bg-secondary panels with Steve
   stat cards.
   ============================================================ */

.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary,
.audience-overview .col-md-3 > .bg-secondary,
.audience-stats > [class^="col-md-3"] > [class^="bg-"] {
    background: rgba(12, 18, 34, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    border-radius: 14px !important;
    padding: 22px 18px !important;
    box-shadow: none !important;
    color: var(--steve-text, #e2e8f0) !important;
    transition: border-color 0.15s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.32) !important;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary h2 {
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 2rem !important;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 6px !important;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2,
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2.text-white {
    color: var(--steve-dim, #94a3b8) !important;
    font-size: 0.78rem !important;
    line-height: 1.4;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2 b,
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2 strong {
    color: var(--steve-text, #e2e8f0) !important;
    font-weight: 700;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2 a {
    color: var(--steve-emerald, #10b981) !important;
    text-decoration: none;
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary .text-muted2 a:hover {
    text-decoration: underline;
}
/* Color-coded top-strip per tile position (matches campaign overview S37) */
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(1) > .bg-secondary::before,
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(2) > .bg-secondary::before,
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(3) > .bg-secondary::before,
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(4) > .bg-secondary::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 14px;
    width: 32px;
    height: 3px;
    border-radius: 999px;
}
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(1) > .bg-secondary::before {
    background: #10b981;  /* total — emerald */
}
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(2) > .bg-secondary::before {
    background: #06b6d4;  /* active% — cyan */
}
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(3) > .bg-secondary::before {
    background: #f59e0b;  /* forms — amber */
}
.row.mt-4.mb-4 > [class^="col-md-3"]:nth-child(4) > .bg-secondary::before {
    background: #ef4444;  /* blacklisted — red */
}
.row.mt-4.mb-4 > [class^="col-md-3"] > .bg-secondary h2 {
    margin-top: 14px !important;
}

/* ============================================================
   Quick-tips admin hint block — common across many index pages
   ============================================================ */

.quicktip {
    background: rgba(12, 18, 34, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: none !important;
    color: var(--steve-text, #e2e8f0) !important;
    gap: 16px;
}
.mode-light .quicktip {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #0f172a !important;
}
.quicktip .quicktip-icon,
.quicktip > img,
.quicktip > svg {
    flex-shrink: 0;
    opacity: 0.9;
}
.quicktip .quicktip-content {
    flex: 1 1 auto;
    min-width: 0;
}
.quicktip .quicktip-content > label {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--steve-emerald, #10b981) !important;
    border: 1px solid rgba(16, 185, 129, 0.30) !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    margin: 0 0 10px !important;
}
.mode-light .quicktip .quicktip-content > label {
    color: #047857 !important;
}
.quicktip .quicktip-content h2,
.quicktip .quicktip-content h3,
.quicktip .quicktip-content h4 {
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.mode-light .quicktip .quicktip-content h2,
.mode-light .quicktip .quicktip-content h3,
.mode-light .quicktip .quicktip-content h4 {
    color: #0f172a !important;
}
.quicktip .quicktip-content p {
    margin: 0 0 12px;
    color: var(--steve-dim, #94a3b8) !important;
    font-size: 0.85rem;
    line-height: 1.5;
}
.mode-light .quicktip .quicktip-content p {
    color: #475569 !important;
}
.quicktip .quicktip-content .btn {
    margin-top: 4px;
}

/* ============================================================
   Light-mode rail policy — Steve fleet "light AND dark designed"
   The rail stays Steve-dark in BOTH modes (Linear/Vercel/Notion app-
   shell pattern). Intent is to anchor the user's eye on the dark
   navigation surface while the content area flips to light. Explicit
   here so future readers don't mistake it for a missing override.
   ============================================================ */

body.mode-light .leafrelay-nav,
body.mode-light .navbar-main.leafrelay-nav,
body.mode-light .leftbar .leafrelay-nav {
    background-color: rgba(11, 19, 33, 0.98) !important;
    color: var(--steve-text, #e2e8f0) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}
body.mode-light .leafrelay-nav .nav-link,
body.mode-light .leafrelay-nav .nav-link span,
body.mode-light .leftbar .leafrelay-nav .navbar-nav .nav-link {
    color: rgba(226, 232, 240, 0.78) !important;
}
body.mode-light .leafrelay-nav .nav-link:hover,
body.mode-light .leafrelay-nav .nav-item:hover > .nav-link,
body.mode-light .leftbar .leafrelay-nav .navbar-nav .nav-link:hover {
    color: var(--steve-text, #e2e8f0) !important;
}
body.mode-light .leafrelay-nav .nav-item.active > .nav-link,
body.mode-light .leafrelay-nav .nav-link.active,
body.mode-light .leftbar:not(.leftbar-closed) .navbar-main .nav-item.active > .nav-link,
body.mode-light .leftbar:not(.leftbar-closed) .navbar-main .nav-item > .nav-link.active {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: var(--steve-emerald, #10b981) !important;
}
body.mode-light .leafrelay-nav .navbar-icon svg {
    stroke: currentColor;
}
body.mode-light .leafrelay-nav .navbar-right {
    border-top: 1px solid rgba(148, 163, 184, 0.08) !important;
}
body.mode-light .lr-user-name {
    color: rgba(226, 232, 240, 0.85) !important;
}
body.mode-light .lr-user-avatar {
    background: linear-gradient(135deg, var(--steve-emerald, #10b981), #14b8a6);
    color: #fff;
}
body.mode-light .lr-admin-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    color: var(--steve-emerald, #10b981) !important;
    border: 1px solid rgba(16, 185, 129, 0.32) !important;
}

/* Light-mode middle-bar (the strip that holds the leftbar collapse
   chevron + theme switcher between rail and content) */
body.mode-light .middle-bar {
    background-color: rgba(11, 19, 33, 0.98) !important;
}
body.mode-light .middle-bar-element,
body.mode-light .leftbar-hide-menu {
    color: rgba(226, 232, 240, 0.78) !important;
}
body.mode-light .middle-bar-element svg {
    fill: currentColor;
}

/* Headbar in light mode: keep the page shell light but readable */
body.mode-light .lr-headbar .lr-search-shell {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.10);
}
body.mode-light .lr-headbar .lr-search-shell,
body.mode-light .lr-headbar .lr-search-label,
body.mode-light .lr-headbar .lr-search-icon {
    color: #475569 !important;
}
body.mode-light .lr-headbar kbd {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.20);
    color: #047857;
}
body.mode-light .headbar {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.pml-table,
.pml-table tbody,
.pml-table tr,
.pml-table td {
    position: relative;
}

.pml-table .btn-group,
.filter-box .dropdown,
.list_actions.dropdown {
    position: relative;
    z-index: 20;
}

.pml-table .btn-group:has(.dropdown-menu.show),
.filter-box .dropdown:has(.dropdown-menu.show),
.list_actions.dropdown:has(.dropdown-menu.show) {
    z-index: 4000;
}

.dropdown-menu {
    overflow: visible !important;
    z-index: 3900 !important;
    min-width: 168px;
    padding: 8px !important;
    border-radius: 10px !important;
    color: var(--lr-dark-text) !important;
    background: var(--lr-dark-panel) !important;
    border: 1px solid var(--lr-dark-border) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item,
.dropdown-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: var(--lr-dark-dim) !important;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.dropdown-item span,
.dropdown-menu > li > a span,
.dropdown-item i,
.dropdown-menu > li > a i {
    color: inherit !important;
}

.dropdown-item:hover,
.dropdown-menu > li > a:hover,
.dropdown-item:focus,
.dropdown-menu > li > a:focus {
    color: var(--lr-dark-text) !important;
    background: rgba(16, 185, 129, 0.12) !important;
}

.mode-light .dropdown-menu {
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

.mode-light .dropdown-item:hover,
.mode-light .dropdown-menu > li > a:hover,
.mode-light .dropdown-item:focus,
.mode-light .dropdown-menu > li > a:focus {
    color: #0f172a !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

/* ============================================================
   LEGACY LEFTBAR DESKTOP BLOCK — gated to >=992px so the vertical
   sidebar styling never bleeds onto mobile (where the navbar must
   collapse behind the hamburger, see the @media (max-width: 991.98px)
   block at the bottom of this file).
   ============================================================ */
@media (min-width: 992px) {

.leftbar .leafrelay-nav {
    overflow: hidden;
}

.leftbar .leafrelay-nav .container-fluid {
    height: 100%;
    min-height: 100vh;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.leftbar .leafrelay-nav .navbar-brand {
    width: 100%;
    min-width: 0;
    margin: 0 0 22px !important;
    padding: 0 8px;
    overflow: hidden;
}

.leftbar .leafrelay-nav .navbar-brand .logo {
    max-width: 166px;
    height: auto;
}

.leftbar .leafrelay-nav .navbar-collapse {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
}

.leftbar .leafrelay-nav .main-menu {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding-bottom: 12px;
}

.leftbar .leafrelay-nav .navbar-right {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid var(--lr-dark-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.leftbar .leafrelay-nav .navbar-right .navbar-nav {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 4px;
}

.leftbar .leafrelay-nav .main-menu::-webkit-scrollbar {
    width: 4px;
}

.leftbar .leafrelay-nav .main-menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.14);
    border-radius: 999px;
}

.leftbar .leafrelay-nav .nav-link {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
}

.leftbar .leafrelay-nav .nav-link > span:not(.lr-user-avatar) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leftbar-closed .leafrelay-nav .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
}

.leftbar-closed .leafrelay-nav .navbar-brand {
    justify-content: center;
    padding: 0;
}

.leftbar-closed .leafrelay-nav .navbar-brand .logo {
    max-width: 42px;
}

.leftbar-closed .leafrelay-nav .navbar-right {
    padding-top: 12px;
}

.leftbar-closed .leafrelay-nav .nav-link {
    justify-content: center;
}

.leftbar-closed .leafrelay-nav .nav-link > span:not(.lr-user-avatar),
.leftbar-closed .leafrelay-nav .navbar-brand .logo + span {
    display: none !important;
}

} /* end @media (min-width: 992px) — LEGACY LEFTBAR DESKTOP BLOCK */

/* ============================================================
   Command Palette
   ============================================================ */

/* Overlay */
.lr-cmd-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.lr-cmd-overlay.lr-cmd-visible {
    opacity: 1;
    visibility: visible;
}

/* Box */
.lr-cmd-box {
    width: 520px;
    max-width: 92vw;
    background: var(--steve-surface, #0f1724);
    border: 1px solid var(--steve-border, rgba(148, 163, 184, 0.08));
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.04);
    overflow: hidden;
    transform: scale(0.96) translateY(-8px);
    transition: transform 0.18s ease;
}
.lr-cmd-visible .lr-cmd-box {
    transform: scale(1) translateY(0);
}

/* Input row */
.lr-cmd-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}
.lr-cmd-search-icon {
    font-size: 1.2rem;
    color: var(--steve-dim, #94a3b8);
    flex-shrink: 0;
}
.lr-cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--steve-text, #e2e8f0);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.lr-cmd-input::placeholder {
    color: var(--steve-muted, #475569);
}

/* Divider */
.lr-cmd-divider {
    height: 1px;
    background: var(--steve-border, rgba(148, 163, 184, 0.08));
}

/* List */
.lr-cmd-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 10px 8px 12px;
    display: grid;
    gap: 4px;
}

/* Item */
.lr-cmd-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--steve-dim, #94a3b8);
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
    cursor: pointer;
    text-align: left;
}
.lr-cmd-item:hover,
.lr-cmd-item.lr-cmd-active {
    background: rgba(148, 163, 184, 0.06);
    color: var(--steve-text, #e2e8f0);
    text-decoration: none;
}
.lr-cmd-item-icon {
    font-size: 1.15rem;
    color: var(--steve-dim, #94a3b8);
    width: 20px;
    min-width: 20px;
    text-align: center;
}
.lr-cmd-item.lr-cmd-active .lr-cmd-item-icon {
    color: var(--steve-emerald, #10b981);
}
.lr-cmd-item-label {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    justify-self: stretch;
}
.lr-cmd-item-arrow {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.12s ease;
    color: var(--steve-dim, #94a3b8);
    width: 18px;
    text-align: center;
    justify-self: end;
}
.lr-cmd-item.lr-cmd-active .lr-cmd-item-arrow {
    opacity: 1;
    color: var(--steve-emerald, #10b981);
}

/* Scrollbar for command list */
.lr-cmd-list::-webkit-scrollbar {
    width: 4px;
}
.lr-cmd-list::-webkit-scrollbar-track {
    background: transparent;
}
.lr-cmd-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 4px;
}

/* ============================================================
   Subtab Bar — Glassmorphism Page-Level Navigation
   ============================================================ */

.lr-subtab-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 -24px;
    padding: 0 24px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Light mode override */
.mode-light .lr-subtab-bar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lr-subtab-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lr-subtab-inner::-webkit-scrollbar {
    display: none;
}

.lr-subtab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--steve-dim, #94a3b8);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.lr-subtab:hover {
    color: var(--steve-text, #e2e8f0);
    background: rgba(148, 163, 184, 0.06);
    text-decoration: none;
}

.lr-subtab.active {
    color: var(--steve-emerald, #10b981);
    background: rgba(16, 185, 129, 0.08);
    font-weight: 600;
}

.lr-subtab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--steve-emerald, #10b981);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Light mode subtab overrides */
.mode-light .lr-subtab {
    color: #64748b;
}
.mode-light .lr-subtab:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.04);
}
.mode-light .lr-subtab.active {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

/* --- Mobile: scroll hint gradient --- */
@media (max-width: 768px) {
    .headbar {
        padding-left: 14px;
        padding-right: 14px;
    }
    .lr-headbar {
        align-items: stretch !important;
        flex-wrap: wrap;
        gap: 10px;
    }
    .lr-headbar-left,
    .lr-headbar-actions {
        width: 100%;
    }
    .lr-search-trigger {
        width: 100%;
    }
    .lr-headbar-actions {
        justify-content: space-between;
    }
    .lr-create-btn {
        min-width: 104px;
    }
    .lr-subtab-bar {
        margin: 0 -12px;
        padding: 0 12px;
    }
    .lr-subtab {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .lr-subtab-bar::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.65));
        pointer-events: none;
        border-radius: 0;
    }
    .mode-light .lr-subtab-bar::after {
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.72));
    }
}

/* ============================================================
   LeafRelay Admin Sidebar — Steve cinematic v2 (settings bottom-anchored)
   ============================================================ */

/* Admin badge next to brand logo */
.lr-admin-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: var(--steve-emerald, #10b981);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}
.leftbar-closed .lr-admin-badge {
    display: none;
}

/* Bottom-anchored block in BOTH the customer and admin sidebar
   (vertical leftbar mode). Pin Settings + Account to the bottom of
   the FIXED sidebar element (.leafrelay-nav) so positioning is
   independent of Bootstrap's brand-above-collapse internal layout.
   The .leafrelay-nav has position:fixed top:0 bottom:0 so it equals
   100vh — anchoring bottom:0 there guarantees the cluster sits
   precisely at the viewport edge. Main-menu gets a bottom padding
   equal to the cluster's max height so the rail never collides
   with the bottom block. */
@media (min-width: 992px) {
    .leftbar .leafrelay-nav .navbar-collapse {
        overflow: visible;
    }
    .leftbar .leafrelay-nav .main-menu {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        margin-bottom: 0;
        padding-bottom: 140px;
    }
    /* Pin bottom cluster to the foot of the sidebar
       (anchored to .leafrelay-nav which is position:fixed = full viewport) */
    .leftbar .leafrelay-nav .navbar-right,
    .leftbar .leafrelay-nav .lr-admin-bottom {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding-top: 8px;
        border-top: 1px solid var(--steve-border, rgba(148, 163, 184, 0.08));
        background: inherit;
        z-index: 2;
    }
    .leftbar .leafrelay-nav .navbar-right > .navbar-nav,
    .leftbar .leafrelay-nav .lr-admin-bottom > .navbar-nav {
        flex-direction: column;
    }
    /* Compact bottom rows so avatar + name always fit comfortably */
    .leftbar .leafrelay-nav .navbar-right .nav-link,
    .leftbar .leafrelay-nav .lr-admin-bottom .nav-link {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* User avatar circle — emerald gradient (matches LeafRelay leaf brand)
   Replaces the inline-styled circle on each menu so customer + admin
   stay visually consistent. */
.lr-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--steve-emerald, #10b981), #14b8a6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18);
}
.lr-user-name {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--steve-text, #e2e8f0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.leftbar-closed .lr-user-name {
    display: none;
}

/* Settings tab in bottom block — slightly muted vs main rail */
.lr-admin-settings .nav-link {
    opacity: 0.85;
    transition: opacity 0.18s ease;
}
.lr-admin-settings .nav-link:hover,
.lr-admin-settings.active .nav-link {
    opacity: 1;
}

/* Account row spacing */
.lr-admin-account .nav-link {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 10px;
}

/* ============================================================
   LeafRelay mobile (<992px) — collapse the leftbar behind a
   hamburger so the sidebar stops eating the entire viewport.
   The desktop-only @media (min-width: 992px) rules above never
   fire here, but the legacy .leftbar body class still applies
   vertical-sidebar styling that nav-overlays the page. Force
   a normal top-bar layout on mobile.
   ============================================================ */
@media (max-width: 991.98px) {
    body.leftbar .leafrelay-nav,
    body.leftbar .leafrelay-nav.navbar-main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        bottom: auto !important;
        padding: 6px 14px !important;
        z-index: 1030;
        /* Kill the desktop backdrop-filter at mobile — it creates a
           stacking-context trap that pulls position:fixed descendants
           inside the nav and lets page content overlay the dropdown. */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(11, 19, 33, 0.96) !important;
    }

    /* Default-collapsed menu, only revealed when the user taps the
       hamburger (Bootstrap's built-in .show toggle on .collapse). */
    body.leftbar .leafrelay-nav .navbar-collapse {
        display: none !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        background: rgba(11, 19, 33, 0.98);
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        padding: 12px 16px 20px;
        z-index: 1031;
    }
    body.leftbar .leafrelay-nav .navbar-collapse.show,
    body.leftbar .leafrelay-nav .navbar-collapse.collapsing {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        height: auto !important;
        max-height: min(74vh, 560px) !important;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    }

    body.leftbar .leafrelay-nav .main-menu {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column;
        gap: 4px;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Mobile-friendly menu items (text + icon, comfortable hit area) */
    body.leftbar .leafrelay-nav .navbar-collapse .nav-link {
        padding: 12px 14px !important;
        gap: 14px;
        border-radius: 10px;
        color: var(--steve-text, #e2e8f0);
    }
    body.leftbar .leafrelay-nav .navbar-collapse .nav-link span:not(.lr-user-avatar):not(.lr-admin-badge) {
        display: inline-block !important;
    }
    body.leftbar .leafrelay-nav .navbar-collapse .nav-item.active > .nav-link {
        background: rgba(16, 185, 129, 0.10);
        color: var(--steve-emerald, #10b981);
    }

    /* Bottom cluster on mobile = inline at the foot of the open menu,
       not absolute. Keep the divider for the visual cluster cue. */
    body.leftbar .leafrelay-nav .navbar-right,
    body.leftbar .leafrelay-nav .lr-admin-bottom {
        position: static !important;
        flex: 0 0 auto !important;
        margin-top: 14px;
        padding-top: 12px;
        padding-bottom: 4px;
        border-top: 1px solid rgba(148, 163, 184, 0.10);
        background: transparent !important;
    }
    body.leftbar .leafrelay-nav .navbar-right > .navbar-nav,
    body.leftbar .leafrelay-nav .lr-admin-bottom > .navbar-nav {
        flex-direction: column;
    }

    /* Show the Bootstrap navbar-toggler (hamburger) */
    body.leftbar .leafrelay-nav .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 10px;
        padding: 6px 10px;
    }
    body.leftbar .leafrelay-nav .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* Hide desktop-only sidebar-collapse chevron */
    body.leftbar .leftbar-hide-menu,
    body.leftbar .middle-bar-element {
        display: none !important;
    }

    /* Page content takes full width and clears the fixed top navbar */
    body.leftbar main.page-container,
    body.leftbar main.container.page-container {
        margin-left: 0 !important;
        padding-top: 64px !important;
    }

    /* Brand row sits compact on mobile */
    body.leftbar .leafrelay-nav .navbar-brand {
        margin-right: auto;
        padding: 4px 0;
    }
    body.leftbar .leafrelay-nav .navbar-brand .logo {
        max-height: 32px;
        height: auto;
    }
}

/* ============================================================
   Steve fleet S225 — loading skeleton primitive
   ============================================================ */

.lr-skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.06) 0%,
        rgba(148, 163, 184, 0.14) 50%,
        rgba(148, 163, 184, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: lr-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}
.mode-light .lr-skeleton {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.04) 0%,
        rgba(15, 23, 42, 0.10) 50%,
        rgba(15, 23, 42, 0.04) 100%
    );
    background-size: 200% 100%;
}
@keyframes lr-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.lr-skeleton.lr-skeleton-text { height: 0.95rem; margin: 4px 0; }
.lr-skeleton.lr-skeleton-title { height: 1.3rem; width: 60%; }
.lr-skeleton.lr-skeleton-block { min-height: 120px; }

/* ============================================================
   Steve fleet S226 — anotify toast overrides
   ============================================================ */

#anotify {
    right: 24px !important;
    bottom: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
#anotify .alert {
    position: relative;
    width: min(380px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    padding: 14px 44px 14px 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-left-width: 3px !important;
    background: rgba(10, 15, 26, 0.96) !important;
    color: var(--steve-text, #e2e8f0) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}
#anotify .alert::before {
    position: absolute;
    left: 15px;
    top: 50%;
    margin: 0 !important;
    transform: translateY(-50%);
    font-family: 'Material Symbols Rounded';
    font-size: 22px;
    line-height: 1;
}
#anotify .alert .fw-600 {
    color: #f8fafc;
    font-size: 0.88rem;
    margin-bottom: 2px;
}
#anotify .alert > div:not(.fw-600) {
    color: var(--steve-dim, #94a3b8);
    font-size: 0.82rem;
    line-height: 1.45;
}
#anotify .alert-info,
#anotify .alert-primary {
    border-left-color: #38bdf8 !important;
}
#anotify .alert-info::before,
#anotify .alert-primary::before {
    content: 'info';
    color: #38bdf8;
}
#anotify .alert-success {
    border-left-color: #10b981 !important;
}
#anotify .alert-success::before {
    content: 'check_circle';
    color: #10b981;
}
#anotify .alert-warning {
    border-left-color: #f59e0b !important;
}
#anotify .alert-warning::before {
    content: 'error_outline';
    color: #f59e0b;
}
#anotify .alert-danger,
#anotify .alert-error {
    border-left-color: #ef4444 !important;
}
#anotify .alert-danger::before,
#anotify .alert-error::before {
    content: 'new_releases';
    color: #ef4444;
}
#anotify .alert-dismissible .btn-close {
    top: 10px !important;
    right: 10px !important;
    display: block !important;
    width: 24px;
    height: 24px;
    padding: 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 999px !important;
    background-color: rgba(15, 23, 42, 0.68) !important;
    opacity: 0.72;
}
#anotify .alert-dismissible .btn-close:hover {
    opacity: 1;
}
.mode-light #anotify .alert {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
}
.mode-light #anotify .alert .fw-600 {
    color: #0f172a;
}
.mode-light #anotify .alert > div:not(.fw-600) {
    color: #475569;
}

/* ============================================================
   Steve fleet S56 — contacts import wizard
   ============================================================ */

.popup-wizard {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.popup-wizard .wizard-sidebar,
.popup-wizard .wizard-content {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(9, 15, 29, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}
.popup-wizard .wizard-sidebar {
    width: auto !important;
    padding: 12px;
    margin: 0 !important;
    border-right-color: rgba(148, 163, 184, 0.14) !important;
}
.popup-wizard .wizard-content {
    width: auto !important;
    min-width: 0;
    padding: 18px;
    margin: 0 !important;
    border-left-color: rgba(148, 163, 184, 0.14) !important;
}
.popup-wizard .wizard-content > p:first-child {
    margin-bottom: 18px;
    color: var(--steve-dim, #94a3b8);
    line-height: 1.58;
}
.popup-wizard .wizard-content > p:first-child a {
    color: var(--steve-emerald, #10b981);
    font-weight: 700;
    text-decoration: none;
}
.popup-wizard .wizard-content > p:first-child a:hover {
    text-decoration: underline;
}
.popup-wizard .wizard-steps {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.popup-wizard .wizard-steps li .import-tab {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--steve-dim, #94a3b8);
}
.popup-wizard .wizard-steps li .import-tab .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--steve-dim, #94a3b8);
    font-size: 21px;
}
.popup-wizard .wizard-steps li .import-tab label {
    display: block;
    margin: 0 0 3px;
    color: var(--steve-text, #e2e8f0);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}
.popup-wizard .wizard-steps li .import-tab p {
    margin: 0;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.78rem;
    line-height: 1.35;
}
.popup-wizard .wizard-steps li .import-tab.current {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.11) !important;
    color: var(--steve-text, #e2e8f0);
}
.popup-wizard .wizard-steps li .import-tab.current::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -1px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--steve-emerald, #10b981);
}
.popup-wizard .wizard-steps li .import-tab.current .material-symbols-rounded {
    background: rgba(16, 185, 129, 0.16);
    color: var(--steve-emerald, #10b981);
}
.popup-wizard .dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    padding: 24px;
    border: 1px dashed rgba(16, 185, 129, 0.42) !important;
    border-radius: 16px;
    background: rgba(4, 17, 31, 0.72);
    color: var(--steve-dim, #94a3b8);
}
.popup-wizard .dropzone.dz-drag-hover {
    border-color: var(--steve-emerald, #10b981) !important;
    background: rgba(16, 185, 129, 0.09);
}
.popup-wizard .dropzone .dz-message {
    margin: 0;
    color: var(--steve-text, #e2e8f0);
    font-weight: 700;
}
.popup-wizard .wizard-content .list-group {
    display: grid;
    gap: 10px;
}
.popup-wizard .wizard-content .list-group-item {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(4, 17, 31, 0.66);
    color: var(--steve-text, #e2e8f0);
}
.popup-wizard .wizard-content .list-group-item > .d-flex {
    gap: 12px;
}
.popup-wizard .wizard-content [mapping-control="options"].bg-light {
    border-top-color: rgba(148, 163, 184, 0.14) !important;
    background: rgba(15, 23, 42, 0.82) !important;
}
.popup-wizard .wizard-content [mapping-control="short-desc"],
.popup-wizard .wizard-content [mapping-control="options"] p {
    color: var(--steve-dim, #94a3b8);
}
.popup-wizard .wizard-content [mapping-control="edit"],
.popup-wizard .wizard-content [mapping-control="close"],
.popup-wizard .wizard-content [mapping-control="save"],
.popup-wizard .wizard-content [data-action="manage-list-fields"] {
    color: var(--steve-emerald, #10b981);
}
.popup-wizard #ImportProgressContent {
    margin: 18px 0;
}
.popup-wizard .btn-mc_primary,
.popup-wizard .btn.bg-teal-800 {
    border-color: rgba(16, 185, 129, 0.42) !important;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    color: #04111f !important;
    font-weight: 800;
}
.mode-light .popup-wizard .wizard-sidebar,
.mode-light .popup-wizard .wizard-content {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}
.mode-light .popup-wizard .import-tab label,
.mode-light .popup-wizard .dropzone .dz-message,
.mode-light .popup-wizard .wizard-content .list-group-item {
    color: #0f172a;
}
.mode-light .popup-wizard .import-tab,
.mode-light .popup-wizard .import-tab p,
.mode-light .popup-wizard .wizard-content > p:first-child,
.mode-light .popup-wizard .wizard-content [mapping-control="short-desc"],
.mode-light .popup-wizard .wizard-content [mapping-control="options"] p {
    color: #64748b;
}
.mode-light .popup-wizard .import-tab .material-symbols-rounded,
.mode-light .popup-wizard .dropzone,
.mode-light .popup-wizard .wizard-content .list-group-item {
    background: rgba(15, 23, 42, 0.04);
}
.mode-light .popup-wizard .import-tab.current {
    background: rgba(16, 185, 129, 0.10) !important;
}
.mode-light .popup-wizard .wizard-content [mapping-control="options"].bg-light {
    background: rgba(248, 250, 252, 0.96) !important;
}
@media (max-width: 767.98px) {
    .popup-wizard {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .popup-wizard .wizard-sidebar,
    .popup-wizard .wizard-content {
        border-radius: 14px;
    }
    .popup-wizard .wizard-content {
        padding: 14px;
    }
    .popup-wizard .wizard-steps li .import-tab {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 11px;
    }
    .popup-wizard .wizard-steps li .import-tab .material-symbols-rounded {
        width: 34px;
        height: 34px;
    }
    .popup-wizard .wizard-content .list-group-item > .d-flex,
    .popup-wizard .wizard-content [mapping-control="option-detail"] .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
    }
}

/* ============================================================
   Steve fleet S57 — contacts export flow
   ============================================================ */

.lr-export-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 1.75rem;
    font-weight: 800;
}
.lr-export-title .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
    font-size: 22px;
}
.lr-export-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(9, 15, 29, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}
.lr-export-panel {
    margin: 0;
    padding: 18px;
}
.lr-export-panel > p:first-child {
    margin-bottom: 16px;
    color: var(--steve-dim, #94a3b8);
    line-height: 1.58;
}
.lr-export-panel > p:first-child strong,
.lr-export-panel > p:first-child b {
    color: var(--steve-text, #e2e8f0);
}
.lr-export-panel .control-radio {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.lr-export-panel .radio_box {
    margin: 0 !important;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(4, 17, 31, 0.62);
}
.lr-export-panel .radio_box.disabled {
    opacity: 0.56;
}
.lr-export-panel .main-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.lr-export-panel rtitle {
    color: var(--steve-text, #e2e8f0);
    font-weight: 700;
}
.lr-export-panel .radio_more_box {
    margin-top: 12px;
    padding-top: 12px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.lr-export-panel .radio_more_box .form-control,
.lr-export-panel .radio_more_box .select2-selection {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(15, 23, 42, 0.74) !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.lr-export-card .btn-secondary,
.lr-export-card .btn-default {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: var(--steve-text, #e2e8f0) !important;
    font-weight: 800;
}
.lr-export-card .btn-secondary:hover,
.lr-export-card .btn-default:hover {
    border-color: rgba(16, 185, 129, 0.36) !important;
    color: var(--steve-emerald, #10b981) !important;
}
.lr-export-card .lr-export-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: rgba(16, 185, 129, 0.42) !important;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    color: #04111f !important;
}
.lr-export-card .lr-export-submit:hover {
    color: #04111f !important;
    filter: brightness(1.04);
}
.lr-export-card .lr-export-submit .material-symbols-rounded {
    font-size: 18px;
}
.lr-export-card #notice {
    margin-bottom: 14px !important;
    color: var(--steve-text, #e2e8f0);
    font-size: 1rem;
    font-weight: 800;
}
.lr-export-card .progress {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
}
.lr-export-card .progress-bar {
    border-radius: 999px;
}
.lr-export-card .progress-total {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%) !important;
}
.lr-export-card .progress-error {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%) !important;
}
.lr-export-card #bottomNotice {
    display: block;
    margin: 12px 0 16px !important;
    color: var(--steve-dim, #94a3b8);
    font-style: normal !important;
}
.lr-export-card .finish .text-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.lr-export-card #downloadBtn {
    border-color: rgba(16, 185, 129, 0.42) !important;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    color: #04111f !important;
}
.mode-light .lr-export-title {
    color: #0f172a !important;
}
.mode-light .lr-export-card {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}
.mode-light .lr-export-panel > p:first-child,
.mode-light .lr-export-card #bottomNotice {
    color: #64748b;
}
.mode-light .lr-export-panel > p:first-child strong,
.mode-light .lr-export-panel > p:first-child b,
.mode-light .lr-export-panel rtitle,
.mode-light .lr-export-card #notice {
    color: #0f172a;
}
.mode-light .lr-export-panel .radio_box,
.mode-light .lr-export-panel .radio_more_box .form-control,
.mode-light .lr-export-panel .radio_more_box .select2-selection {
    border-color: rgba(15, 23, 42, 0.10) !important;
    background: rgba(248, 250, 252, 0.96) !important;
    color: #0f172a !important;
}
.mode-light .lr-export-card .btn-secondary,
.mode-light .lr-export-card .btn-default {
    border-color: rgba(15, 23, 42, 0.12) !important;
    background: rgba(241, 245, 249, 0.96) !important;
    color: #0f172a !important;
}

/* ============================================================
   Steve fleet S74 — audience error states
   ============================================================ */

.sub-section .form-group.has-error,
.popup-wizard .mapping-error {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(239, 68, 68, 0.34);
    border-radius: 14px;
    background: rgba(127, 29, 29, 0.14);
}
.sub-section .form-group.has-error label,
.sub-section .form-group.has-error .form-label {
    color: #fecaca !important;
}
.sub-section .form-group.has-error .form-control,
.sub-section .form-control.is-invalid,
.sub-section .form-control.error,
.popup-wizard .mapping-error .form-control,
.popup-wizard .mapping-error .select2-selection {
    border-color: rgba(239, 68, 68, 0.72) !important;
    background: rgba(127, 29, 29, 0.12) !important;
    color: var(--steve-text, #e2e8f0) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}
.sub-section .help-block,
.sub-section label.error,
.sub-section .invalid-feedback,
.sub-section .text-danger.small,
.popup-wizard .mapping-error [mapping-control="short-desc"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px !important;
    padding: 6px 9px;
    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca !important;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}
.sub-section .help-block::before,
.sub-section label.error::before,
.sub-section .invalid-feedback::before,
.sub-section .text-danger.small::before {
    content: 'error_outline';
    font-family: 'Material Symbols Rounded';
    font-size: 16px;
    line-height: 1;
    color: #f87171;
}
.sub-section .alert-danger,
.popup-wizard .alert-danger {
    border-color: rgba(239, 68, 68, 0.30) !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 14px !important;
    background: rgba(127, 29, 29, 0.16) !important;
    color: #fecaca !important;
}
.mode-light .sub-section .form-group.has-error,
.mode-light .popup-wizard .mapping-error {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(254, 226, 226, 0.74);
}
.mode-light .sub-section .form-group.has-error label,
.mode-light .sub-section .form-group.has-error .form-label {
    color: #991b1b !important;
}
.mode-light .sub-section .form-group.has-error .form-control,
.mode-light .sub-section .form-control.is-invalid,
.mode-light .sub-section .form-control.error,
.mode-light .popup-wizard .mapping-error .form-control,
.mode-light .popup-wizard .mapping-error .select2-selection {
    border-color: rgba(220, 38, 38, 0.62) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
}
.mode-light .sub-section .help-block,
.mode-light .sub-section label.error,
.mode-light .sub-section .invalid-feedback,
.mode-light .sub-section .text-danger.small,
.mode-light .popup-wizard .mapping-error [mapping-control="short-desc"] {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(254, 226, 226, 0.86);
    color: #991b1b !important;
}

/* ============================================================
   Steve fleet S79 — audience keyboard focus
   ============================================================ */

.nav-tabs.nav-underline .nav-link:focus-visible,
.pml-table a:focus-visible,
.pml-table button:focus-visible,
.pml-table input[type="checkbox"]:focus-visible,
.dropdown-menu .dropdown-item:focus-visible,
.filter-box a:focus-visible,
.filter-box button:focus-visible,
.filter-box input:focus-visible,
.filter-box select:focus-visible,
.sub-section a:focus-visible,
.sub-section button:focus-visible,
.sub-section input:focus-visible,
.sub-section textarea:focus-visible,
.sub-section select:focus-visible,
.lr-export-card a:focus-visible,
.lr-export-card button:focus-visible,
.lr-export-card input:focus-visible,
.popup-wizard a:focus-visible,
.popup-wizard button:focus-visible,
.popup-wizard input:focus-visible,
.popup-wizard select:focus-visible,
.popup-wizard textarea:focus-visible {
    outline: 2px solid var(--steve-emerald, #10b981) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.16) !important;
}
.nav-tabs.nav-underline .nav-link:focus-visible,
.dropdown-menu .dropdown-item:focus-visible,
.pml-table a:focus-visible,
.filter-box a:focus-visible,
.sub-section a:focus-visible,
.popup-wizard a:focus-visible {
    border-radius: 10px;
    color: var(--steve-emerald, #10b981) !important;
}
.pml-table tr:focus-within {
    background: rgba(16, 185, 129, 0.07) !important;
}
.pml-table .btn:focus-visible,
.sub-section .btn:focus-visible,
.lr-export-card .btn:focus-visible,
.popup-wizard .btn:focus-visible {
    transform: translateY(-1px);
}
.sub-section .form-control:focus-visible,
.sub-section .select2-selection:focus-visible,
.lr-export-card .form-control:focus-visible,
.lr-export-card .select2-selection:focus-visible,
.popup-wizard .form-control:focus-visible,
.popup-wizard .select2-selection:focus-visible {
    border-color: rgba(16, 185, 129, 0.72) !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: var(--steve-text, #e2e8f0) !important;
}
.sub-section label:focus-within,
.lr-export-card label:focus-within,
.popup-wizard label:focus-within {
    color: var(--steve-text, #e2e8f0);
}
.lr-export-card .radio_box:focus-within,
.popup-wizard .import-tab:focus-within,
.popup-wizard .list-group-item:focus-within {
    border-color: rgba(16, 185, 129, 0.38) !important;
    background: rgba(16, 185, 129, 0.08) !important;
}
.mode-light .nav-tabs.nav-underline .nav-link:focus-visible,
.mode-light .pml-table a:focus-visible,
.mode-light .pml-table button:focus-visible,
.mode-light .pml-table input[type="checkbox"]:focus-visible,
.mode-light .dropdown-menu .dropdown-item:focus-visible,
.mode-light .filter-box a:focus-visible,
.mode-light .filter-box button:focus-visible,
.mode-light .filter-box input:focus-visible,
.mode-light .filter-box select:focus-visible,
.mode-light .sub-section a:focus-visible,
.mode-light .sub-section button:focus-visible,
.mode-light .sub-section input:focus-visible,
.mode-light .sub-section textarea:focus-visible,
.mode-light .sub-section select:focus-visible,
.mode-light .lr-export-card a:focus-visible,
.mode-light .lr-export-card button:focus-visible,
.mode-light .lr-export-card input:focus-visible,
.mode-light .popup-wizard a:focus-visible,
.mode-light .popup-wizard button:focus-visible,
.mode-light .popup-wizard input:focus-visible,
.mode-light .popup-wizard select:focus-visible,
.mode-light .popup-wizard textarea:focus-visible {
    outline-color: #059669 !important;
    box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.18) !important;
}
.mode-light .pml-table tr:focus-within {
    background: rgba(16, 185, 129, 0.08) !important;
}
.mode-light .sub-section .form-control:focus-visible,
.mode-light .sub-section .select2-selection:focus-visible,
.mode-light .lr-export-card .form-control:focus-visible,
.mode-light .lr-export-card .select2-selection:focus-visible,
.mode-light .popup-wizard .form-control:focus-visible,
.mode-light .popup-wizard .select2-selection:focus-visible {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
}

/* ============================================================
   Steve fleet S80 — audience loading skeletons
   ============================================================ */

#ListsIndexContainer.list-loading,
#SubscriberListContainer.list-loading,
#SegmentsIndexContainer.list-loading,
#SegmentsSubscribersContainer.list-loading {
    opacity: 1 !important;
}
#ListsIndexContainer.list-loading::after,
#SubscriberListContainer.list-loading::after,
#SegmentsIndexContainer.list-loading::after,
#SegmentsSubscribersContainer.list-loading::after {
    display: none !important;
}
#ListsIndexContainer .pre-list-content,
#SubscriberListContainer .pre-list-content,
#SegmentsIndexContainer .pre-list-content,
#SegmentsSubscribersContainer .pre-list-content {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(9, 15, 29, 0.82);
}
#ListsIndexContainer .pre-list-content tr,
#SubscriberListContainer .pre-list-content tr,
#SegmentsIndexContainer .pre-list-content tr,
#SegmentsSubscribersContainer .pre-list-content tr {
    border-color: rgba(148, 163, 184, 0.08);
}
#ListsIndexContainer.list-loading .animated-background,
#SubscriberListContainer.list-loading .animated-background,
#SegmentsIndexContainer.list-loading .animated-background,
#SegmentsSubscribersContainer.list-loading .animated-background,
#ListsIndexContainer.list-loading .styled.animated-background::before,
#SubscriberListContainer.list-loading .styled.animated-background::before,
#SegmentsIndexContainer.list-loading .styled.animated-background::before,
#SegmentsSubscribersContainer.list-loading .styled.animated-background::before {
    min-height: 12px;
    border-radius: 8px !important;
    opacity: 1 !important;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.06) 0%,
        rgba(148, 163, 184, 0.14) 50%,
        rgba(148, 163, 184, 0.06) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: lr-skeleton-shimmer 1.4s ease-in-out infinite !important;
}
#ListsIndexContainer.list-loading .btn.animated-background,
#SubscriberListContainer.list-loading .btn.animated-background,
#SegmentsIndexContainer.list-loading .btn.animated-background,
#SegmentsSubscribersContainer.list-loading .btn.animated-background {
    min-width: 76px;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
}
#ListsIndexContainer .list-loading-msg,
#SubscriberListContainer .list-loading-msg,
#SegmentsIndexContainer .list-loading-msg,
#SegmentsSubscribersContainer .list-loading-msg {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    left: 18px !important;
    top: 16px !important;
    padding: 8px 11px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.09) !important;
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 0.78rem;
    font-weight: 800;
}
#ListsIndexContainer .list-loading-msg::before,
#SubscriberListContainer .list-loading-msg::before,
#SegmentsIndexContainer .list-loading-msg::before,
#SegmentsSubscribersContainer .list-loading-msg::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--steve-emerald, #10b981);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.48);
}
.mode-light #ListsIndexContainer .pre-list-content,
.mode-light #SubscriberListContainer .pre-list-content,
.mode-light #SegmentsIndexContainer .pre-list-content,
.mode-light #SegmentsSubscribersContainer .pre-list-content {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
}
.mode-light #ListsIndexContainer.list-loading .animated-background,
.mode-light #SubscriberListContainer.list-loading .animated-background,
.mode-light #SegmentsIndexContainer.list-loading .animated-background,
.mode-light #SegmentsSubscribersContainer.list-loading .animated-background,
.mode-light #ListsIndexContainer.list-loading .styled.animated-background::before,
.mode-light #SubscriberListContainer.list-loading .styled.animated-background::before,
.mode-light #SegmentsIndexContainer.list-loading .styled.animated-background::before,
.mode-light #SegmentsSubscribersContainer.list-loading .styled.animated-background::before {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.04) 0%,
        rgba(15, 23, 42, 0.10) 50%,
        rgba(15, 23, 42, 0.04) 100%
    ) !important;
    background-size: 200% 100% !important;
}
.mode-light #ListsIndexContainer .list-loading-msg,
.mode-light #SubscriberListContainer .list-loading-msg,
.mode-light #SegmentsIndexContainer .list-loading-msg,
.mode-light #SegmentsSubscribersContainer .list-loading-msg {
    border-color: rgba(16, 185, 129, 0.20);
    background: rgba(209, 250, 229, 0.86) !important;
    color: #065f46 !important;
}
#ListsIndexContent.list-loading,
#SubscribersIndexContent.list-loading,
#SegmentsIndexContent.list-loading,
#SegmentsSubscribersContent.list-loading {
    opacity: 1 !important;
}
#ListsIndexContent.list-loading::after,
#SubscribersIndexContent.list-loading::after,
#SegmentsIndexContent.list-loading::after,
#SegmentsSubscribersContent.list-loading::after {
    display: none !important;
}
#ListsIndexContent .pre-list-content,
#SubscribersIndexContent .pre-list-content,
#SegmentsIndexContent .pre-list-content,
#SegmentsSubscribersContent .pre-list-content {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(9, 15, 29, 0.82);
}
#ListsIndexContent.list-loading .animated-background,
#SubscribersIndexContent.list-loading .animated-background,
#SegmentsIndexContent.list-loading .animated-background,
#SegmentsSubscribersContent.list-loading .animated-background,
#ListsIndexContent.list-loading .styled.animated-background::before,
#SubscribersIndexContent.list-loading .styled.animated-background::before,
#SegmentsIndexContent.list-loading .styled.animated-background::before,
#SegmentsSubscribersContent.list-loading .styled.animated-background::before {
    min-height: 12px;
    border-radius: 8px !important;
    opacity: 1 !important;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.06) 0%,
        rgba(148, 163, 184, 0.14) 50%,
        rgba(148, 163, 184, 0.06) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: lr-skeleton-shimmer 1.4s ease-in-out infinite !important;
}
#ListsIndexContent .list-loading-msg,
#SubscribersIndexContent .list-loading-msg,
#SegmentsIndexContent .list-loading-msg,
#SegmentsSubscribersContent .list-loading-msg {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    left: 18px !important;
    top: 16px !important;
    padding: 8px 11px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.09) !important;
    color: var(--steve-text, #e2e8f0) !important;
    font-size: 0.78rem;
    font-weight: 800;
}
#ListsIndexContent .list-loading-msg::before,
#SubscribersIndexContent .list-loading-msg::before,
#SegmentsIndexContent .list-loading-msg::before,
#SegmentsSubscribersContent .list-loading-msg::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--steve-emerald, #10b981);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.48);
}
.mode-light #ListsIndexContent .pre-list-content,
.mode-light #SubscribersIndexContent .pre-list-content,
.mode-light #SegmentsIndexContent .pre-list-content,
.mode-light #SegmentsSubscribersContent .pre-list-content {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
}
.mode-light #ListsIndexContent.list-loading .animated-background,
.mode-light #SubscribersIndexContent.list-loading .animated-background,
.mode-light #SegmentsIndexContent.list-loading .animated-background,
.mode-light #SegmentsSubscribersContent.list-loading .animated-background,
.mode-light #ListsIndexContent.list-loading .styled.animated-background::before,
.mode-light #SubscribersIndexContent.list-loading .styled.animated-background::before,
.mode-light #SegmentsIndexContent.list-loading .styled.animated-background::before,
.mode-light #SegmentsSubscribersContent.list-loading .styled.animated-background::before {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.04) 0%,
        rgba(15, 23, 42, 0.10) 50%,
        rgba(15, 23, 42, 0.04) 100%
    ) !important;
    background-size: 200% 100% !important;
}
.mode-light #ListsIndexContent .list-loading-msg,
.mode-light #SubscribersIndexContent .list-loading-msg,
.mode-light #SegmentsIndexContent .list-loading-msg,
.mode-light #SegmentsSubscribersContent .list-loading-msg {
    border-color: rgba(16, 185, 129, 0.20);
    background: rgba(209, 250, 229, 0.86) !important;
    color: #065f46 !important;
}

/* ============================================================
   Steve fleet S88 — sending server health badge
   ============================================================ */

.lr-server-health {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.lr-server-health-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}
.lr-server-health-active {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.lr-server-health-active .lr-server-health-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14), 0 0 14px rgba(16, 185, 129, 0.46);
}
.lr-server-health-inactive,
.lr-server-health-disabled {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}
.lr-server-health-inactive .lr-server-health-dot,
.lr-server-health-disabled .lr-server-health-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}
.lr-server-health-error,
.lr-server-health-failed {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}
.lr-server-health-error .lr-server-health-dot,
.lr-server-health-failed .lr-server-health-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.mode-light .lr-server-health {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}
.mode-light .lr-server-health-active {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
}
.mode-light .lr-server-health-inactive,
.mode-light .lr-server-health-disabled {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.mode-light .lr-server-health-error,
.mode-light .lr-server-health-failed {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

/* ============================================================
   Instance admin dashboard - chart cards
   ============================================================ */

.lr-admin-chart-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 13, 24, 0.86));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.lr-admin-chart-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 18%, rgba(16, 185, 129, 0.16), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(6, 182, 212, 0.12), transparent 24%);
    opacity: 0.9;
}
.lr-admin-chart-card > * {
    position: relative;
    z-index: 1;
}
.lr-admin-chart-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.lr-admin-chart-topline strong {
    display: block;
    color: var(--steve-text, #e2e8f0);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.lr-admin-chart-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}
.lr-admin-chart-metrics {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
    flex: 0 0 auto;
}
.lr-admin-chart-metrics span {
    display: grid;
    min-width: 82px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: rgba(10, 15, 26, 0.48);
}
.lr-admin-chart-metrics b {
    color: #34d399;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}
.lr-admin-chart-metrics small {
    margin-top: 5px;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}
.lr-admin-chart-frame {
    min-height: 350px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 14px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        rgba(10, 15, 26, 0.34);
    background-size: 42px 42px, 42px 42px, auto;
}
.lr-admin-chart-frame .chart {
    min-height: 350px;
}
.lr-admin-chart-card-plans {
    background:
        linear-gradient(145deg, rgba(6, 182, 212, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 13, 24, 0.86));
}
.mode-light .lr-admin-chart-card {
    border-color: rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.90));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.mode-light .lr-admin-chart-topline strong,
.mode-light .lr-admin-chart-metrics b {
    color: #0f172a;
}
.mode-light .lr-admin-chart-metrics span,
.mode-light .lr-admin-chart-frame {
    border-color: rgba(15, 23, 42, 0.10);
    background-color: rgba(255, 255, 255, 0.68);
}

.lr-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lr-language-trigger {
    min-height: 40px;
    min-width: 148px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.10), transparent 42%),
        rgba(10, 15, 26, 0.72);
    color: var(--steve-text, #e2e8f0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.lr-language-trigger:hover,
.lr-language-switcher.is-open .lr-language-trigger {
    border-color: rgba(16, 185, 129, 0.34);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent 44%),
        rgba(10, 15, 26, 0.88);
}
.lr-language-icon {
    color: var(--steve-emerald, #10b981);
    font-size: 18px;
}
.lr-language-current {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--steve-text, #e2e8f0);
    font-size: 0.78rem;
    font-weight: 800;
}
.lr-language-chevron {
    color: var(--steve-dim, #94a3b8);
    font-size: 18px;
    transition: transform 0.15s ease;
}
.lr-language-switcher.is-open .lr-language-chevron {
    transform: rotate(180deg);
}
.lr-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    min-width: 220px;
    max-height: min(380px, calc(100vh - 120px));
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(10, 15, 26, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.lr-language-switcher.is-open .lr-language-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.lr-language-option {
    display: grid;
    grid-template-columns: 38px 1fr 18px;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 10px;
    color: var(--steve-text, #e2e8f0);
    text-decoration: none !important;
}
.lr-language-option:hover,
.lr-language-option.is-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-text, #e2e8f0);
}
.lr-language-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.10);
    color: var(--steve-dim, #94a3b8);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.lr-language-name {
    min-width: 0;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}
.lr-language-option.is-active .lr-language-code,
.lr-language-option.is-active .material-symbols-rounded {
    color: var(--steve-emerald, #10b981);
}
.lr-language-trigger:focus-visible,
.lr-language-option:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.9);
    outline-offset: 3px;
}
.mode-light .lr-language-switcher {
    color: #0f172a;
}
.mode-light .lr-language-trigger {
    border-color: rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 44%),
        rgba(255, 255, 255, 0.9);
    color: #0f172a;
}
.mode-light .lr-language-current,
.mode-light .lr-language-option {
    color: #0f172a;
}
.mode-light .lr-language-menu {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}
.mode-light .lr-language-option:hover,
.mode-light .lr-language-option.is-active {
    background: rgba(16, 185, 129, 0.10);
}

/* ============================================================
   Steve fleet S91 — sending domain DNS checklist
   ============================================================ */

.lr-dns-checklist {
    padding: 22px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(12, 18, 34, 0.82), rgba(8, 13, 24, 0.86));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}
.lr-dns-checklist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.lr-dns-eyebrow {
    display: inline-flex;
    color: var(--steve-emerald, #10b981);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lr-dns-checklist h2 {
    margin: 6px 0 0;
    color: var(--steve-text, #e2e8f0);
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: 0;
}
.lr-dns-domain {
    max-width: 260px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(10, 15, 26, 0.56);
    color: var(--steve-text, #e2e8f0);
    font-size: 0.78rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lr-dns-checklist-intro {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.65;
}
.lr-dns-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.lr-dns-check-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(10, 15, 26, 0.58);
    position: relative;
}
.lr-dns-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--steve-dim, #94a3b8);
    font-size: 19px;
}
.lr-dns-check-copy strong {
    display: block;
    color: var(--steve-text, #e2e8f0);
    font-size: 0.9rem;
    font-weight: 850;
}
.lr-dns-check-copy span {
    display: block;
    margin-top: 6px;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.82rem;
    line-height: 1.55;
}
.lr-dns-check-status {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lr-dns-check-item.is-verified {
    border-color: rgba(16, 185, 129, 0.24);
}
.lr-dns-check-item.is-verified .lr-dns-check-icon,
.lr-dns-check-item.is-verified .lr-dns-check-status {
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
}
.lr-dns-check-item.is-pending .lr-dns-check-icon,
.lr-dns-check-item.is-pending .lr-dns-check-status {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.mode-light .lr-dns-checklist {
    border-color: rgba(16, 185, 129, 0.18);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.mode-light .lr-dns-checklist h2,
.mode-light .lr-dns-domain,
.mode-light .lr-dns-check-copy strong {
    color: #0f172a;
}
.mode-light .lr-dns-domain,
.mode-light .lr-dns-check-item {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.10);
}
.mode-light .lr-dns-checklist-intro,
.mode-light .lr-dns-check-copy span {
    color: #475569;
}

/* ============================================================
   Steve fleet S92 — copyable DNS record cards
   ============================================================ */

.lr-dns-records {
    display: grid;
    gap: 12px;
}
.lr-dns-record-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent 34%),
        rgba(10, 15, 26, 0.72);
}
.lr-dns-record-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.lr-dns-record-head strong {
    color: var(--steve-text, #e2e8f0);
    font-size: 0.92rem;
    font-weight: 850;
}
.lr-dns-record-type,
.lr-dns-record-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lr-dns-record-type {
    background: rgba(148, 163, 184, 0.10);
    color: var(--steve-dim, #94a3b8);
}
.lr-dns-record-status {
    margin-left: auto;
}
.lr-dns-record-card.is-verified .lr-dns-record-status {
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
}
.lr-dns-record-card.is-pending .lr-dns-record-status {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.lr-dns-record-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.lr-dns-record-row > span {
    color: var(--steve-dim, #94a3b8);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.lr-dns-record-row code {
    display: block;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.58);
    color: #c7f9e5;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}
.lr-dns-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--steve-emerald, #10b981);
    font-size: 0.74rem;
    font-weight: 850;
    cursor: pointer;
}
.lr-dns-copy-btn:hover,
.lr-dns-copy-btn.is-copied {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.30);
}
.lr-dns-copy-btn .material-symbols-rounded {
    font-size: 16px;
}
.mode-light .lr-dns-record-card {
    border-color: rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent 34%),
        rgba(255, 255, 255, 0.88);
}
.mode-light .lr-dns-record-head strong {
    color: #0f172a;
}
.mode-light .lr-dns-record-row code {
    background: rgba(248, 250, 252, 0.96);
    color: #064e3b;
}
.mode-light .lr-dns-record-row > span {
    color: #475569;
}

/* ============================================================
   Steve fleet S93 — domain verification feedback
   ============================================================ */

.lr-verify-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.lr-verify-feedback {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 560px;
    padding: 11px 13px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(10, 15, 26, 0.68);
    color: var(--steve-dim, #94a3b8);
}
.lr-verify-feedback.is-hidden {
    display: none;
}
.lr-verify-feedback .material-symbols-rounded {
    color: var(--steve-dim, #94a3b8);
    font-size: 20px;
}
.lr-verify-feedback strong {
    display: block;
    color: var(--steve-text, #e2e8f0);
    font-size: 0.82rem;
    font-weight: 850;
}
.lr-verify-feedback p {
    margin: 3px 0 0;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.78rem;
    line-height: 1.45;
}
.lr-verify-feedback.is-checking {
    border-color: rgba(6, 182, 212, 0.24);
    background: rgba(6, 182, 212, 0.08);
}
.lr-verify-feedback.is-checking .material-symbols-rounded {
    color: #22d3ee;
    animation: lr-verify-spin 1s linear infinite;
}
.lr-verify-feedback.is-complete {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.10);
}
.lr-verify-feedback.is-complete .material-symbols-rounded {
    color: var(--steve-emerald, #10b981);
}
.lr-verify-feedback.is-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.10);
}
.lr-verify-feedback.is-error .material-symbols-rounded {
    color: #ef4444;
}
@keyframes lr-verify-spin {
    to { transform: rotate(360deg); }
}
.mode-light .lr-verify-feedback {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
}
.mode-light .lr-verify-feedback strong {
    color: #0f172a;
}
.mode-light .lr-verify-feedback p {
    color: #475569;
}

/* ============================================================
   Steve fleet S94 — sending domain create/edit form
   ============================================================ */

.lr-domain-form {
    max-width: 920px;
}
.lr-domain-form-card {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(12, 18, 34, 0.78), rgba(8, 13, 24, 0.84));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}
.lr-domain-form-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 760px;
}
.lr-domain-form-head > .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
    font-size: 22px;
}
.lr-domain-form-head h3 {
    margin: 0;
    color: var(--steve-text, #e2e8f0);
    font-size: 1.12rem;
    font-weight: 850;
}
.lr-domain-form-head p {
    margin: 7px 0 0;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.65;
}
.lr-domain-form-grid {
    margin-top: 20px;
}
.lr-domain-form-card .form-group {
    margin-bottom: 0;
}
.lr-domain-form-card label,
.lr-domain-form-card .control-label {
    color: var(--steve-dim, #94a3b8);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.lr-domain-form-card .form-control {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 10px !important;
    background: rgba(2, 6, 23, 0.52) !important;
    color: var(--steve-text, #e2e8f0) !important;
    font-weight: 750;
}
.lr-domain-form-card .form-control:focus {
    border-color: rgba(16, 185, 129, 0.50) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}
.lr-domain-form-card .form-control[readonly] {
    opacity: 0.78;
}
.lr-domain-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}
.lr-domain-form-actions .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lr-domain-form-actions .material-symbols-rounded {
    font-size: 18px;
}
.mode-light .lr-domain-form-card {
    border-color: rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.mode-light .lr-domain-form-head h3 {
    color: #0f172a;
}
.mode-light .lr-domain-form-head p,
.mode-light .lr-domain-form-card label,
.mode-light .lr-domain-form-card .control-label {
    color: #475569;
}
.mode-light .lr-domain-form-card .form-control {
    border-color: rgba(15, 23, 42, 0.14) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
}

@media (max-width: 767.98px) {
    .lr-admin-chart-card {
        min-height: 0;
        padding: 14px;
    }
    .lr-admin-chart-topline {
        flex-direction: column;
    }
    .lr-admin-chart-metrics {
        width: 100%;
    }
    .lr-admin-chart-metrics span {
        min-width: 0;
        flex: 1 1 0;
    }
    .lr-dns-checklist {
        padding: 16px;
    }
    .lr-dns-checklist-header {
        flex-direction: column;
    }
    .lr-dns-domain {
        max-width: 100%;
    }
    .lr-dns-record-row {
        grid-template-columns: 1fr;
    }
    .lr-dns-copy-btn {
        justify-self: start;
    }
    .lr-verify-feedback {
        width: 100%;
    }
    .lr-domain-form-card {
        padding: 16px;
    }
    .lr-domain-form-head {
        flex-direction: column;
    }
}

/* ============================================================
   Steve fleet S100 — delivery log detail drawer
   ============================================================ */

.lr-log-view-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.lr-log-view-btn .material-symbols-rounded {
    font-size: 16px;
}
.lr-log-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
}
.lr-log-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}
.lr-log-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 16, 0.66);
    opacity: 0;
    transition: opacity 0.18s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.lr-log-drawer.is-open .lr-log-drawer-backdrop {
    opacity: 1;
}
.lr-log-drawer-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(440px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.10), transparent 32%),
        rgba(10, 15, 26, 0.98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
    color: var(--steve-text, #e2e8f0);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.22s ease;
}
.lr-log-drawer.is-open .lr-log-drawer-panel {
    transform: translateX(0);
}
.lr-log-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.lr-log-drawer-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--steve-emerald, #10b981);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lr-log-drawer-header h2 {
    margin: 0;
    color: var(--steve-text, #e2e8f0);
    font-size: 1.35rem;
    font-weight: 800;
}
.lr-log-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--steve-dim, #94a3b8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lr-log-drawer-close:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.28);
}
.lr-log-drawer-body {
    padding: 22px;
    overflow: auto;
}
.lr-log-drawer-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.10);
    color: var(--steve-text, #e2e8f0);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lr-log-drawer-status[data-status="sent"] {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}
.lr-log-drawer-status[data-status="failed"],
.lr-log-drawer-status[data-status="bounced"],
.lr-log-drawer-status[data-status="feedback-abuse"],
.lr-log-drawer-status[data-status="feedback-spam"] {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
}
.lr-log-drawer-status[data-status="duplicate"] {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}
.lr-log-detail-grid {
    display: grid;
    gap: 12px;
    margin: 0;
}
.lr-log-detail-grid > div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
}
.lr-log-detail-grid dt,
.lr-log-error-block span {
    margin: 0 0 6px;
    color: var(--steve-dim, #94a3b8);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lr-log-detail-grid dd {
    margin: 0;
    color: var(--steve-text, #e2e8f0);
    font-size: 0.94rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.lr-log-error-block {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: rgba(2, 6, 16, 0.26);
}
.lr-log-error-block p {
    margin: 6px 0 0;
    color: var(--steve-text, #e2e8f0);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.mode-light .lr-log-drawer-panel {
    border-color: rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}
.mode-light .lr-log-drawer-header,
.mode-light .lr-log-detail-grid > div,
.mode-light .lr-log-error-block {
    border-color: rgba(15, 23, 42, 0.10);
}
.mode-light .lr-log-drawer-header h2,
.mode-light .lr-log-detail-grid dd,
.mode-light .lr-log-error-block p {
    color: #0f172a;
}
.mode-light .lr-log-detail-grid > div,
.mode-light .lr-log-error-block {
    background: rgba(248, 250, 252, 0.82);
}

@media (max-width: 767.98px) {
    .lr-log-drawer-panel {
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100vw, 420px);
        border-radius: 0;
    }
    .lr-log-drawer-header,
    .lr-log-drawer-body {
        padding: 18px;
    }
}

/* ============================================================
   Steve fleet S113 — tooltip primitive
   ============================================================ */

.lr-tooltip {
    position: relative;
    cursor: help;
    outline: none;
}
.lr-tooltip::after {
    content: attr(data-lr-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 40;
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 16, 0.96);
    color: var(--steve-text, #e2e8f0);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.lr-tooltip:hover::after,
.lr-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.mode-light .lr-tooltip::after {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

@media (max-width: 767.98px) {
    .lr-tooltip::after {
        left: 0;
        transform: translate(0, -4px);
    }
    .lr-tooltip:hover::after,
    .lr-tooltip:focus-visible::after {
        transform: translate(0, 0);
    }
}

/* ============================================================
   Steve fleet S114 — deliverability focus states
   ============================================================ */

.lr-dns-refresh:focus-visible,
.lr-dns-copy:focus-visible,
.lr-dns-status:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.92);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.14);
}
.lr-dns-copy:focus-visible {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
}
.mode-light .lr-dns-refresh:focus-visible,
.mode-light .lr-dns-copy:focus-visible,
.mode-light .lr-dns-status:focus-visible {
    outline-color: rgba(8, 145, 178, 0.92);
    box-shadow: 0 0 0 5px rgba(8, 145, 178, 0.16);
}

/* ============================================================
   LeafRelay instance about / license page
   ============================================================ */

.lr-license-page {
    display: grid;
    gap: 18px;
    max-width: 1180px;
}
.lr-license-hero,
.lr-license-card,
.lr-license-manage {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.10), transparent 34%),
        rgba(10, 15, 26, 0.78);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}
.lr-license-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    padding: 28px;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}
.lr-license-hero::after {
    content: "";
    position: absolute;
    inset: auto 24px 0 auto;
    width: 260px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.75), transparent);
}
.lr-license-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: var(--steve-emerald, #10b981);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lr-license-hero h2,
.lr-license-manage h3 {
    margin: 0;
    color: var(--steve-text, #e2e8f0);
    font-weight: 850;
    letter-spacing: 0;
}
.lr-license-hero h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}
.lr-license-hero p,
.lr-license-muted,
.lr-license-manage p {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--steve-dim, #94a3b8);
    line-height: 1.6;
}
.lr-license-version-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(16, 185, 129, 0.20);
    border-radius: 16px;
    background: rgba(2, 6, 16, 0.34);
}
.lr-license-version-card span,
.lr-license-version-card small,
.lr-license-card-head span,
.lr-license-facts dt {
    color: var(--steve-dim, #94a3b8);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lr-license-version-card strong {
    color: var(--steve-text, #e2e8f0);
    font-size: 2.25rem;
    font-weight: 900;
}
.lr-license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.lr-license-card {
    min-height: 100%;
    padding: 20px;
}
.lr-license-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.lr-license-card-head > .material-symbols-rounded {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--steve-emerald, #10b981);
}
.lr-license-card-head strong {
    display: block;
    margin-top: 3px;
    color: var(--steve-text, #e2e8f0);
    font-size: 1rem;
    font-weight: 850;
}
.lr-license-status-card.is-healthy {
    border-color: rgba(16, 185, 129, 0.26);
}
.lr-license-status-card.is-attention,
.lr-license-status-card.is-missing {
    border-color: rgba(245, 158, 11, 0.26);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.10), transparent 34%),
        rgba(10, 15, 26, 0.78);
}
.lr-license-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}
.lr-license-facts > div {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.46);
}
.lr-license-facts dd {
    margin: 5px 0 0;
    color: var(--steve-text, #e2e8f0);
    font-weight: 750;
    overflow-wrap: anywhere;
}
.lr-license-mono {
    font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}
.lr-license-remove {
    margin-top: 14px;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}
.lr-license-manage {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: 22px;
    padding: 24px;
}
.lr-license-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.lr-license-form .form-group,
.lr-license-form .mb-3 {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
}
.lr-license-form .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.mode-light .lr-license-hero,
.mode-light .lr-license-card,
.mode-light .lr-license-manage {
    border-color: rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}
.mode-light .lr-license-hero h2,
.mode-light .lr-license-manage h3,
.mode-light .lr-license-version-card strong,
.mode-light .lr-license-card-head strong,
.mode-light .lr-license-facts dd {
    color: #0f172a;
}
.mode-light .lr-license-version-card,
.mode-light .lr-license-facts > div {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(248, 250, 252, 0.86);
}

@media (max-width: 991.98px) {
    .lr-license-hero,
    .lr-license-manage {
        grid-template-columns: 1fr;
    }
    .lr-license-grid {
        grid-template-columns: 1fr;
    }
    .lr-license-form {
        align-items: stretch;
        flex-direction: column;
    }
}
