﻿:root {
    --gap: 16px;
    --card: #fff;
    --muted: #6b7280;
    --ring: #e5e7eb;
    --shadow: 0 8px 24px rgba(0,0,0,.06);
}

* {
    box-sizing: border-box
}

body {
    font-family: system-ui, Segoe UI, Roboto, sans-serif;
    margin: 0;
    color: #0f172a;
    background: #fafafa
}

.header {
    padding: 24px 20px
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.searchbar {
    position: sticky;
    top: 0;
    background: #fafafa;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ring);
    z-index: 10
}

input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ring);
    border-radius: 10px;
    font-size: 16px
}

.section {
    margin: 28px 0
}

    .section h2 {
        font-size: 20px;
        margin: 0 0 12px 0
    }

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap)
}

@media (max-width:1024px) {
    .grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:640px) {
    .grid {
        grid-template-columns: 1fr
    }
}



.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.btn-teams {
    background: #6264A7;
    color: #fff;
    box-shadow: 0 4px 16px rgba(98, 100, 167, .25);
}

    .btn-teams:hover {
        background: #4E51A3;
        color: #fff;
    }





.card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow)
}

    .card img {
        width: 56px;
        height: 56px;
        border-radius: 999px;
        object-fit: cover;
        background: #e5e7eb
    }

    .card .job {
        font-size: 10px;
        font-weight: 600;
        color: #1f2937;
    }


    .card .meta {
        min-width: 0
    }

    .card .title {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .card .sub {
        color: var(--muted);
        font-size: 8px
    }

.badge {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 6px
}
/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

    .modal.open {
        display: flex
    }

    .modal .dialog {
        background: #fff;
        border-radius: 18px;
        max-width: 520px;
        width: 100%;
        box-shadow: var(--shadow);
        border: 1px solid var(--ring)
    }

.dialog .hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ring)
}

.dialog .bd {
    padding: 16px;
    display: flex;
    gap: 16px
}

.dialog .ft {
    padding: 12px 16px;
    border-top: 1px solid var(--ring);
    text-align: right
}



.kv {
    margin: 2px 0
}

    .kv .k {
        color: var(--muted);
        font-size: 12px
    }

    .kv .v {
        font-weight: 500
    }

.mail {
    color: #2563eb;
    text-decoration: none
}

.lead-flag {
    display: block;
    font-size: 12px;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #10b981;
    padding: 2px 8px;
    border-radius: 8px;
    width: max-content;
    margin-top: 4px
}

.suggestions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 92%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    margin-top: 8px;
    z-index: 50;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
}

    .suggestion-item:hover {
        background: #f3f4f6;
    }

    .suggestion-item img {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        object-fit: cover;
        background: #e5e7eb;
    }

    .suggestion-item .meta {
        display: flex;
        flex-direction: column;
    }

    .suggestion-item .name {
        font-weight: 600;
        color: #0f172a;
    }

    .suggestion-item .sub {
        font-size: 12px;
        color: #6b7280;
    }


