.post-collab-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.post-input-collab-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
}

.post-input-collab-btn:hover:not(:disabled),
.post-input-collab-btn.active {
    background: rgba(96, 165, 250, 0.16);
    color: #ffffff;
}

.post-collab-panel {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    width: 248px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    z-index: 50;
}

.post-collab-panel::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 100%;
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg) translateY(-5px);
}

.post-collab-panel.show {
    display: block;
}

.post-collab-panel-header {
    margin-bottom: 6px;
}

.post-collab-panel-title {
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.post-collab-panel-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.64rem;
    line-height: 1.3;
    margin-top: 1px;
}

.post-collab-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-collab-at {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-weight: 600;
}

.post-collab-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.78rem;
    font-family: inherit;
}

.post-collab-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.post-collab-suggestions {
    display: none;
    margin-top: 6px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-collab-suggestions.show {
    display: block;
}

.post-collab-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
}

.post-collab-suggestion + .post-collab-suggestion {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-collab-suggestion:hover,
.post-collab-suggestion.active {
    background: rgba(96, 165, 250, 0.12);
}

.post-collab-suggestion-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.post-collab-suggestion-info {
    min-width: 0;
}

.post-collab-suggestion-name {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-collab-suggestion-meta {
    display: block;
    margin-top: 1px;
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.52);
}

.post-collab-suggestions-empty {
    padding: 8px 9px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.52);
}

.post-collab-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.post-collab-empty {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.66rem;
}

.post-collab-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #ffffff;
    font-size: 0.7rem;
    line-height: 1;
}

.post-collab-chip-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.post-collab-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.post-collab-chip button:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

.post-collab-summary {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px 0;
}

.post-collab-summary[hidden] {
    display: none !important;
}

.post-collab-summary-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.post-collab-summary-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #eef6ff;
    font-size: 0.72rem;
    line-height: 1;
}

.post-collab-summary-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.post-collab-summary-name {
    font-weight: 600;
}

@media (max-width: 640px) {
    .post-collab-panel {
        left: -48px;
        width: min(248px, calc(100vw - 32px));
    }

    .post-collab-panel::after {
        left: 58px;
    }
}
