/* Static CRM UI mocks for Public Lead Capture docs. Tokens match tenant dark theme. */

.snip-caption {
    margin: 18px 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232, 238, 252, 0.62);
}

.ui-snip {
    font-family: 'Figtree', 'Lufga', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ui-snip button {
    font-family: inherit;
}

.ui-sidebar {
    width: min(100%, 280px);
    background: #292929;
    border-radius: 12px;
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ui-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 0 9px 14px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #8A98A7;
    line-height: 1.5;
}

.ui-nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex-shrink: 0;
}

.ui-nav-icon svg {
    width: 20px;
    height: 20px;
}

.ui-nav-item.is-active {
    color: #F04A4A;
    font-weight: 600;
    padding-left: 12px;
    border-left: 3px solid #F04A4A;
}

.ui-nav-item.is-active .ui-nav-icon,
.ui-nav-item.is-active .ui-nav-icon svg {
    width: 24px;
    height: 24px;
    color: #F04A4A;
}

.ui-account-wrap {
    position: relative;
}

.ui-account {
    background: #1f1f1f;
    border: 1px solid #2C2C2C;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ui-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ui-account-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.ui-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #2C2C2C;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

.ui-edit svg {
    width: 14px;
    height: 14px;
}

.ui-account-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8A98A7;
    font-size: 22px;
    font-weight: 600;
}

.ui-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ui-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    word-break: break-word;
}

.ui-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.ui-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.ui-purl {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.ui-purl-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.ui-link {
    color: #F04A4A;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.ui-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ui-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ui-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    min-width: 100px;
}

.ui-value {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    word-break: break-word;
}

.ui-tid {
    font-size: 15px;
}

.ui-tid-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ui-callout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F04A4A;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ui-callout svg {
    width: 28px;
    height: 16px;
    flex-shrink: 0;
}

.ui-team {
    background: #1f1f1f;
    border: 1px solid #2C2C2C;
    border-radius: 16px;
    padding: 24px;
    max-width: 640px;
}

.ui-field-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.ui-select {
    position: relative;
    min-height: 40px;
    background: #2C2C2C;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 4px 28px 4px 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.ui-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: #3A3A3A;
    color: #ffffff;
    font-size: 13px;
    line-height: 22px;
}

.ui-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #8A98A7;
}

.ui-chevron svg {
    width: 14px;
    height: 14px;
}

.ui-help {
    margin-top: 8px;
    font-size: 14px;
    color: #A3AED0;
    line-height: 1.5;
}

.ui-settings {
    background: #141414;
    border: 1px solid #2C2C2C;
    border-radius: 16px;
    padding: 20px 20px 0;
    overflow: hidden;
}

.ui-settings-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.ui-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding: 3px;
    background: #1f1f1f;
    border: 1px solid #2C2C2C;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.ui-tabs span {
    flex: 0 0 auto;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #A3AED0;
    white-space: nowrap;
    line-height: 1.4;
}

.ui-tabs span.is-active {
    color: #ffffff;
    background: #292929;
    border-radius: 10px;
}

.ui-settings-panel {
    background: #1a1a1a;
    border: 1px solid #2C2C2C;
    border-radius: 0 0 20px 20px;
    padding: 24px;
}

.ui-settings-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ui-setting-label {
    font-size: 1rem;
    font-weight: 500;
    color: #F04A4A;
    margin-bottom: 4px;
}

.ui-setting-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.ui-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 16px;
    background: #F04A4A;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    white-space: nowrap;
}

.ui-primary svg {
    width: 16px;
    height: 16px;
}

.ui-origin-note {
    margin: 16px 0 0;
    font-size: 14px;
    color: #A3AED0;
    line-height: 1.5;
}

.ui-table {
    margin-top: 16px;
    background: #1f1f1f;
    border: 1px solid #2C2C2C;
    border-radius: 16px;
    overflow: hidden;
}

.ui-table-head,
.ui-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
}

.ui-table-head {
    background: #2C2C2C;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.ui-table-row {
    color: #E0E0E0;
    font-size: 14px;
}

.ui-origin-url {
    color: #E0E0E0;
    word-break: break-all;
}

.ui-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ui-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #2C2C2C;
    color: #ffffff;
    cursor: default;
}

.ui-icon-btn svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 640px) {
    .ui-row {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .ui-settings-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ui-table-head,
    .ui-table-row {
        grid-template-columns: 1fr;
    }

    .ui-actions {
        justify-content: flex-start;
    }

    .ui-tabs span {
        padding: 8px 12px;
        font-size: 14px;
    }
}
