/* LeadGen — Fraser Bowden only */

.lg-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 12px 2.5rem;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.lg-page h1,
.lg-page h2,
.lg-page h3,
.lg-page h4,
.lg-page h5,
.lg-page h6,
.lg-page p,
.lg-page span,
.lg-page button,
.lg-page label,
.lg-page input,
.lg-page select,
.lg-page textarea,
.lg-modal h1,
.lg-modal h2,
.lg-modal h3,
.lg-modal h4,
.lg-modal p,
.lg-modal span,
.lg-modal button,
.lg-modal label,
.lg-modal input,
.lg-modal select,
.lg-modal textarea,
.lg-denied h2,
.lg-denied p {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.lg-page * {
    box-sizing: border-box;
}

.lg-denied {
    max-width: 520px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
}

.lg-denied h2 {
    font-family: inherit;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.lg-denied p {
    color: #64748b;
}

.lg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.lg-title {
    margin: 0 0 0.35rem;
    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lg-subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.lg-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lg-btn-primary {
    background: #262646;
    color: #fff;
    border-color: #262646;
}

.lg-btn-primary:hover:not(:disabled) {
    background: #1c1c38;
}

.lg-btn-teal {
    background: #3fd6d4;
    color: #0f172a;
    border-color: #3fd6d4;
}

.lg-btn-teal:hover:not(:disabled) {
    background: #35c4c2;
}

.lg-btn-ghost {
    background: #fff;
    color: #334155;
    border-color: #d1d5db;
}

.lg-btn-ghost:hover:not(:disabled) {
    background: #f8fafc;
}

.lg-btn-danger-soft {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.lg-btn-danger-soft:hover:not(:disabled) {
    background: #fee2e2;
}

.lg-btn-block {
    width: 100%;
}

.lg-btn-sm {
    padding: 7px 12px;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.lg-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.lg-info-banner h3 {
    margin: 0 0 0.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.lg-info-banner p {
    margin: 0;
    font-family: inherit;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 640px;
}

.lg-info-banner strong {
    color: #334155;
    font-weight: 600;
}

.lg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lg-pill {
    border: none;
    background: #eef2f7;
    color: #475569;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.lg-pill.active {
    background: #262646;
    color: #fff;
}

.lg-summary {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.lg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .lg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lg-grid {
        grid-template-columns: 1fr;
    }

    .lg-title {
        font-size: 1.65rem;
    }
}

.lg-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.05rem 1.05rem;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.lg-card-paused {
    background: #f8fafc;
}

.lg-card-paused .lg-card-title,
.lg-card-paused .lg-stat-value {
    color: #94a3b8;
}

.lg-card-paused .lg-card-meta,
.lg-card-paused .lg-stat-label,
.lg-card-paused .lg-status {
    color: #94a3b8;
}

.lg-card-paused .lg-tag {
    opacity: 0.7;
}

.lg-card-paused .lg-stats {
    border-top-color: #e2e8f0;
}

.lg-card-paused .lg-btn-ghost {
    color: #64748b;
    border-color: #e2e8f0;
    background: #fff;
}

.lg-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.lg-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lg-tag-mortgage {
    background: #dbeafe;
    color: #1d4ed8;
}

.lg-tag-insurance {
    background: #fee2e2;
    color: #b91c1c;
}

.lg-tag-kiwisaver {
    background: #dcfce7;
    color: #15803d;
}

.lg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.lg-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.lg-status-active .lg-status-dot {
    background: #22c55e;
}

.lg-status-paused .lg-status-dot {
    background: #f59e0b;
}

.lg-status-draft .lg-status-dot {
    background: #94a3b8;
}

.lg-card-menu-wrap {
    position: relative;
}

.lg-card-menu-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lg-card-menu-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.lg-card-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    padding: 6px;
    z-index: 20;
}

.lg-card-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
}

.lg-card-menu button:hover {
    background: #f8fafc;
}

.lg-card-menu button.danger {
    color: #dc2626;
}

.lg-card-title {
    margin: 0 0 0.35rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.lg-card-meta {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.lg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.lg-stat-label {
    display: block;
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2px;
}

.lg-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.lg-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lg-card-actions.single {
    grid-template-columns: 1fr;
}

.lg-card-create {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 16px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lg-card-create:hover {
    border-color: #3fd6d4;
    color: #0f172a;
    background: #f0fdfa;
}

.lg-card-create i {
    font-size: 1.5rem;
    color: #94a3b8;
}

.lg-card-create:hover i {
    color: #3fd6d4;
}

/* Modals */
.lg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lg-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 720px;
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.lg-modal-lg {
    max-width: 820px;
}

.lg-modal-sm {
    max-width: 480px;
}

.lg-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.lg-modal-header h2 {
    margin: 0 0 0.2rem;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.lg-modal-header p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.lg-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lg-modal-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lg-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.lg-modal-body {
    padding: 1.1rem 1.35rem;
    overflow-y: auto;
    flex: 1;
}

.lg-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0.9rem 1.35rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lg-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.lg-input,
.lg-select,
.lg-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
}

.lg-input:focus,
.lg-select:focus,
.lg-textarea:focus {
    outline: none;
    border-color: #3fd6d4;
    box-shadow: 0 0 0 3px rgba(63, 214, 212, 0.2);
}

.lg-textarea {
    min-height: 88px;
    resize: vertical;
}

.lg-section-label {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lg-fixed-row,
.lg-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #475569;
}

.lg-badge-fixed {
    background: #e2e8f0;
    color: #475569;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.lg-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.lg-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lg-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lg-toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.lg-toggle input:checked + .lg-toggle-slider {
    background: #3fd6d4;
}

.lg-toggle input:checked + .lg-toggle-slider::before {
    transform: translateX(18px);
}

.lg-q-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.lg-q-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.lg-q-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}

.lg-q-badge {
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lg-q-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lg-q-required {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.lg-q-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 10px;
    margin-bottom: 8px;
}

@media (max-width: 575.98px) {
    .lg-q-row {
        grid-template-columns: 1fr;
    }
}

.lg-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.lg-option-row .lg-input {
    flex: 1;
}

.lg-icon-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lg-icon-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.lg-add-q {
    width: 100%;
    border: 2px dashed #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 4px;
    font-family: inherit;
}

.lg-add-q:hover {
    border-color: #3fd6d4;
    background: #ccfbf1;
}

.lg-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.lg-tab {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    font-family: inherit;
}

.lg-tab.active {
    color: #262646;
    border-bottom-color: #262646;
}

.lg-campaign {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
}

.lg-campaign-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.lg-campaign-paused {
    opacity: 0.72;
    background: #f8fafc;
}

.lg-campaign-main {
    min-width: 0;
    flex: 1;
}

.lg-platform-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.lg-platform-qr {
    background: #ede9fe;
    color: #6d28d9;
}

.lg-platform-website {
    background: #dbeafe;
    color: #1d4ed8;
}

.lg-platform-link {
    background: #e2e8f0;
    color: #475569;
}

.lg-platform-embed {
    background: #ecfeff;
    color: #0e7490;
}

.lg-platform-contacts {
    background: #fef3c7;
    color: #b45309;
}

.lg-campaign-name {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
    font-size: 0.9375rem;
}

.lg-campaign-meta {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.35;
}

.lg-campaign-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    align-self: center;
}

.lg-campaign-add {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lg-campaign-add:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.lg-new-campaign {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 2px;
    background: #fff;
}

.lg-new-campaign-fields {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
    margin-bottom: 12px;
}

.lg-new-campaign-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 575.98px) {
    .lg-campaign-top {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .lg-campaign-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .lg-new-campaign-fields {
        grid-template-columns: 1fr;
    }
}

.lg-preview-frame {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
}

.lg-preview-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem 1.35rem;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.lg-preview-card--branded {
    text-align: center;
}

.lg-preview-card--branded .lg-field,
.lg-preview-card--branded .lg-consent,
.lg-preview-card--branded .lg-choice-list,
.lg-preview-card--branded .lg-preview-thanks {
    text-align: left;
}

.lg-preview-card--branded .lg-preview-thanks {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
}

.lg-preview-card--branded .lg-btn-block {
    text-align: center;
    justify-content: center;
}

.lg-preview-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #262646;
    color: #3fd6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 auto 0.85rem;
    overflow: hidden;
}

.lg-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.lg-preview-title {
    font-family: Inter, Segoe UI, system-ui, sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.lg-preview-sub {
    margin: 0 0 1.15rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lg-field {
    margin-bottom: 1rem;
}

.lg-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.lg-req {
    color: #ef4444;
}

.lg-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-choice-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500 !important;
    color: #1e293b;
    line-height: 1.35;
    box-sizing: border-box;
    text-align: left;
}

.lg-choice-option:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.lg-choice-option input[type="radio"],
.lg-choice-option input[type="checkbox"] {
    position: static !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    accent-color: #262646;
    cursor: pointer;
}

.lg-choice-option span {
    flex: 1;
    font-weight: 500 !important;
    color: #1e293b;
}

.lg-preview-card .lg-input,
.lg-preview-card .lg-textarea {
    border-radius: 10px;
    padding: 12px 14px;
    border-color: #d1d5db;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
}

.lg-preview-card .lg-textarea {
    min-height: 96px;
}

.lg-consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 400 !important;
    color: #64748b;
    margin: 1.1rem 0 1rem;
    line-height: 1.45;
}

.lg-consent input[type="checkbox"] {
    position: static !important;
    float: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    margin: 2px 0 0 !important;
    flex-shrink: 0;
    accent-color: #262646;
}

.lg-consent span {
    flex: 1;
    font-weight: 400 !important;
    color: #64748b;
}

.lg-preview-card .lg-btn-primary {
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
}

.lg-lead-detail {
    display: grid;
    gap: 10px;
}

.lg-lead-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px;
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .lg-lead-row {
        grid-template-columns: 1fr;
    }
}

.lg-lead-row dt {
    margin: 0;
    color: #94a3b8;
    font-weight: 500;
}

.lg-lead-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.lg-lead-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.35rem 0 1rem;
    align-items: center;
}

.lg-lead-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lg-lead-actions-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.lg-lead-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lg-modal-pipeline {
    padding: 0;
    overflow: hidden;
}

.lg-pipeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #262646;
    padding: 1rem 1.25rem;
    color: #fff;
}

.lg-pipeline-header h2 {
    margin: 0 0 0.35rem !important;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    font-family: Inter, Segoe UI, system-ui, sans-serif !important;
}

.lg-pipeline-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
}

.lg-pipeline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lg-pipeline-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lg-pipeline-badge.is-type {
    background: rgba(63, 214, 212, 0.25);
}

.lg-pipeline-badge.is-muted {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.lg-pipeline-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.15rem;
    line-height: 1;
}

.lg-modal-pipeline .lg-modal-body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.lg-modal-add-client {
    padding: 0;
    overflow: hidden;
    max-width: 560px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.lg-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 575.98px) {
    .lg-category-grid {
        grid-template-columns: 1fr;
    }
}

.lg-category-option {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.lg-category-option:hover,
.lg-category-option.selected {
    border-color: #3fd6d4;
    background: #f0fdfa;
}

.lg-category-option strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.lg-category-option span {
    font-size: 0.8125rem;
    color: #64748b;
}

.lg-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #262646;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2100;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.lg-help {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.lg-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.lg-code-block {
    background: #262646;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

.lg-qr-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.lg-qr-box {
    width: 148px;
    height: 148px;
    border: 8px solid #0f172a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #0f172a;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
}

.lg-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lg-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.lg-history {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.lg-history-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 0.8125rem;
    color: #64748b;
    padding: 5px 0;
    line-height: 1.4;
}

.lg-history-label {
    color: #64748b;
    flex-shrink: 0;
}

.lg-history-stats {
    color: #64748b;
    text-align: right;
}

.lg-history-row strong {
    color: #0f172a;
    font-weight: 700;
}

.lg-link-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.lg-link-row .lg-input {
    flex: 1;
}

.lg-platform-facebook,
.lg-platform-instagram,
.lg-platform-linkedin {
    background: #dbeafe;
    color: #1d4ed8;
}

.lg-platform-email {
    background: #fef3c7;
    color: #b45309;
}

.lg-platform-referral {
    background: #fce7f3;
    color: #be185d;
}

.lg-master-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lg-assign-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.lg-assign-row select {
    min-width: 220px;
    height: 2.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 0.7rem;
    font-family: inherit;
}
