.notes-link-count {
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
}

.notes-link-popover {
    position: fixed;
    z-index: 1000;
    width: 320px;
    max-height: 420px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 10px;
}

.notes-link-popover-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    padding: 4px 6px 8px;
}

.notes-link-popover-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notes-link-popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
}

.notes-link-popover-item-openable {
    cursor: pointer;
}

.notes-link-popover-item-openable:hover {
    background: #f8fafc;
}

.notes-link-popover-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.notes-link-popover-icon {
    flex: 0 0 auto;
    font-size: 14px;
    color: #94a3b8;
}

.notes-link-popover-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-link-popover-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    white-space: nowrap;
}

.notes-link-popover-goto-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.notes-link-popover-item:hover .notes-link-popover-goto-btn {
    opacity: 1;
}

.notes-link-popover-goto-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.notes-link-popover-empty {
    padding: 10px 6px;
    font-size: 13px;
    color: #64748b;
}
