.sales-lead-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 5rem;
}

.sales-lead-card,
.sales-lead-view > section,
.sales-lead-card-grid > section {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.sales-lead-hero-grid,
.sales-lead-step-grid {
    display: grid;
    gap: 1rem;
}

.sales-lead-title {
    color: #111827;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    margin: .75rem 0 .4rem;
    overflow-wrap: anywhere;
}

.sales-lead-card h2,
.sales-lead-view h2 {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.sales-lead-muted,
.sales-lead-view p,
.sales-lead-view dt {
    color: #64748b;
}

.sales-lead-meta,
.sales-lead-badges,
.sales-lead-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .875rem;
}

.sales-lead-meta {
    font-size: .9rem;
}

.sales-lead-badges {
    margin-top: 1rem;
}

.sales-lead-badge {
    align-items: center;
    border: 1px solid rgba(100, 116, 139, .18);
    border-radius: 999px;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    padding: .45rem .65rem;
    white-space: nowrap;
}

.sales-lead-badge-neutral {
    background: #f8fafc;
    color: #475569;
}

.sales-lead-badge-category {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, .24);
    color: #92400e;
}

.sales-lead-badge-info {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, .22);
    color: #1d4ed8;
}

.sales-lead-badge-primary {
    background: #ecfeff;
    border-color: rgba(8, 145, 178, .22);
    color: #0e7490;
}

.sales-lead-badge-purple {
    background: #f5f3ff;
    border-color: rgba(124, 58, 237, .22);
    color: #6d28d9;
}

.sales-lead-badge-warning {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, .26);
    color: #92400e;
}

.sales-lead-badge-success {
    background: #ecfdf5;
    border-color: rgba(5, 150, 105, .22);
    color: #047857;
}

.sales-lead-badge-danger {
    background: #fff1f2;
    border-color: rgba(225, 29, 72, .22);
    color: #be123c;
}

.sales-lead-actions,
.sales-lead-next-actions,
.sales-lead-status-grid,
.sales-lead-mobile-bar-grid {
    display: grid;
    gap: .5rem;
}

.sales-lead-actions,
.sales-lead-next-actions {
    grid-template-columns: 1fr;
}

.sales-lead-button,
.sales-lead-view a.sales-lead-button,
.sales-lead-view button.sales-lead-button {
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.55rem;
    padding: .65rem .85rem;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    width: 100%;
}

.sales-lead-button-primary {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.sales-lead-button-dark {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.sales-lead-button-secondary {
    background: #fff;
    color: #111827;
}

.sales-lead-button-disabled,
.sales-lead-button:disabled {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.sales-lead-divider {
    border-top: 1px solid rgba(148, 163, 184, .25);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.sales-lead-section-title {
    color: #111827;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.sales-lead-card-grid {
    display: grid;
    gap: 1.25rem;
}

.sales-lead-field-grid,
.sales-lead-view dl {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 0;
}

.sales-lead-field dt {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sales-lead-field dd {
    color: #111827;
    font-size: .92rem;
    font-weight: 650;
    margin: .25rem 0 0;
    overflow-wrap: anywhere;
}

.sales-lead-section-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.sales-lead-copy-box,
.sales-lead-html-box {
    background: #f8fafc;
    border-radius: 10px;
    color: #334155;
    line-height: 1.55;
    margin: .5rem 0 0;
    padding: .875rem;
}

.sales-lead-html-box {
    max-height: 20rem;
    overflow: auto;
}

.sales-lead-mobile-bar {
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(148, 163, 184, .35);
    bottom: 0;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .10);
    left: 0;
    padding: .5rem;
    position: fixed;
    right: 0;
    z-index: 40;
}

.sales-lead-mobile-bar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sales-lead-view {
        padding-bottom: 0;
    }

    .sales-lead-card,
    .sales-lead-view > section,
    .sales-lead-card-grid > section {
        padding: 1.35rem;
    }

    .sales-lead-actions,
    .sales-lead-next-actions,
    .sales-lead-field-grid,
    .sales-lead-view dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-lead-status-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sales-lead-mobile-bar {
        display: none;
    }
}

@media (min-width: 1024px) {
    .sales-lead-hero-grid,
    .sales-lead-step-grid {
        align-items: flex-start;
        grid-template-columns: minmax(0, 1fr) 24rem;
    }

    .sales-lead-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-lead-status-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (prefers-color-scheme: dark) {
    .sales-lead-card,
    .sales-lead-view > section,
    .sales-lead-card-grid > section {
        background: #111827;
        border-color: rgba(255, 255, 255, .10);
    }

    .sales-lead-title,
    .sales-lead-card h2,
    .sales-lead-view h2,
    .sales-lead-field dd {
        color: #fff;
    }

    .sales-lead-muted,
    .sales-lead-view p,
    .sales-lead-view dt {
        color: #cbd5e1;
    }

    .sales-lead-button-secondary {
        background: #111827;
        border-color: rgba(255, 255, 255, .14);
        color: #fff;
    }

    .sales-lead-copy-box,
    .sales-lead-html-box {
        background: rgba(255, 255, 255, .06);
        color: #e5e7eb;
    }

    .sales-lead-mobile-bar {
        background: rgba(3, 7, 18, .96);
        border-color: rgba(255, 255, 255, .12);
    }
}
