/* SOC_SOCIAL_GRAPH_V14_20260812 */

.social-graph-view {
    overflow: auto;
}

.social-graph-panel {
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.social-graph-shell {
    display: grid;
    gap: 13px;
}

.sg-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.sg-metric {
    min-width: 0;
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(12, 13, 20, 0.84);
}

.sg-metric.primary {
    border-color: rgba(126, 91, 255, 0.26);
    background:
        linear-gradient(
            135deg,
            rgba(113, 79, 226, 0.13),
            rgba(12, 13, 20, 0.84)
        );
}

.sg-metric span {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sg-metric strong {
    overflow: hidden;
    color: #fff;
    font-size: 1.23rem;
    text-overflow: ellipsis;
}

.sg-metric strong.ok {
    color: #6ff0a8;
}

.sg-metric strong.warning {
    color: #ffc16d;
}

.sg-metric small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.31);
    font-size: 0.59rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sg-status-strip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.sg-status-strip small {
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.sg-status-strip strong {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.65rem;
}

.sg-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(540px, 1.65fr);
    gap: 12px;
    align-items: start;
}

.sg-left-column,
.sg-right-column {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.sg-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 19, 28, 0.96),
            rgba(10, 11, 17, 0.96)
        );
}

.sg-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.sg-card h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 0.95rem;
}

.sg-kicker {
    color: #8e76ff;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.sg-muted {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.62rem;
}

.sg-refresh {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
}

.sg-refresh:hover {
    border-color: rgba(126, 91, 255, 0.44);
    background: rgba(107, 77, 225, 0.13);
    color: #fff;
}

.sg-search-box input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font: inherit;
    font-size: 0.72rem;
}

.sg-search-box input:focus {
    border-color: rgba(128, 93, 255, 0.48);
    box-shadow: 0 0 0 3px rgba(128, 93, 255, 0.07);
}

.sg-search-results,
.sg-top-list,
.sg-activity-list,
.sg-relation-list {
    display: grid;
    gap: 5px;
    margin-top: 9px;
}

.sg-search-results {
    max-height: 285px;
    overflow: auto;
}

.sg-search-results button,
.sg-top-list button,
.sg-relation-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.sg-search-results button:hover,
.sg-top-list button:hover,
.sg-relation-row:hover {
    background: rgba(124, 91, 255, 0.09);
}

.sg-mini-avatar,
.sg-large-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 900;
}

.sg-mini-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.65rem;
}

.sg-large-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    font-size: 0.9rem;
}

.sg-mini-avatar img,
.sg-large-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-search-results button > span:not(.sg-mini-avatar),
.sg-top-list button > span:not(.sg-mini-avatar),
.sg-relation-row > span:not(.sg-mini-avatar) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.sg-search-results strong,
.sg-top-list strong,
.sg-relation-row strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-search-results small,
.sg-top-list small,
.sg-relation-row small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.59rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-search-results i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.sg-search-results i.online {
    background: #45ee91;
    box-shadow: 0 0 9px rgba(69, 238, 145, 0.42);
}

.sg-search-empty,
.sg-empty-small {
    padding: 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.62rem;
    text-align: center;
}

.sg-top-list {
    max-height: 370px;
    overflow: auto;
}

.sg-top-list button {
    grid-template-columns: 24px auto minmax(0, 1fr) auto;
}

.sg-top-list b {
    color: rgba(255, 255, 255, 0.26);
    font-size: 0.62rem;
    text-align: center;
}

.sg-top-list em {
    min-width: 30px;
    color: #8f7aff;
    font-size: 0.71rem;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.sg-activity-card {
    max-height: 420px;
    overflow: hidden;
}

.sg-activity-list {
    max-height: 340px;
    overflow: auto;
}

.sg-activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
}

.sg-activity-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(124, 91, 255, 0.1);
    color: #a491ff;
    font-size: 0.72rem;
    font-weight: 900;
}

.sg-activity-icon.type-profile_visit {
    background: rgba(45, 159, 219, 0.1);
    color: #7cd7ff;
}

.sg-activity-icon.type-favorite {
    background: rgba(238, 180, 59, 0.1);
    color: #ffd575;
}

