/* =========================
   Admin outbound system
   ========================= */

.loya-outbound-page {
    --loya-outbound-border: rgba(15, 23, 42, 0.08);
    --loya-outbound-soft: #f8fafc;
    --loya-outbound-blue: #2563eb;
    --loya-outbound-text: #0f172a;
}

.loya-outbound-heading {
    border-radius: 24px;
}

.loya-outbound-tabbed-panel {
    display: grid;
    gap: 18px;
}

.loya-outbound-tab-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: #f8fafc;
}

.loya-outbound-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #475569;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    appearance: none;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.loya-outbound-tab:hover {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
}

.loya-outbound-tab.active {
    color: #1d4ed8;
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.loya-outbound-tab-panel {
    display: grid;
    gap: 16px;
}

.loya-outbound-supervision-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 18px;
    padding: 10px;
    border: 1px solid #d7e3f2;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 18px 36px rgba(15, 36, 84, 0.06);
}

.loya-outbound-supervision-tab {
    position: relative;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 72px;
    padding: 14px 56px 14px 18px;
    text-align: left;
}

.loya-outbound-supervision-tab span,
.loya-outbound-supervision-tab small {
    display: block;
    width: 100%;
    color: inherit;
}

.loya-outbound-supervision-tab span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.loya-outbound-supervision-tab small {
    color: #7b8aa0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.loya-outbound-supervision-tab.active small {
    color: rgba(255, 255, 255, 0.82);
}

.loya-outbound-supervision-tab-count {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(31, 87, 214, 0.1);
    color: #1f57d6;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.loya-outbound-supervision-tab.active .loya-outbound-supervision-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.loya-outbound-live-session-shell {
    padding: 22px;
    border: 1px solid #dbe6f3;
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(15, 36, 84, 0.08);
}

.loya-outbound-live-session-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 2px 18px;
    border-bottom: 1px solid #dfe7f2;
}

.loya-outbound-live-session-strip {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.loya-outbound-live-session-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px 0;
    scrollbar-width: thin;
}

.loya-outbound-live-session-tab {
    position: relative;
    display: flex;
    flex: 0 0 280px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    margin-right: -1px;
    padding: 11px 18px 10px;
    border: 1px solid #cfd9e7;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
    color: #475569;
    box-shadow: none;
    transform: translateY(6px);
    cursor: pointer;
    text-align: left;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.loya-outbound-live-session-tab span,
.loya-outbound-live-session-tab small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-live-session-tab span {
    font-size: 14px;
    font-weight: 700;
}

.loya-outbound-live-session-tab small {
    font-size: 12px;
    opacity: 0.78;
}

.loya-outbound-live-session-tab:hover {
    border-color: #b9cdf0;
    background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
    color: #194dbf;
    transform: translateY(3px);
}

.loya-outbound-live-session-tab.active {
    z-index: 2;
    border-color: #d9e3ef;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 -10px 22px rgba(15, 36, 84, 0.07);
    transform: translateY(0);
}

.loya-outbound-live-session-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d3deec;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    box-shadow: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.loya-outbound-live-session-close:hover {
    border-color: #bdd0ea;
    background: #f8fbff;
    color: #1f57d6;
    box-shadow: 0 8px 16px rgba(31, 87, 214, 0.12);
}

.loya-outbound-script-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.loya-outbound-script-metric-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.loya-outbound-script-metric-card::after {
    content: "";
    position: absolute;
    inset: auto -24px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

.loya-outbound-script-metric-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(59, 130, 246, 0.24) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.loya-outbound-script-metric-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.loya-outbound-script-metric-icon.active {
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(22, 163, 74, 0.24) 100%);
}

.loya-outbound-script-metric-icon.scene {
    color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(139, 92, 246, 0.24) 100%);
}

.loya-outbound-script-metric-icon.compliance {
    color: #b45309;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(251, 191, 36, 0.24) 100%);
}

.loya-outbound-script-metric-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
}

