/* ============================================================
   KMS @Mention — Base styles
   ============================================================ */

.kms-mention {
    color: #03e8fc;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    padding: 0 2px;
    transition: background 0.18s ease, color 0.18s ease;
}

.kms-mention:hover,
.kms-mention:focus {
    background: rgba(3, 232, 252, 0.14);
    color: #7af4ff;
    outline: none;
}

.kms-mention-dropdown {
    position: fixed;
    z-index: 250000;
    min-width: 220px;
    max-width: min(92vw, 320px);
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: linear-gradient(155deg, rgba(28, 32, 52, 0.96), rgba(18, 22, 38, 0.98));
    border: 1px solid rgba(3, 232, 252, 0.28);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 24px rgba(3, 232, 252, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 6px;
}

.kms-mention-dropdown::-webkit-scrollbar {
    display: none;
}

.kms-mention-dropdown__hint {
    padding: 10px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.kms-mention-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #e8edf8;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.16s ease;
}

.kms-mention-dropdown__item:hover,
.kms-mention-dropdown__item:focus,
.kms-mention-dropdown__item.is-active {
    background: rgba(3, 232, 252, 0.12);
    outline: none;
}

.kms-mention-dropdown__avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.kms-mention-dropdown__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kms-mention-dropdown__username {
    font-size: 13px;
    font-weight: 700;
    color: #03e8fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kms-mention-dropdown__nickname {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Layout — input wrapper hint
   ============================================================ */

[data-kms-mention] {
    position: relative;
}

/* ============================================================
   Interaction — touch highlight
   ============================================================ */

@media (hover: hover) {
    .kms-mention-dropdown__item:active {
        transform: scale(0.98);
    }
}

/* ============================================================
   Responsive — mobile touch
   ============================================================ */

@media (max-width: 768px) {
    .kms-mention-dropdown {
        max-height: 200px;
        border-radius: 12px;
    }

    .kms-mention-dropdown__item {
        min-height: 44px;
        padding: 10px 12px;
    }

    .kms-mention-dropdown__avatar {
        width: 36px;
        height: 36px;
    }
}