.sg-activity-icon.type-block {
    background: rgba(199, 50, 69, 0.1);
    color: #ff9baa;
}

.sg-activity-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.64rem;
    line-height: 1.4;
}

.sg-activity-row p strong {
    color: rgba(255, 255, 255, 0.86);
}

.sg-activity-row small {
    color: rgba(255, 255, 255, 0.29);
    font-size: 0.56rem;
}

.sg-member-card {
    min-height: 620px;
}

.sg-member-head {
    align-items: flex-start !important;
}

.sg-member-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.sg-member-person > div {
    min-width: 0;
}

.sg-member-person h2 {
    overflow: hidden;
    max-width: 520px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-member-person p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.64rem;
}

.sg-close-member {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
}

.sg-member-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.sg-member-metrics span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.027);
}

.sg-member-metrics small {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.sg-member-metrics strong {
    color: #fff;
    font-size: 0.88rem;
}

.sg-network {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 12px;
    background:
        radial-gradient(
            circle at center,
            rgba(119, 82, 255, 0.1),
            transparent 52%
        ),
        rgba(5, 7, 12, 0.52);
    overflow: hidden;
}

.sg-network svg {
    width: 100%;
    height: auto;
    max-height: 430px;
    display: block;
}

.sg-edges line {
    stroke: rgba(139, 112, 255, 0.18);
    stroke-width: 1.4;
}

.sg-node {
    cursor: pointer;
}

.sg-node circle {
    fill: #171927;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    transition: 0.18s ease;
}

.sg-node.friend:hover circle {
    fill: #24203b;
    stroke: rgba(143, 116, 255, 0.7);
    transform: scale(1.07);
}

.sg-node.online circle {
    stroke: rgba(72, 235, 145, 0.5);
}

.sg-node.center circle {
    fill: #241c4a;
    stroke: rgba(142, 112, 255, 0.78);
    stroke-width: 2.5;
}

.sg-node-initials {
    fill: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.sg-node-initials.center {
    fill: #fff;
    font-size: 23px;
}

.sg-node-label {
    fill: rgba(255, 255, 255, 0.63);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.sg-node-label.center {
    fill: #fff;
    font-size: 14px;
}

.sg-node-meta {
    fill: rgba(255, 255, 255, 0.28);
    font-size: 10px;
    pointer-events: none;
}

.sg-network-note {
    display: block;
    padding: 0 10px 9px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.57rem;
    text-align: center;
}

.sg-relations {
    margin-top: 10px;
}

.sg-relation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sg-relation-tabs button {
    min-height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
}

.sg-relation-tabs button.active {
    border-color: rgba(128, 94, 255, 0.45);
    background: rgba(112, 81, 226, 0.14);
    color: #fff;
}

.sg-relation-list {
    max-height: 340px;
    overflow: auto;
}

.sg-open-reports {
    min-height: 36px;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #a999ff;
    font-size: 0.62rem;
    font-weight: 800;
    cursor: pointer;
}

.sg-technical {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.31);
    font-size: 0.58rem;
}

.sg-technical summary {
    cursor: pointer;
}

.sg-technical code,
.sg-technical small {
    display: block;
    margin-top: 5px;
}

.sg-member-empty,
.sg-loading-small,
.sg-loading,
.sg-load-error {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.36);
    text-align: center;
}

.sg-member-empty > span {
    color: #8b72ff;
    font-size: 2rem;
}

.sg-member-empty strong,
.sg-loading-small strong,
.sg-loading strong,
.sg-load-error strong {
    color: #fff;
}

.sg-loading-small i,
.sg-loading i {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #8066ff;
    border-radius: 50%;
    animation: sgSpin 0.8s linear infinite;
}

.sg-readonly-note {
    padding: 9px 11px;
    border-left: 2px solid rgba(126, 91, 255, 0.44);
    background: rgba(126, 91, 255, 0.045);
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.6rem;
    line-height: 1.5;
}

@keyframes sgSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1260px) {
    .sg-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sg-metrics,
    .sg-member-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .sg-network {
        display: none;
    }
}