.loya-outbound-script-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.loya-outbound-script-metric-body span,
.loya-outbound-script-metric-top span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-script-metric-top em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-script-metric-top em.positive {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.loya-outbound-script-metric-top em.warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.loya-outbound-script-metric-value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.loya-outbound-script-metric-body strong {
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-script-metric-value b {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    padding-bottom: 3px;
}

.loya-outbound-script-metric-body p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.loya-outbound-script-metric-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.loya-outbound-script-metric-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.loya-outbound-script-metric-progress.warning span {
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

.loya-outbound-script-metric-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-script-metric-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: rgba(241, 245, 249, 0.96);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.loya-outbound-script-metric-meta span.positive {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-script-metric-meta span.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-script-metric-meta span.accent {
    color: #6d28d9;
    background: #ede9fe;
}

.loya-outbound-script-metric-meta span.neutral {
    color: #334155;
    background: #e2e8f0;
}

.loya-outbound-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loya-outbound-grid {
    align-items: start;
}

.loya-outbound-live-panel {
    display: grid;
    gap: 22px;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.loya-outbound-live-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.loya-outbound-live-title {
    min-width: 0;
}

.loya-outbound-live-title h2 {
    margin: 8px 0 10px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.loya-outbound-live-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.loya-outbound-live-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.loya-outbound-live-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-live-pill.neutral {
    color: #1d4ed8;
    background: #dbeafe;
}

.loya-outbound-live-pill.success {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-live-pill.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-live-pill.danger {
    color: #b91c1c;
    background: #fee2e2;
}

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

.loya-outbound-live-summary-card {
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 6px;
}

.loya-outbound-live-summary-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-live-summary-card strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.12;
}

.loya-outbound-live-summary-card small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-live-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.92fr);
    gap: 20px;
}

.loya-outbound-live-main,
.loya-outbound-live-side {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.loya-outbound-live-side {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.loya-outbound-live-section-head {
    margin-bottom: 0;
}

.loya-outbound-live-section-head span {
    display: inline-flex;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-live-section-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 22px;
}

.loya-outbound-live-dialogue {
    min-height: 0;
    display: grid;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.loya-outbound-live-bubble {
    max-width: min(100%, 720px);
    padding: 18px 18px 16px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.loya-outbound-live-bubble span {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-live-bubble p {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.8;
}

.loya-outbound-live-bubble.customer {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.loya-outbound-live-bubble.customer span {
    color: #1d4ed8;
}

.loya-outbound-live-bubble.assistant {
    margin-left: auto;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid rgba(96, 165, 250, 0.26);
}

.loya-outbound-live-bubble.assistant span {
    color: #1e3a8a;
}

.loya-outbound-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.loya-outbound-live-actions .admin-small-button {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 18px;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.loya-outbound-live-actions .admin-small-button:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.loya-outbound-live-kv {
    margin-top: 0;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 14px;
}

.loya-outbound-live-kv dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loya-outbound-live-kv dd {
    color: #0f172a;
    font-weight: 700;
}

.loya-outbound-records-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-records-kpi-card {
    padding: 22px 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 8px;
}

.loya-outbound-records-kpi-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-records-kpi-card strong {
    color: #0f172a;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-records-kpi-card small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.loya-outbound-records-kpi-card.highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #60a5fa 100%);
    border-color: rgba(59, 130, 246, 0.24);
}

.loya-outbound-records-kpi-card.highlight span,
.loya-outbound-records-kpi-card.highlight strong,
.loya-outbound-records-kpi-card.highlight small {
    color: #fff;
}

.loya-outbound-records-kpi-card.danger strong {
    color: #b91c1c;
}

.loya-outbound-records-panel {
    display: grid;
    gap: 22px;
}

.loya-outbound-records-head {
    margin-bottom: 0;
}

.loya-outbound-records-head span,
.loya-outbound-records-table-head span {
    display: inline-flex;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-records-head h2,
.loya-outbound-records-table-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
}

.loya-outbound-records-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.6fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.loya-outbound-records-field {
    display: grid;
    gap: 8px;
}

.loya-outbound-records-field span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-records-field input,
.loya-outbound-records-field select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    outline: none;
}

.loya-outbound-records-field input:focus,
.loya-outbound-records-field select:focus {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.loya-outbound-records-field-wide {
    min-width: 0;
}

.loya-outbound-records-actions {
    display: flex;
    align-items: end;
}

.loya-outbound-records-actions .admin-small-button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
}

.loya-outbound-records-table-card {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.loya-outbound-records-table-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.loya-outbound-records-table-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.loya-outbound-records-list-header {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(210px, 1fr) minmax(260px, 1.2fr) minmax(210px, 1fr) 110px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-records-list-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-records-list-header-cell:last-child {
    text-align: right;
}

.loya-outbound-records-list {
    display: grid;
    gap: 12px;
}

.loya-outbound-records-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(210px, 1fr) minmax(260px, 1.2fr) minmax(210px, 1fr) 110px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-records-list > .loya-outbound-records-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-records-list > .loya-outbound-records-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-records-summary,
.loya-outbound-records-cell {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-records-summary h3,
.loya-outbound-records-cell strong {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-records-summary p,
.loya-outbound-records-summary small,
.loya-outbound-records-cell span,
.loya-outbound-records-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-records-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-records-next-text {
    white-space: normal !important;
    line-height: 1.55;
}

.loya-outbound-records-actions-row {
    justify-content: flex-end;
    align-self: center;
    min-width: 110px;
}

.loya-outbound-records-empty-card {
    background: #fbfdff;
}

.loya-outbound-records-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-record-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.loya-outbound-record-tag.highlight {
    color: #1d4ed8;
    background: #dbeafe;
}

.loya-outbound-record-tag.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-record-tag.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.loya-outbound-record-tag.safe {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-records-empty-card h3 {
    margin: 0;
}

.loya-outbound-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

    .loya-outbound-filter input,
    .loya-outbound-filter select,
    .loya-outbound-settings-grid input,
    .loya-outbound-settings-grid select,
    .loya-outbound-settings-grid textarea {
        min-height: 40px;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 12px;
        padding: 0 12px;
        color: var(--loya-outbound-text);
        background: #fff;
        font: inherit;
        font-size: 13px;
        outline: none;
    }

    .loya-outbound-settings-grid textarea {
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1.7;
    }

    .loya-outbound-filter input {
        min-width: min(320px, 100%);
        flex: 1 1 260px;
    }

.loya-outbound-table {
    min-width: 860px;
    font-size: 13px;
}

.loya-outbound-list-hint {
    margin: -4px 0 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-voice-table {
    min-width: 1120px;
}

    .loya-outbound-voice-table tbody tr {
        cursor: pointer;
        transition: background 0.18s ease;
    }

    .loya-outbound-voice-table tbody tr:hover {
        background: rgba(37, 99, 235, 0.04);
    }

    .loya-outbound-voice-table tbody tr.is-selected {
        background: rgba(37, 99, 235, 0.08);
    }

.loya-outbound-primary-cell {
    display: grid;
    gap: 4px;
}

    .loya-outbound-primary-cell strong {
        color: var(--loya-outbound-text);
    }

    .loya-outbound-primary-cell span {
        color: #64748b;
        font-size: 12px;
        line-height: 1.5;
    }

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

.loya-outbound-card-list {
    display: grid;
    gap: 12px;
}

.loya-outbound-list-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

    .loya-outbound-list-card.compact {
        padding: 14px;
    }

    .loya-outbound-list-card strong,
    .loya-outbound-config-card h3,
    .loya-outbound-capability-grid strong {
        color: var(--loya-outbound-text);
    }

    .loya-outbound-list-card p,
    .loya-outbound-list-card small,
    .loya-outbound-config-card p,
    .loya-outbound-config-card dd,
    .loya-outbound-rule-grid p {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

.loya-outbound-form-grid,
.loya-outbound-rule-grid,
.loya-outbound-capability-grid,
.loya-outbound-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-rule-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loya-outbound-capability-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

    .loya-outbound-rule-grid article,
    .loya-outbound-capability-grid article,
    .loya-outbound-config-card {
        padding: 18px;
        border: 1px solid var(--loya-outbound-border);
        border-radius: 18px;
        background: var(--loya-outbound-soft);
    }

    .loya-outbound-config-card.muted {
        border-style: dashed;
        background: #fbfdff;
    }

    .loya-outbound-config-card dl,
    .loya-outbound-kv {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
        margin: 14px 0 0;
        font-size: 13px;
    }

    .loya-outbound-config-card dt,
    .loya-outbound-kv dt {
        color: #64748b;
        font-weight: 800;
    }

    .loya-outbound-config-card dd,
    .loya-outbound-kv dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

.loya-outbound-card-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.loya-outbound-quote {
    margin: 0;
    padding: 18px;
    border-left: 4px solid var(--loya-outbound-blue);
    border-radius: 16px;
    color: #1e3a8a;
    background: #eff6ff;
    font-weight: 800;
    line-height: 1.8;
}

.loya-outbound-live-box,
.loya-outbound-chart-placeholder {
    min-height: 240px;
    padding: 18px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-chart-placeholder {
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 900;
    background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 12px, #eef2ff 12px, #eef2ff 24px);
}

.loya-outbound-flow-demo-card {
    --loya-flow-panel: #ffffff;
    --loya-flow-line: #cfd6e4;
    --loya-flow-text: #243043;
    --loya-flow-muted: #6b7688;
    --loya-flow-primary: #4f7cff;
    --loya-flow-active: #eef4ff;
    --loya-flow-shadow: 0 4px 14px rgba(30, 42, 62, .08);
    display: grid;
    gap: 12px;
    background: #f8fafc;
}

.loya-outbound-flow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.loya-outbound-flow-toolbar-group label {
    color: var(--loya-flow-muted);
    font-size: 12px;
    font-weight: 600;
}

.loya-outbound-flow-toolbar select,
.loya-outbound-flow-button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #d8dfec;
    border-radius: 8px;
    background: #fff;
    color: var(--loya-flow-text);
    font-size: 12px;
    cursor: pointer;
    appearance: none;
}

.loya-outbound-flow-toolbar select {
    padding-right: 28px;
    background-image: linear-gradient(45deg, transparent 50%, #7b8798 50%), linear-gradient(135deg, #7b8798 50%, transparent 50%);
    background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.loya-outbound-flow-button {
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.loya-outbound-flow-button:hover:not(:disabled) {
    border-color: var(--loya-flow-primary);
    color: var(--loya-flow-primary);
}

.loya-outbound-flow-button.primary {
    border-color: var(--loya-flow-primary);
    background: var(--loya-flow-primary);
    color: #fff;
}

.loya-outbound-flow-button.primary:hover:not(:disabled) {
    color: #fff;
    opacity: .92;
}

.loya-outbound-flow-button:disabled,
.loya-outbound-flow-toolbar select:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.loya-outbound-flow-status-panel {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-status-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.loya-outbound-flow-status-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5ff;
    color: var(--loya-flow-primary);
    font-weight: 600;
}

.loya-outbound-flow-status-text {
    color: var(--loya-flow-muted);
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-flow-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.loya-outbound-flow-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--loya-flow-primary), #7da2ff);
    transition: width .35s ease;
}

.loya-outbound-flow-canvas {
    overflow: auto;
    padding: 14px 10px 16px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 1100px;
}

.loya-outbound-flow-row,
.loya-outbound-flow-sub-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.loya-outbound-flow-sub-row {
    gap: 8px;
}

.loya-outbound-flow-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid #dde5f2;
    border-radius: 10px;
    background: #fff;
    color: var(--loya-flow-text);
    box-shadow: 0 2px 8px rgba(32, 46, 72, .04);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    transition: .22s ease;
}

.loya-outbound-flow-node.small {
    width: 120px;
    min-height: 38px;
}

.loya-outbound-flow-node.decision {
    border-style: dashed;
    background: #fbfcff;
}

.loya-outbound-flow-node.wait {
    border-color: #ffd89a;
    background: #fff9ec;
    color: #9a6500;
}

.loya-outbound-flow-node.active {
    border-color: var(--loya-flow-primary);
    background: var(--loya-flow-active);
    box-shadow: 0 0 0 2px rgba(79, 124, 255, .12), 0 6px 16px rgba(79, 124, 255, .12);
    color: var(--loya-flow-text);
    transform: translateY(-1px);
}

.loya-outbound-flow-node.done {
    border-color: #b9dfc8;
    background: #f1fcf5;
    color: #1e7a4a;
}

.loya-outbound-flow-arrow-h {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 42px;
}

.loya-outbound-flow-arrow-h::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    right: 6px;
    height: 2px;
    background: var(--loya-flow-line);
    transform: translateY(-50%);
}

.loya-outbound-flow-arrow-h::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--loya-flow-line);
    transform: translateY(-50%);
}

.loya-outbound-flow-arrow-v {
    position: relative;
    width: 2px;
    height: 16px;
    background: var(--loya-flow-line);
}

.loya-outbound-flow-arrow-v::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--loya-flow-line);
    transform: translateX(-50%);
}

.loya-outbound-flow-branch-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 18px;
    width: 100%;
    max-width: 840px;
}

.loya-outbound-flow-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loya-outbound-flow-branch-title {
    padding: 2px 8px;
    border: 1px solid #e0e7f3;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--loya-flow-muted);
    font-size: 11px;
}

.loya-outbound-flow-hint,
.loya-outbound-flow-footer-note {
    color: var(--loya-flow-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.loya-outbound-flow-hint {
    margin-top: 8px;
}

.loya-outbound-flow-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.loya-outbound-flow-legend span {
    padding: 4px 8px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
}

.loya-outbound-flow-legend .active {
    border-color: #bfd0ff;
    background: #eef4ff;
    color: #355fcf;
}

.loya-outbound-flow-legend .done {
    border-color: #b9dfc8;
    background: #f1fcf5;
    color: #1e7a4a;
}

.loya-outbound-flow-legend .wait {
    border-color: #ffd89a;
    background: #fff9ec;
    color: #9a6500;
}

.loya-outbound-flow-footer-note {
    margin-top: 10px;
}

.loya-outbound-test-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loya-outbound-test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
}

.loya-outbound-test-grid-bottom {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
    align-items: start;
}

.loya-outbound-test-card {
    min-width: 0;
    border: 1px solid #dbe5f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 36, 84, 0.08);
}

.loya-outbound-test-form-grid {
    gap: 16px;
}

.loya-outbound-test-form-grid textarea {
    min-height: 112px;
    resize: vertical;
}

.loya-outbound-test-kv {
    margin-top: 16px;
}

.loya-outbound-test-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.loya-outbound-test-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.loya-outbound-test-preview,
.loya-outbound-test-summary-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e0e8f5;
    border-radius: 16px;
    background: #f6f8fc;
}

.loya-outbound-test-preview p,
.loya-outbound-test-summary-block p,
.loya-outbound-test-hint,
.loya-outbound-test-empty {
    margin: 0;
    color: #5d6b80;
    line-height: 1.75;
}

.loya-outbound-test-audio {
    width: 100%;
}

.loya-outbound-test-conversation-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.loya-outbound-test-dialogue-box {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    justify-content: flex-start;
    overflow: hidden;
}

.loya-outbound-test-dialogue-list {
    display: grid;
    align-content: start;
    gap: 14px;
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble {
    width: min(100%, 720px);
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble.customer {
    justify-self: start;
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble.assistant {
    justify-self: end;
    margin-left: 0;
}

.loya-outbound-test-dialogue-empty {
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    text-align: center;
}

.loya-outbound-test-summary-card {
    align-self: start;
    position: sticky;
    top: 18px;
}

.loya-outbound-test-script-strip,
.loya-outbound-test-preset-panel {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.loya-outbound-test-script-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.loya-outbound-test-script-head span {
    display: inline-block;
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.loya-outbound-test-script-head h3 {
    margin: 4px 0 0;
    color: #17305c;
    font-size: 18px;
}

.loya-outbound-test-script-head small {
    color: #6a7b92;
    line-height: 1.6;
}

.loya-outbound-test-script-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loya-outbound-test-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d7e3f2;
    border-radius: 999px;
    background: #fff;
    color: #355070;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    transition: all 0.2s ease;
}

.loya-outbound-test-chip:hover:not(:disabled) {
    border-color: #bcd2f3;
    background: #f8fbff;
    color: #1f57d6;
}

.loya-outbound-test-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1f57d6 0%, #3f7cff 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 87, 214, 0.18);
}

.loya-outbound-test-chip.highlight {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.loya-outbound-test-chip.warning {
    border-color: #f7d7a5;
    background: #fff7ed;
    color: #b45309;
}

.loya-outbound-test-chip.danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.loya-outbound-test-chip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loya-outbound-test-step-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
}

.loya-outbound-test-step-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: #fff;
}

.loya-outbound-test-step-card.expectation {
    background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
}

.loya-outbound-test-step-card span {
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.loya-outbound-test-step-card strong {
    color: #17305c;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.loya-outbound-test-step-card p {
    margin: 0;
    color: #5d6b80;
    line-height: 1.7;
}

.loya-outbound-test-qc-report {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.loya-outbound-test-qc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.loya-outbound-test-qc-item,
.loya-outbound-test-qc-score-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #f8fbff;
}

.loya-outbound-test-qc-item.highlight {
    border-color: transparent;
    background: linear-gradient(135deg, #1f57d6 0%, #3f7cff 100%);
}

.loya-outbound-test-qc-item span,
.loya-outbound-test-qc-score-card span {
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.loya-outbound-test-qc-item strong {
    color: #17305c;
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

.loya-outbound-test-qc-item small,
.loya-outbound-test-qc-score-card small {
    color: #6a7b92;
    line-height: 1.6;
}

.loya-outbound-test-qc-item.highlight span,
.loya-outbound-test-qc-item.highlight strong,
.loya-outbound-test-qc-item.highlight small {
    color: #fff;
}

.loya-outbound-test-qc-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.loya-outbound-test-qc-score-card {
    padding: 15px 16px;
    border-color: #dce6f2;
    border-radius: 16px;
    background: #fff;
}

.loya-outbound-test-qc-score-card strong {
    color: #17305c;
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
}

.loya-outbound-test-qc-score-card.positive {
    border-color: #c7ecd3;
    background: linear-gradient(180deg, #f4fbf7 0%, #eefbf4 100%);
}

.loya-outbound-test-qc-score-card.neutral {
    border-color: #d8e5ff;
    background: linear-gradient(180deg, #f6f9ff 0%, #eff4ff 100%);
}

.loya-outbound-test-qc-score-card.warning {
    border-color: #f4d5a6;
    background: linear-gradient(180deg, #fff8ef 0%, #fff4e7 100%);
}

.loya-outbound-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    margin: 18px 0 20px;
}

.loya-outbound-cockpit-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
}

.loya-outbound-cockpit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-cockpit-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.loya-outbound-cockpit-hero {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(160deg, #0f172a 0%, #1d4ed8 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.24);
    min-width: 0;
}

.loya-outbound-cockpit-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.loya-outbound-cockpit-hero-head span {
    display: inline-flex;
    color: rgba(219, 234, 254, 0.82);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-cockpit-hero-head h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1;
}

.loya-outbound-cockpit-hero-head p {
    margin: 0;
    color: rgba(219, 234, 254, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.loya-outbound-cockpit-hero-badges {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.loya-outbound-cockpit-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-cockpit-hero-badges span.positive {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.2);
}

.loya-outbound-cockpit-hero-badges span.accent {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.26);
}

.loya-outbound-cockpit-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.loya-outbound-cockpit-kpi {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}

.loya-outbound-cockpit-kpi-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 38px;
}

.loya-outbound-cockpit-kpi-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.loya-outbound-cockpit-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.loya-outbound-cockpit-kpi-body span {
    color: rgba(219, 234, 254, 0.82);
    font-size: 11px;
    font-weight: 900;
}

.loya-outbound-cockpit-kpi-top em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-cockpit-kpi-top em i {
    font-style: normal;
    line-height: 1;
}

.loya-outbound-cockpit-kpi-top em.positive {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.18);
}

.loya-outbound-cockpit-kpi-top em.neutral {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.18);
}

.loya-outbound-cockpit-kpi-top em.warning {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.18);
}

.loya-outbound-cockpit-kpi-body strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.loya-outbound-cockpit-kpi-body small {
    color: rgba(219, 234, 254, 0.78);
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-cockpit-kpi.connected .loya-outbound-cockpit-kpi-icon {
    background: rgba(16, 185, 129, 0.24);
}

.loya-outbound-cockpit-kpi.effective .loya-outbound-cockpit-kpi-icon {
    background: rgba(139, 92, 246, 0.24);
}

.loya-outbound-cockpit-kpi.intent .loya-outbound-cockpit-kpi-icon {
    background: rgba(245, 158, 11, 0.24);
}

.loya-outbound-cockpit-kpi.pending .loya-outbound-cockpit-kpi-icon {
    background: rgba(251, 191, 36, 0.22);
}

.loya-outbound-cockpit-kpi.dnd .loya-outbound-cockpit-kpi-icon {
    background: rgba(52, 211, 153, 0.22);
}

.loya-outbound-cockpit-kpi.risk .loya-outbound-cockpit-kpi-icon {
    background: rgba(248, 113, 113, 0.24);
}

.loya-outbound-cockpit-kpi.agent .loya-outbound-cockpit-kpi-icon,
.loya-outbound-cockpit-kpi.task .loya-outbound-cockpit-kpi-icon {
    background: rgba(96, 165, 250, 0.24);
}

.loya-outbound-chart-grid-cockpit {
    margin: 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.loya-outbound-chart-card-inner {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.loya-outbound-chart-card {
    display: grid;
    gap: 18px;
}

.loya-outbound-chart-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -2px;
}

.loya-outbound-chart-summary-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475569;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 800;
}

.loya-outbound-chart-summary-strip strong {
    margin-right: 6px;
    color: #0f172a;
    font-weight: 900;
}

.loya-outbound-chart-summary-strip.funnel span {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.92) 0%, rgba(237, 242, 255, 0.98) 100%);
}

.loya-outbound-chart-summary-strip.outcome span {
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.96) 0%, rgba(239, 246, 255, 0.96) 100%);
}

.loya-outbound-funnel-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 320px;
    min-width: 0;
}

.loya-outbound-funnel-bar-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    height: 100%;
}

.loya-outbound-funnel-bar-meta {
    display: grid;
    gap: 4px;
}

.loya-outbound-funnel-bar-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-funnel-bar-meta strong {
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-funnel-bar-meta small,
.loya-outbound-donut-legend-item small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-funnel-bar-track {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.35) 0%, rgba(241, 245, 249, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.loya-outbound-funnel-bar-track::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    background: repeating-linear-gradient(to top, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.12) 1px, transparent 1px, transparent 25%);
    pointer-events: none;
}

.loya-outbound-funnel-bar-fill {
    position: relative;
    width: 100%;
    min-height: 16px;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18);
    z-index: 1;
}

.loya-outbound-funnel-bar-fill.calls {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.loya-outbound-funnel-bar-fill.connected {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 16px 28px rgba(5, 150, 105, 0.2);
}

.loya-outbound-funnel-bar-fill.effective {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
    box-shadow: 0 16px 28px rgba(124, 58, 237, 0.2);
}

.loya-outbound-funnel-bar-fill.intent {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 16px 28px rgba(245, 158, 11, 0.2);
}

.loya-outbound-funnel-bar-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    color: #334155;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-donut-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    justify-items: center;
    min-width: 0;
}

.loya-outbound-donut-chart {
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56), 0 20px 40px rgba(15, 23, 42, 0.08);
}

.loya-outbound-donut-core {
    width: 58%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    gap: 4px;
    border-radius: 50%;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.loya-outbound-donut-core strong {
    color: #0f172a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-donut-core span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-donut-legend {
    display: grid;
    gap: 10px;
    width: 100%;
}

.loya-outbound-donut-legend-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: #fff;
    min-width: 0;
}

.loya-outbound-donut-legend-item > div {
    min-width: 0;
}

.loya-outbound-donut-legend-item b {
    max-width: 100%;
}

.loya-outbound-donut-legend-item strong {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.loya-outbound-donut-legend-item b {
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-donut-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.loya-outbound-donut-dot.connected {
    background: #2563eb;
}

.loya-outbound-donut-dot.dnd {
    background: #10b981;
}

.loya-outbound-donut-dot.pending {
    background: #f59e0b;
}

.loya-outbound-donut-dot.risk {
    background: #ef4444;
}

.loya-outbound-settings-grid label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.loya-outbound-detail-modal {
    width: min(960px, calc(100vw - 32px));
}

.loya-outbound-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-field-span-2 {
    grid-column: span 2;
}

.loya-outbound-check {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 14px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 13px;
    font-weight: 850;
}

    .loya-outbound-message.success {
        color: #047857;
        border-color: #bbf7d0;
        background: #ecfdf5;
    }

    .loya-outbound-message.error {
        color: #be123c;
        border-color: #fecdd3;
        background: #fff1f2;
    }

.loya-outbound-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.loya-outbound-agent-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-agent-header {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(190px, 1.2fr) 234px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-agent-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-agent-header-cell:last-child {
    text-align: right;
}

.loya-outbound-agent-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(190px, 1.2fr) 234px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-agent-list > .loya-outbound-agent-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-agent-list > .loya-outbound-agent-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-agent-summary {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-agent-cell,
.loya-outbound-agent-policy {
    min-width: 0;
}

.loya-outbound-agent-cell {
    display: grid;
    gap: 4px;
}

.loya-outbound-agent-summary h3,
.loya-outbound-agent-cell strong {
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-agent-summary p,
.loya-outbound-agent-summary small,
.loya-outbound-agent-cell span,
.loya-outbound-agent-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-agent-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-agent-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loya-outbound-agent-policy span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-agent-policy span.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-agent-policy span.deny {
    color: #be123c;
    background: #ffe4e6;
}

.loya-outbound-agent-actions {
    justify-content: flex-end;
    align-self: center;
    min-width: 234px;
}

.loya-outbound-agent-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 92px;
    min-height: 32px;
    padding: 0 11px 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(239, 68, 68, 0.22);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
}

.loya-outbound-agent-switch::before {
    content: "";
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.loya-outbound-agent-switch.active {
    justify-content: flex-start;
    padding: 0 30px 0 11px;
    background: #16a34a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(22, 163, 74, 0.2);
}

.loya-outbound-agent-switch.active::before {
    transform: translateX(60px);
}

.loya-outbound-agent-switch:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.loya-outbound-agent-tips {
    background: #fbfdff;
}

.loya-outbound-handoff-header {
    grid-template-columns: minmax(190px, 0.95fr) minmax(260px, 1.45fr) minmax(180px, 0.95fr) minmax(220px, 1.1fr) minmax(160px, 0.82fr) 186px;
}

.loya-outbound-handoff-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-handoff-row {
    grid-template-columns: minmax(190px, 0.95fr) minmax(260px, 1.45fr) minmax(180px, 0.95fr) minmax(220px, 1.1fr) minmax(160px, 0.82fr) 186px;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.loya-outbound-handoff-summary {
    gap: 8px;
}

.loya-outbound-handoff-summary h3 {
    font-size: 14px;
}

.loya-outbound-handoff-summary p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-handoff-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-handoff-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #475569;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.loya-outbound-handoff-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.loya-outbound-handoff-cell small {
    white-space: normal;
}

.loya-outbound-handoff-cell:last-of-type strong {
    white-space: nowrap;
    display: block;
}

.loya-outbound-handoff-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-handoff-tag.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-handoff-tag.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-handoff-tag.neutral {
    color: #475569;
    background: #e2e8f0;
}

.loya-outbound-handoff-actions {
    min-width: 186px;
    flex-direction: column;
    align-items: stretch;
}

.loya-outbound-handoff-actions > * {
    width: 100%;
}

.loya-outbound-handoff-callback {
    justify-content: center;
}

html[data-mode="dark"] .loya-outbound-handoff-meta span {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.18);
}

.loya-outbound-script-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-script-header {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(210px, 1.25fr) 156px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-script-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-script-header-cell:last-child {
    text-align: right;
}

.loya-outbound-script-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(210px, 1.25fr) 156px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-script-list > .loya-outbound-script-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-script-list > .loya-outbound-script-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-script-summary,
.loya-outbound-script-cell {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-script-summary h3,
.loya-outbound-script-cell strong {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-summary p,
.loya-outbound-script-cell span,
.loya-outbound-script-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-script-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.loya-outbound-script-policy span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-policy span.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-script-policy span.deny {
    color: #be123c;
    background: #ffe4e6;
}

.loya-outbound-script-actions {
    justify-content: flex-end;
    align-self: center;
    min-width: 156px;
}

.loya-outbound-script-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 74px;
    min-height: 32px;
    padding: 0 11px 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(239, 68, 68, 0.22);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
}

.loya-outbound-script-switch::before {
    content: "";
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.loya-outbound-script-switch.active {
    justify-content: flex-start;
    padding: 0 30px 0 11px;
    background: #16a34a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(22, 163, 74, 0.2);
}

.loya-outbound-script-switch.active::before {
    transform: translateX(42px);
}

.loya-outbound-script-switch:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.loya-outbound-script-tips {
    background: #fbfdff;
}

@media (max-width: 1260px) {
    .loya-outbound-records-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-records-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-records-actions {
        grid-column: 1 / -1;
    }

    .loya-outbound-records-list-header,
    .loya-outbound-records-row {
        grid-template-columns: minmax(190px, 1.1fr) minmax(150px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr);
    }

    .loya-outbound-records-actions-row {
        grid-column: span 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .loya-outbound-script-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-chart-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-cockpit-layout {
        grid-template-columns: 1fr;
    }

    .loya-outbound-chart-grid-cockpit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .loya-outbound-records-overview,
    .loya-outbound-records-filter-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-records-table-head {
        flex-direction: column;
    }

    .loya-outbound-records-actions .admin-small-button {
        width: 100%;
    }

    .loya-outbound-records-list-header {
        display: none;
    }

    .loya-outbound-records-row {
        grid-template-columns: 1fr;
    }

    .loya-outbound-records-cell span {
        display: block;
    }

    .loya-outbound-records-summary p,
    .loya-outbound-records-summary small,
    .loya-outbound-records-cell strong,
    .loya-outbound-records-cell small {
        white-space: normal;
    }

    .loya-outbound-script-metrics {
        grid-template-columns: 1fr;
    }

    .loya-outbound-script-metric-card {
        padding: 16px;
    }

    .loya-outbound-funnel-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-donut-wrap {
        grid-template-columns: 1fr;
    }

    .loya-outbound-cockpit-panel {
        padding: 16px;
    }

    .loya-outbound-cockpit-hero-head {
        flex-direction: column;
    }

    .loya-outbound-cockpit-hero-badges {
        justify-items: start;
    }

    .loya-outbound-cockpit-mini-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-chart-summary-strip {
        gap: 8px;
    }

    .loya-outbound-chart-summary-strip span {
        width: 100%;
        justify-content: flex-start;
    }

    .loya-outbound-cockpit-kpi-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .loya-outbound-script-metric-top,
    .loya-outbound-script-metric-value {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.loya-outbound-nowrap {
    white-space: nowrap;
}

.loya-outbound-leads-table {
    min-width: 1500px;
}

.loya-outbound-task-table {
    min-width: 1640px;
}

.loya-outbound-task-workspace {
    display: grid;
    grid-template-columns: minmax(640px, 1.66fr) minmax(360px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.loya-outbound-task-list-pane {
    min-width: 0;
}

.loya-outbound-task-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 156px 124px 84px;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .loya-outbound-task-filter-bar input,
    .loya-outbound-task-filter-bar select {
        min-height: 48px;
        border-radius: 18px;
        border: 1px solid rgba(226, 232, 240, 0.98);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .loya-outbound-task-filter-bar .admin-small-button {
        min-height: 48px;
        border-radius: 18px;
        font-weight: 900;
    }

.loya-outbound-task-filter-button {
    border-color: rgba(37, 99, 235, 0.16) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10) !important;
}

.loya-outbound-task-list-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.loya-outbound-task-list-header,
.loya-outbound-task-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.75fr) minmax(180px, 0.9fr) 86px minmax(260px, auto);
    gap: 14px;
    align-items: center;
}

.loya-outbound-task-list-header {
    padding: 2px 14px 10px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.loya-outbound-task-empty {
    padding: 30px 20px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 22px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: center;
}

.loya-outbound-task-log-pane {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 24px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.loya-outbound-task-log-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(191, 219, 254, 0.95);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.loya-outbound-task-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .loya-outbound-task-log-head span {
        color: #2563eb;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .loya-outbound-task-log-head h2 {
        margin: 6px 0 4px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 900;
    }

    .loya-outbound-task-log-head p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.7;
    }

.loya-outbound-task-log-summary {
    padding: 14px 16px;
    border-radius: 18px;
}

.loya-outbound-task-log-list {
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-right: 4px;
}

.loya-outbound-task-log-transcript {
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #334155;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.loya-outbound-task-row {
    min-height: 112px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .loya-outbound-task-row:hover {
        border-color: rgba(191, 219, 254, 0.98);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
        transform: translateY(-1px);
    }

    .loya-outbound-task-row.active {
        border-color: rgba(147, 197, 253, 0.98);
        background: linear-gradient(90deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 44%);
        box-shadow: inset 3px 0 0 #60a5fa, 0 20px 42px rgba(37, 99, 235, 0.10);
    }

.loya-outbound-task-primary {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.loya-outbound-task-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .loya-outbound-task-title-row strong {
        min-width: 0;
        overflow: hidden;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .loya-outbound-task-title-row span {
        flex: 0 0 auto;
        padding: 3px 9px;
        border-radius: 999px;
        color: #64748b;
        background: rgba(241, 245, 249, 0.92);
        border: 1px solid rgba(226, 232, 240, 0.92);
        font-size: 10px;
        font-weight: 800;
    }

.loya-outbound-task-target {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.loya-outbound-task-tags,
.loya-outbound-task-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .loya-outbound-task-policy label,
    .loya-outbound-task-progress label {
        display: block;
        width: 100%;
        margin: 0 0 2px;
        color: #a8b4c5;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .loya-outbound-task-tags span,
    .loya-outbound-task-policy span {
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 999px;
        color: #475569;
        background: rgba(248, 250, 252, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.92);
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
    }

.loya-outbound-task-policy {
    align-items: flex-start;
    align-content: center;
}

.loya-outbound-task-state {
    display: flex;
    justify-content: flex-start;
}

.loya-outbound-task-progress {
    align-content: start;
}

.loya-outbound-task-log-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.035);
}

    .loya-outbound-task-log-item .loya-outbound-kv {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 5px 10px;
    }

.loya-outbound-execution-meta {
    min-width: 168px;
    display: grid;
    gap: 3px;
}

    .loya-outbound-execution-meta strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 900;
    }

    .loya-outbound-execution-meta span {
        color: #64748b;
        font-size: 12px;
        line-height: 1.45;
    }

    .loya-outbound-leads-table td,
    .loya-outbound-leads-table th {
        white-space: nowrap;
    }

.loya-outbound-confirm-modal {
    width: min(560px, calc(100vw - 32px));
}

.loya-outbound-timeline-modal {
    width: min(880px, calc(100vw - 32px));
}

.loya-outbound-timeline-list {
    display: grid;
    gap: 14px;
}

.loya-outbound-timeline-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-timeline-time {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
}

.loya-outbound-timeline-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.loya-outbound-timeline-head {
    display: grid;
    gap: 4px;
}

    .loya-outbound-timeline-head strong {
        color: #0f172a;
        font-size: 14px;
    }

    .loya-outbound-timeline-head span,
    .loya-outbound-timeline-body p {
        color: #64748b;
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
    }

    .loya-outbound-confirm-modal .loya-outbound-modal-body {
        padding-top: 18px;
    }

.loya-outbound-delete-button,
.loya-outbound-danger-button {
    color: #b91c1c;
}

.loya-outbound-toggle-group {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 12px;
    background: #f8fafc;
}

.loya-outbound-toggle {
    min-width: 54px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: #475569;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .loya-outbound-toggle:hover:not(:disabled) {
        color: #0f172a;
        background: rgba(37, 99, 235, 0.08);
    }

    .loya-outbound-toggle.active {
        color: #1d4ed8;
        background: #dbeafe;
        box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    }

    .loya-outbound-toggle:disabled {
        opacity: 0.48;
        cursor: not-allowed;
    }

    .loya-outbound-action-row .admin-small-button {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
        white-space: nowrap;
    }

.loya-outbound-delete-button {
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.18) !important;
    background: #fff1f2 !important;
}

    .loya-outbound-delete-button:hover:not(:disabled) {
        color: #991b1b !important;
        border-color: rgba(185, 28, 28, 0.3) !important;
        background: #ffe4e6 !important;
    }

.loya-outbound-wizard-modal {
    width: min(760px, 100%);
}

.loya-outbound-wizard-body {
    display: grid;
    gap: 18px;
}
@media (max-width: 1180px) {
    .loya-outbound-flow-demo-card {
        border-radius: 18px;
    }

    .loya-outbound-flow-toolbar,
    .loya-outbound-flow-status-panel,
    .loya-outbound-flow-canvas {
        border-radius: 10px;
    }

    .loya-outbound-test-grid,
    .loya-outbound-test-grid-bottom {
        grid-template-columns: 1fr;
    }

    .loya-outbound-test-summary-card {
        position: static;
    }

    .loya-outbound-test-script-head {
        flex-direction: column;
    }

    .loya-outbound-test-step-brief,
    .loya-outbound-test-qc-grid,
    .loya-outbound-test-qc-score-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-test-dialogue-box .loya-outbound-live-bubble,
    .loya-outbound-test-dialogue-box .loya-outbound-live-bubble.assistant {
        width: 100%;
        justify-self: stretch;
    }

    .loya-outbound-metrics,
    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-image-workbench,
    .loya-field-grid.two,
    .loya-field-row.action-row,
    .loya-image-action-grid {
        grid-template-columns: 1fr;
    }

    .loya-image-settings-card {
        max-height: none;
    }
}

@media (max-width: 980px) {
    .admin-login-page,
    .admin-shell,
    .admin-workspace-grid,
    .admin-metric-grid,
    .admin-shortcut-grid,
    .admin-kanban-grid,
    .loya-outbound-metrics,
    .loya-outbound-form-grid,
    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid,
    .loya-outbound-settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-login-visual {
        display: none;
    }

    .admin-sidebar {
        position: static;
    }
}
